Backtesting costs

Why your backtest beats your live results

Often it is costs. A small gross edge can turn negative once spread, commission, slippage and swap are counted.

What each cost does

CostWhen it bitesWhat to do
SpreadEvery entry. Widens around rollover and in thin hoursUse spreads by session, not one flat number
CommissionEvery round turnInclude it in 1R
SlippageMarket and stop ordersAdd it to stops
SwapPositions held overnightCount it for swing models. Your broker publishes its rates

Worked example

With a 10-pip stop on EURUSD and a total cost of 1 pip per round turn, each trade costs 0.1R. Over 100 trades that is 10R. A model averaging +0.08R before costs is losing after them. With a 40-pip stop, the same cost is 0.025R. This is why tight-stop models need the most careful testing.

How FX Battlefield handles it

Each market has spreads by session (Asia, London, New York and rollover), commission per side and slippage on market and stop orders. Spot FX commission defaults to $3.50 a side per lot, and CME micros to $0.62 a side. These are typical figures, so compare them with your broker's. Swap is not modelled, so account for it yourself on trades held overnight.

Read next

Questions

Should I add costs to intraday backtests?

Yes. Short-term models trade most often with the smallest targets, so costs take the largest share.

Is rollover a bad time to trade?

Spreads are usually widest around the 17:00 New York rollover, so test any model that trades near it with care.

Test it on your own rules.

Open the replay, free