Skip to system research
Build A Trading SystemRules / Evidence / Replay

Cash reconciliation and fee inclusion

Rebuild each simulated cash amount while keeping actual transactions and omitted costs separate.

A price move and a cost record are different

The fixture's library fills use synthetic opens and one whole long unit. Gross cash change is exit price less entry price. Fixed commission is 0.10 at entry and 0.10 at exit, assessed separately, so each completed position deducts 0.20. The example does not include another spread, slippage, financing or tax amount. A real account could embed some costs inside transaction prices and assess others as separate charges. State inclusion before subtracting an all-in estimate, otherwise the same component may be charged twice. No current broker fee schedule is quoted by this teaching contract.

Reconstruct the six-position ledger

The simulated positions have net cash of 2.50, negative 3.50, 3.00, negative 3.00, 2.90 and negative 3.10 after the fixed fees. Their sum is negative 1.20. The first row enters at 99.2 and exits at 101.9, giving 2.7 gross less 0.20. A later row enters at 99.2 and exits at 95.9, giving negative 3.3 gross less 0.20. Both remain in the same eligible packet. The total is not selected from only favourable rows, and there is no actual subscriber transaction or market source behind either amount.

Preserve numerical output and reference tolerance

The standard engine returns floating-point cash, while an independent Decimal calculation reconstructs declared prices and fees. The exact teaching sum is negative 1.20 at the stated decimal representation; the engine's displayed raw total differs by a tiny numerical residue. The checker uses an explicit tolerance and preserves the actual output rather than rewriting it as a perfectly exact independent audit. A reader-facing two-decimal amount is formatting. It is not a rounding explanation for unrelated provider aggregates, evidence of actual account accuracy or permission to conceal a material reconciliation difference.

Cash equality does not establish a strategy

A replay cash reconciliation checks the selected model and inputs. It does not certify queue realism, data availability, financial selection history, paper execution or production routing. Actual account return also needs marks, flows, currency, quantity and other holdings. The fixture has no deposits, shorts or nonlinear contracts, and its chosen initial cash does not recommend a personal allocation. Preserve the full transaction population and cost policy when moving to a real study. A favourable individual simulated position cannot replace the net total, and a matching checksum cannot supply an absent broker statement or independent economic evaluation.

Filled invented system case

The fictional reconciler keeps all six completed rows and computes gross signed price changes less two 0.10 fees. Net contributions are 2.50, -3.50, 3.00, -3.00, 2.90 and -3.10, totalling -1.20. The engine's raw floating output is retained and matched within the declared tolerance. No excluded cost is silently estimated and no actual broker ledger is supplied. This completes the specimen's accounting check, not an audited return or financial strategy validation.

ObjectRecordBounded finding
Per-position cost0.10 entry + 0.10 exit0.20 additional fee
First net row101.9 - 99.2 - 0.202.50
Second net row95.9 - 99.2 - 0.20-3.50
Complete sumSix net rows-1.20 synthetic cash
Invented closes and moving averages above simulated equity
Invented library replay, not historical data or economic validation.

Primary references and scope

Expanded source review: 13 October 2026. Documentation supports the stated mechanism, not a tested account, hypothetical fill or provider outcome.

Related research questions