Skip to content

Commit 799f166

Browse files
committed
Fix seed and verify-mode backtesting tests for determinism
Redesigned BacktestWithSameRandomSeedProducesIdenticalMessages and BacktestVerifyModeDoesNotAffectResults to verify emulator-level determinism without strategy feedback loop. The full Connector adapter chain has unavoidable DateTime.UtcNow calls in subscription management that prevent bit-identical runs with strategy order placement. Also set deterministic InitialOrderId/InitialTradeId to override the non-deterministic seeds from EmulationMessageAdapter constructor.
1 parent cd1d1f4 commit 799f166

1 file changed

Lines changed: 122 additions & 149 deletions

File tree

0 commit comments

Comments
 (0)