Skip to main content
ForexCopilotEA

Spread, slippage and swap: the hidden costs of EA trading

By Benjamin Lee · Published 2026-10-11 · Updated 2026-10-30 · 4 min read

Spread, commission, slippage and swap are the four trading costs that separate a backtest from a live account, and an EA's real results depend on all of them. On EURUSD a 1.2-pip spread alone costs about 12 USD per standard lot, before commission, slippage or swap.

What is spread, and how much does it cost per trade?

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.

A worked example: on EURUSD, one pip is worth about 10 USD per standard lot on a USD account. A spread of 1.2 pips on a 1.00 lot trade therefore costs about 12 USD, and on a 0.10 lot trade about 1.20 USD. The trade starts that much in the red before price has moved at all. To see the current spread in MT5, right-click Market Watch and enable the Spread column.

Commission and the all-in round-trip cost

The all-in round-trip cost is the spread plus any fixed commission per lot, and it is the figure to compare accounts on. Some accounts pair a tight spread with that commission, so the spread alone understates their cost.

An illustrative comparison with made-up round numbers: account A has a 1.4 pip spread and no commission, so about 14 USD per lot. Account B has a 0.3 pip spread, about 3 USD, plus a 7 USD per lot commission, so about 10 USD per lot. The lower headline spread is the cheaper account here, but if B's commission were 12 USD per lot the order would reverse. Always do the sum with your broker's actual figures.

Slippage: requested price versus filled price

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.

For example, if an EA asks to buy EURUSD at 1.10000 and is filled at 1.10015, that is 15 points, or 1.5 pips, of slippage. Many EAs have a maximum deviation or slippage input in points that tells the server how far from the requested price it may fill. A tight value reduces slippage but can cause more rejected or missed orders, and a loose one accepts worse fills.

Swap and rollover: what it costs to hold a position overnight

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. For most forex symbols that is Wednesday, but the Specification window is the authority for each symbol. EAs that hold positions for days should include swap in their tests.

The Specification shows swap for long and short positions and the unit it is quoted in, such as points or money. A position held for five nights on a symbol that charges a negative swap pays that figure five times plus the triple-swap day, so a swing strategy can pay more in swap than in spread.

How to check your own costs, step by step

Measure your costs on a demo or small live account before trusting a backtest.

  • Watch the typical and the maximum spread on your symbol across a full day, including the rollover hour and a news release.
  • Read the swap values in the symbol's Specification window.
  • Compare a few trades' requested and executed prices in the Journal.
  • Check the commission in your account type's conditions and add it to the spread.
  • Rerun the backtest with a realistic spread and an execution delay, then compare it with the live figures.

Why backtests understate costs

The Strategy Tester can model spread as the current value, a fixed value, or the historical spread when it uses real ticks. A fixed low spread is the most flattering, and the tester can also run with zero execution latency, which hides slippage. For a short-term EA, testing with a delay and a spread near the worst typical level is more informative than the default.

When these costs matter less

Costs matter least to strategies that trade rarely, target wide moves and close within the day, since each trade carries a small cost relative to its target and no swap. They matter most for scalping and high-frequency EAs. Both kinds still need the costs measured on the broker they will trade.

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.

How do I calculate the spread cost of a trade?

Multiply the spread in pips by the pip value for your lot size. On EURUSD, a 1.2 pip spread on 1.00 lot is about 12 USD, on 0.10 lot about 1.20 USD. Add commission for the full cost.

What causes slippage in MT5?

Price moving between the moment the order is sent and the moment it is filled, usually in fast markets, at news releases or when liquidity is thin. It can work for or against you, and EAs can limit it with a maximum deviation input.

Why is swap tripled on Wednesday?

Most forex positions settle two business days later, so rolling a position over on Wednesday covers the weekend as well. Swap is charged for three days on that rollover. The Specification window shows the triple-swap day for each symbol.

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 on brokers, accounts and regulation for EAs

More guides