Spread, slippage and swap: the hidden costs of EA trading
By Benjamin Lee · Published 2026-10-11 · 1 min read
A strategy that looks good in a backtest can behave very differently once real trading costs are included. This guide explains the four costs that matter and how to measure them.
Spread
The spread is the difference between the buy price and the sell price. You pay it on every trade the moment it opens. It widens at news releases, at the daily rollover and in thin markets.
Commission
Some accounts use a tight spread plus a fixed commission per lot. Add the commission to the spread to see the true round-trip cost. Compare accounts on the all-in figure, not the spread alone.
Slippage
Slippage is the difference between the price you requested and the price you received. It is most common during fast moves and low liquidity, and it can be positive or negative. Short-term EAs are the most sensitive to it.
Swap
Swap, or rollover, is the interest charged or paid when a position is held past the daily cut-off. It differs by symbol and direction, and it is tripled on one day of the week. EAs that hold positions for days should include swap in their tests.
How to check your own costs
Measure them on a demo or small live account.
- Watch the typical and the maximum spread on your symbol across a full day.
- Read the swap values in the symbol's Specification window.
- Compare a few trades' requested and executed prices in the Journal.
Frequently asked questions
Why is my live result worse than my backtest?
Backtests often assume a fixed or low spread and no slippage. Live trading includes variable spreads, slippage, commission and swap.
Does a lower spread always mean cheaper trading?
Not if the account charges a commission. Add commission to the spread to get the real cost.
Where do I see swap in MetaTrader 5?
Right-click the symbol in Market Watch and choose Specification. Long and short swap values are listed there.
Trading foreign exchange, gold and CFDs carries a high level of risk and may not be suitable for all investors. Past performance, backtests and live results do not guarantee future returns. This guide is general education, not financial advice.
More guides
- How to choose a forex broker for an Expert Advisor
- What is a forex Expert Advisor (EA)? A plain-English guide
- Martingale and grid Expert Advisors: how they work and what can go wrong
- How to spot a forex EA scam: red flags before you buy
- Can Expert Advisor backtests be manipulated? How fake results are made and how to spot them
- How to install an Expert Advisor (EA) on MetaTrader 5