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.
Table of Contents
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.
The Four Trading Costs
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.
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.
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.
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.
Trading Costs and EA Compatibility
The costs that matter most depend on the type of EA.
| EA Type | Primary 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-Following | Swap. 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. |
How to Keep Trading Costs Down
You cannot eliminate trading costs, but you can reduce them through smart choices.
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.
Compare on Total Cost
Do not judge a broker on spread alone. Add in the commission and compare the all-in total cost.
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.
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.
🏦 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 →