Stress testing a scalping EA with widened spreads
Posted: Sat Oct 17, 2026 1:43 pm
Stress testing a scalping EA with widened spreads
Most EA backtests use either a fixed spread or the historical spread from the data. Both assume your future costs will look like the past. For a scalping EA, that's a big assumption.
A simple stress test is to rerun the backtest with the spread increased. Add half a pip, then a full pip, to every trade. Or multiply the spread by one and a half and two. Then look at what happens to the results.
If the strategy stays profitable with a meaningfully wider spread, it has a margin of safety. If profit disappears with a small increase, the edge is mostly about costs being low, and any change in broker conditions could wipe it out.
It's also useful to widen spreads only at certain times, like the first minutes after the London open, rollover, or news releases. That shows whether the strategy relies on trading at the worst times for costs.
Slippage deserves a similar test. Add a fixed amount against you on each entry and exit and see how the results change.
None of this tells you whether the strategy will work. It tells you how fragile it is. A strategy that only works under perfect conditions is a risky thing to trade live, because conditions are rarely perfect for long.
Most EA backtests use either a fixed spread or the historical spread from the data. Both assume your future costs will look like the past. For a scalping EA, that's a big assumption.
A simple stress test is to rerun the backtest with the spread increased. Add half a pip, then a full pip, to every trade. Or multiply the spread by one and a half and two. Then look at what happens to the results.
If the strategy stays profitable with a meaningfully wider spread, it has a margin of safety. If profit disappears with a small increase, the edge is mostly about costs being low, and any change in broker conditions could wipe it out.
It's also useful to widen spreads only at certain times, like the first minutes after the London open, rollover, or news releases. That shows whether the strategy relies on trading at the worst times for costs.
Slippage deserves a similar test. Add a fixed amount against you on each entry and exit and see how the results change.
None of this tells you whether the strategy will work. It tells you how fragile it is. A strategy that only works under perfect conditions is a risky thing to trade live, because conditions are rarely perfect for long.