Report day outcomes (target hit / partial / loss) to the master
The reporter already computed targetHit per account to count it as traded; now it also classifies each account that finished the day flat and sends targetHit/partial/loss counts per firm and account type. A realized loss reports as loss even on a grind day where any nonzero PnL counts as done. Fields are additive, so an older master ignores them. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
346c356222
commit
48f3c97ec5
@@ -14,6 +14,13 @@ export interface AccountTypeStats {
|
||||
totalAccounts: number;
|
||||
accountsTraded: number;
|
||||
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
|
||||
* ignores them. */
|
||||
targetHit?: number;
|
||||
partial?: number;
|
||||
loss?: number;
|
||||
}
|
||||
|
||||
export interface FirmStats {
|
||||
@@ -21,6 +28,10 @@ export interface FirmStats {
|
||||
totalAccounts: number;
|
||||
accountsTraded: number;
|
||||
inTrade: number;
|
||||
/** Day outcomes, as on AccountTypeStats. */
|
||||
targetHit?: number;
|
||||
partial?: number;
|
||||
loss?: number;
|
||||
/** Per account type, summing to the firm's own totals. Optional so a master
|
||||
* on an older build simply ignores it. */
|
||||
accountTypes?: AccountTypeStats[];
|
||||
|
||||
Reference in New Issue
Block a user