Bid/ask prices or a spread deducted afterwards: does it change a backtest?
On 6 strategies, filling orders at bid and ask prices gave +13.59 R in total, while charging the spread as a cost after each trade gave −14.45 R: a difference of +28.04 R. The bid/ask result was better for 6 of the 6; the size of the difference depended on the strategy.
Two ways to account for the spread
- Spread as a cost: trades are filled at chart prices and the spread for the hour of entry is subtracted from each trade afterwards. This is how many backtesters work.
- Bid and ask prices: a buy fills at the ask and a sell at the bid, and stops and limits trigger when the price the broker would use reaches them. The spread then changes not only the cost but which orders fill and which stops are hit.
The result
| Strategy (multi-asset backtest) | Bid/ask prices | Spread as a cost |
|---|---|---|
| Fair value gap + liquidity sweep | +21.87 R | +21.52 R |
| Range deviation | +10.48 R | +10.23 R |
| Order block + break of structure | −4.35 R | −10.54 R |
| Expansion and consolidation | +4.59 R | +4.09 R |
| Level raid + break of structure | −18.35 R | −38.03 R |
| Asian session range | −0.66 R | −1.72 R |
Total net result in R over four years, after commission, swap and spread in both columns. With bid/ask prices the spread is the one at the moment of each fill rather than one value for the hour of entry, and for every strategy here that came out better. The gap was small for strategies with few trades on higher timeframes and largest for the level raid, which trades most often on fifteen-minute stops.
What it means
- The two methods give different numbers for the same rules, sometimes by many R. When you compare backtests, compare them under the same price model.
- Bid/ask prices are closer to what a broker does. A spread deducted afterwards is a reasonable approximation for strategies with wide stops and a rough one for tight stops.
How we measured
- The 6 published example backtests, period 2022-01-01 to 2026-01-01, fixed risk of 1% per trade, commission and swap measured for one commission-charging broker.
- Bid/ask: the engine's default model. Spread as a cost: the same configuration with the earlier model, the spread for the hour of entry on the broker's server clock.
- Engine backtests on the production server; trade counts can differ slightly because fills differ.
Backtests run on October 24, 2026.
For education, not investment advice. Past results, including backtests, do not guarantee future results.
← All research