Report DLL-locked accounts as finished at a loss
An account Tradovate flips to liquidate-only at the daily loss limit is done for the day, but the reporter only counted a loss when the booked realizedPnL was already negative — so a locked-out account whose P&L hadn't caught up (or that had no matching config) showed as still to trade. Count inactive accounts as traded at a loss. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
5d2f4d607a
commit
0d01539338
@@ -16,7 +16,8 @@ export interface AccountTypeStats {
|
||||
inTrade: number;
|
||||
/** Of the accounts that finished trading today (traded, no open position):
|
||||
* how many ended with the day's profit target hit, in profit but short of
|
||||
* the target, or at a realized loss. Optional so an older master simply
|
||||
* the target, or at a realized loss (an account locked out at the daily
|
||||
* loss limit counts as a loss). Optional so an older master simply
|
||||
* ignores them. */
|
||||
targetHit?: number;
|
||||
partial?: number;
|
||||
|
||||
Reference in New Issue
Block a user