Calibrating the live vs backtest cost gap
Posted: Wed Oct 21, 2026 5:18 pm
Backtests and live trading almost always differ in cost. Measuring and closing that gap makes backtests more trustworthy.
Calibration process:
1. Run the EA live (or on a demo with realistic execution) for at least 100 trades.
2. For the same period, run a backtest with your current settings.
3. Match trades one by one. Compare entry price, exit price and cost.
4. Calculate average difference per trade.
5. Add that difference as extra slippage/commission in future backtests.
Typical sources of gap:
- Spread in backtest is fixed or based on historical data that doesn't match live.
- Slippage not modelled.
- Commission calculated differently.
- Swap on trades that run over.
If the gap is large (e.g. more than 30% of average profit per trade), the strategy is too sensitive to costs and may not be viable.
Repeat calibration every few months, as broker conditions change.
How big is the gap between your backtest and live costs?
Calibration process:
1. Run the EA live (or on a demo with realistic execution) for at least 100 trades.
2. For the same period, run a backtest with your current settings.
3. Match trades one by one. Compare entry price, exit price and cost.
4. Calculate average difference per trade.
5. Add that difference as extra slippage/commission in future backtests.
Typical sources of gap:
- Spread in backtest is fixed or based on historical data that doesn't match live.
- Slippage not modelled.
- Commission calculated differently.
- Swap on trades that run over.
If the gap is large (e.g. more than 30% of average profit per trade), the strategy is too sensitive to costs and may not be viable.
Repeat calibration every few months, as broker conditions change.
How big is the gap between your backtest and live costs?