Home > EA & MT5 Knowledge Base > Swap and Trading Costs

Trading CostsOperationsBeginner

Swap and Trading Costs — The Silent Drain on EA Profits

Last updated: 2026-05-20 | Estimated read: 13 min

EA profit and loss is often thought of simply as winning trades minus losing trades — but in practice there is a third element: costs that quietly accumulate on every single trade. These are spread, slippage, commission, and swap. This article explains how these trading costs work and how they affect EA performance.

Why Trading Costs Matter

Each individual trading cost may be small, but EAs trade repeatedly — so costs accumulate with every trade. An EA that makes 10 trades a day is paying over 2,000 cost events in a single year.

The smaller an EA's edge, the more damaging these costs become. For an EA with a low average profit per trade, trading costs can exceed the gains, leaving you in a situation where the EA appears to be winning but the account balance does not grow.

An EA's true performance is measured after costs. If your backtest uses unrealistically low cost assumptions, you will be in for a painful surprise in live trading.

The Four Trading Costs

1

Spread

The difference between the bid and ask price. It is the de facto commission charged the moment you enter a trade — the most fundamental cost, incurred on every trade.

2

Slippage

The difference between the intended price and the actual fill price. It increases during fast-moving markets or with slow-executing brokers. It can work in your favor or against you.

3

Commission

A separate fee charged per trade, typically on ECN-type accounts. The standard model is tighter spreads in exchange for a per-trade commission.

4

Swap

An overnight interest adjustment applied when a position is held past the daily rollover. It can be positive or negative. The impact is greatest for medium-to-long-term EAs that hold positions for extended periods.

How Swap Works

Swap is an adjustment derived from the interest rate differential between two currencies. It is credited or debited every day a position is held overnight. The sign is opposite for long and short positions — if one side is positive, the other is negative.

For day-trading EAs that close all positions within the same day, swap is essentially irrelevant. But for medium-to-long-term EAs that hold positions for days or weeks at a time, accumulated swap can have a significant impact on overall profit and loss. Holding a position in a negative-swap direction for a long time will erode your profits day by day, even when the trade is technically winning.

Wednesday rollovers typically carry three days' worth of swap at once (to account for the weekend). If you use a medium-to-long-term EA, always check the swap rate — both long and short — for the currency pairs it trades.

Trading Costs and EA Compatibility

The costs that matter most depend on the type of EA.

EA TypePrimary Cost Impact
Scalping (Ultra-Short-Term)Spread and slippage. Extremely high trade frequency means even tiny differences add up fast.
Day Trading (H1–H4)Spread and commission. Swap is largely irrelevant.
Medium-to-Long-Term / Trend-FollowingSwap. Long holding periods mean swap accumulates significantly.
Martingale / Grid (Averaging Down)Spread and swap. Multiple positions held for extended periods make both costs a concern.
When selecting an EA, think about which costs your account will impose on that particular EA type. Combinations like running a scalping EA on a high-spread account, or holding a medium-term EA in the negative-swap direction, can seriously damage performance.

How to Keep Trading Costs Down

You cannot eliminate trading costs, but you can reduce them through smart choices.

1

Match Your Account Type to the EA

Use a low-total-cost account for high-frequency EAs, and choose favorable swap conditions for medium-to-long-term EAs.

2

Compare on Total Cost

Do not judge a broker on spread alone. Add in the commission and compare the all-in total cost.

3

Reflect Accurate Costs in Your Backtest

Run your backtest using the actual spread, commission, and swap of the account you plan to use, and confirm that the EA remains profitable after costs.

4

Avoid Needlessly High-Frequency EAs

The more trades an EA makes, the higher the total cost bill. High-frequency EAs with a small edge are especially vulnerable to being consumed by costs.

Minimizing trading costs is a defensive move, not an offensive one. It may not be exciting, but cutting costs by 10% puts that amount directly into your pocket as additional profit.

🏦 Choose the Right Broker for Your EA

Trading costs vary greatly depending on your broker. Learn how to verify EA-broker compatibility.

Read about Broker Selection →

Frequently Asked Questions

Q: What is swap?

Swap is an overnight interest adjustment based on the interest rate differential between two currencies. It is credited or debited every day a position is held past the daily rollover, and the sign is opposite for long and short positions. It is largely irrelevant for day-trading EAs, but can have a major impact on the profitability of medium-to-long-term EAs.

Q: How much do trading costs affect EA performance?

It depends on the EA type. For high-frequency scalping EAs, costs can account for the majority of profits. An EA making 10 trades a day pays over 2,000 cost events per year, so even small per-trade costs add up to a large sum.

Q: Does choosing a tight-spread account minimize my costs?

Not necessarily. ECN-type accounts with tight spreads charge a separate commission per trade. Compare the all-in total cost — spread plus commission — not just the spread.

Q: How much should I worry about swap for a medium-to-long-term EA?

For EAs that hold positions for days or weeks, accumulated swap cannot be ignored. Holding in a negative-swap direction erodes your profits every day, even if the trade is technically winning. Always check the swap rates for the currency pairs your EA trades before running it live.

Q: What cost settings should I use in my backtest?

Use the actual average spread, commission, and swap of the account you intend to trade on. For a more conservative check, try running the backtest with the spread set to about 1.5× the average — if the EA is still profitable at that level, you can have more confidence in the results.