Keep negative and DLL-locked accounts out of the payout histogram

The payout calendar projects accounts still on the winning path, so the
daysHist now skips accounts below their starting balance or flipped to
liquidate-only, alongside the dead ones the report already drops. They
still count in the slice totals — only the calendar stops seeing them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-09-10 16:28:37 -05:00
co-authored by Claude Fable 5
parent 6c501d00ed
commit abfb703f0e
2 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -23,8 +23,10 @@ export interface AccountTypeStats {
partial?: number;
loss?: number;
/** Live accounts by trading days completed toward the current target:
* {daysTraded: accountCount}. Feeds the master's payout calendar.
* Optional so an older master simply ignores it. */
* {daysTraded: accountCount}. Feeds the master's payout calendar, so
* accounts that are dead, DLL-locked, or in the red are left out — the
* calendar only projects accounts still on the winning path. Optional so
* an older master simply ignores it. */
daysHist?: Record<number, number>;
}