How fills work
Exactly which price you get on market, limit and stop orders, and how stops and targets are judged.
Market orders
A market order fills at the close of the bar the replay is sitting on, which is the last price on your chart. That bar is the 1-minute bar (or the 1-second bar in a seconds session), whatever timeframe you're viewing. A market order also cancels any working order.
Limit and stop entries
A working order goes live on the bar after you place it, so a bar that already printed can't fill it. After that it fills the first time a bar trades to its level:
- Limit: at your level, or at the bar's open if the bar opens past it (a better price).
- Stop entry: at your level, or at the open if the bar gaps through it (a worse price).
A touch counts as a fill; there's no queue. On the bar an order fills, only price action that could have come after the fill counts: a limit entry can be stopped out on that bar but can't hit its target there. If one bar gaps through both your entry and your stop, you're filled and stopped at the same price.
Stops and targets
Every new bar is checked against your stop loss and take profit:
- If the bar opens past a level, you're filled at the open. Through a stop that's worse than your stop; through a target it's better.
- Otherwise, a level the bar touches fills at the level exactly.
- If one bar touches both your stop and your target, the stop wins. There's no way to know which came first inside a bar, so the replay books the conservative result.
Auto break-even is judged the same careful way. The bar that reaches the trigger is checked with your old stop first, then the stop moves to entry. If that same bar closes back through entry, you're out at entry on that bar.
R is measured against the first stop you set on a trade, so trailing the stop later doesn't inflate it.
Costs
- There's no slippage and no spread. Fills are at the prices above.
- There are no commissions in a regular backtest. In a prop challenge, the pack's fee per contract per side comes off every closed trade, and the rules also count the open position's round-trip fee against your equity.
Prop rule breaches
When a prop rule breaks, your position closes at the level that was breached, or at the bar's open if it gapped past. If your own stop sits beyond the firm's level, your stop fills first, so the final balance can land past the limit. The pass or fail result is the same either way.
[TP1]