Write rules someone else can follow
Start with an idea such as buying a pullback after an opening breakout. Decide which bars define the range, which close can qualify, and where the order sits. Use the same contract, session settings and bar timestamps in both replays.
In this exercise only the 9:50 close can qualify. An equal close fails the strict comparison. Submit the simulated order after that close and let it work through the bar ending 10:00. The high or low of the 9:50 signal candle happened before the order became eligible.
For these examples, count a resting limit as filled at its limit only when a later bar trades through the level while the order is working. This is a replay convention. Live fills depend on the actual order and market. Confirm cancellation in the order log before treating a working order as gone.
Version 1 · fictional replay only Market: one dated MES contract, standard 5-minute bars, New York time Reference: highest high of the bars ending 9:35, 9:40 and 9:45 Signal: the 9:50 close is strictly above that high Entry: after that close, work one buy limit at the range high Cancel: cancel the unfilled entry at the 10:00 close After fill: stop 1 point below entry, target 2 points above entry Time exit: at 10:30 send a market exit if still in the position Daily cap: one entry attempt; skip sessions with missing required bars
