Report and badge Personal DLL days

A stop-enabled account whose day booked red via its own stop shows an
amber "Personal DLL" badge on the dashboard (the firm's lockout keeps
its red "Hit DLL") and reports as personalDll in the day outcomes
instead of loss, per account type and per firm.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Brandon Li
2026-09-11 18:51:03 -05:00
co-authored by Claude Fable 5
parent c58e981b1e
commit 6685a75864
5 changed files with 30 additions and 6 deletions
+3
View File
@@ -49,6 +49,9 @@ export interface AccountState {
totalProfit: number;
/** True when today's realizedPnL has met or exceeded the computed daily target */
targetHit: boolean;
/** True when a stop-enabled account booked its day red via its own stop —
* the personal DLL. It stands down until the next session's make-back. */
personalDll: boolean;
/** Current stage = 1 + number of withdrawals (negative fund transactions). Stage 1 = fresh account. */
stage: number;
/** Next trading day's target, computed server-side. null when account is dead or config is missing. */