add track-record reset; drop dead distance_penalty_factor knob
Track Record: new "Reset" action (POST /admin/track-record/reset) deletes all trade setups so stats start fresh after material scoring/setup changes — live setups regenerate on the next scan. Guarded by a confirm dialog. Recommendation config: remove distance_penalty_factor, which was exposed in the admin UI but consumed nowhere (the touch-probability model superseded it). A knob that silently does nothing is worse than no knob. Remaining defaults are left as-is — they're reasonable, and the honest way to tune them is backtesting against accumulated outcomes, not invented "researched" numbers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -180,3 +180,10 @@ export function cleanupData(olderThanDays: number) {
|
||||
})
|
||||
.then((r) => r.data);
|
||||
}
|
||||
|
||||
// Track record
|
||||
export function resetTrackRecord() {
|
||||
return apiClient
|
||||
.post<{ trade_setups: number }>('admin/track-record/reset')
|
||||
.then((r) => r.data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user