I'll post a reply with the source code.
See in the attached images how the orders and stop losses are in-sync at first and can fall out of sync at certain points. It's very important that the stop losses be in-sync with the order contract count to avoid disaster if the Internet loses connectivity, for instance. My test settings:
MNQ 09-22
20 Range
Playback date: 7/4/2022
Play at high speed until about 02:33 AM EST, see all orders and stops match in count.
Play past 02:33 AM EST, see that there are 2 orders (correct), but only 1 stop loss (incorrect).
Continue to play forward to see more discrepencies.
Comment