BK Corp Club logoBK CORP CLUBTRADING AUTOMATION INSIGHTS

MT5 GUIDE · BK CORP CLUB

Spreads, Commission and Swap: Understanding MT5 EA Trading Costs

Trading costs eat into every EA's performance. Here is a plain-English breakdown of spreads, commissions and swap fees and how they affect automated trading results.

· Educational guide · BK Corp Club Editorial Team

An Expert Advisor can execute a perfect strategy and still underperform because of trading costs. The difference between a profitable EA and a marginal one can come down entirely to how much the broker charges per trade and how those costs accumulate over hundreds or thousands of trades.

This guide breaks down the three main trading costs in MT5 — spreads, commission and swap — and explains how they affect automated trading.

Spread

The spread is the difference between the bid price (what buyers pay) and the ask price (what sellers receive). When you open a trade, you immediately pay the spread.

If XAUUSD has a bid of 2,000.00 and an ask of 2,000.50, the spread is 0.50 (50 points or 5 pips on a 5-digit broker). If you buy at the ask price and immediately close at the bid, you lose the spread as the entry cost of the trade.

How spread affects EAs:

For scalping EAs that aim for small profits per trade (5–20 pips), spread is the dominant cost. A strategy that targets 10 pips and pays a 2-pip spread is giving up 20% of its target profit before the trade has even had a chance to move in its favour.

For swing-trading EAs that aim for 100–500 pip moves, a 2-pip spread is a much smaller proportion of the target and has less impact.

Fixed vs variable spreads:

Some brokers offer fixed spreads (the spread stays constant regardless of market conditions). Others offer variable (floating) spreads that widen during news events, low-liquidity periods and around market opens.

For EAs running during high-volatility periods, variable spreads can spike to 10× their normal width, dramatically increasing entry costs for trades opened at those moments. A good EA either avoids trading during high-spread periods or has a maximum-spread filter.

Commission

Some brokers — particularly ECN and STP brokers — charge a per-trade commission instead of (or in addition to) a spread. This is typically expressed as a fixed amount per standard lot traded.

A common commission structure is $3–7 per standard lot, per side. Because you pay commission when you open and again when you close, the round-trip cost on a $7-per-side broker is $14 per standard lot.

Comparing spread-only vs commission brokers:

A spread-only broker offering 2 pips on EURUSD costs approximately $20 per standard lot (each pip on EURUSD is worth $10). A commission broker offering 0.3-pip spread plus $7 commission per side costs $3 + $14 = $17 per standard lot.

For EAs that trade frequently, the commission structure is usually cheaper. For EAs that trade rarely or use wide stop losses, the difference matters less.

How to calculate commission impact on an EA:

If an EA trades 500 times per year and you pay $14 round-trip commission per standard lot (0.1 lot = $1.40 per trade), the annual commission cost is $700 on a $10,000 account — 7% of the account per year just in commissions.

Swap

Swap (also called rollover or overnight funding) is the cost (or credit) of holding a position open past the daily rollover time, typically 5 PM New York time. It reflects the interest rate differential between the two currencies in the pair.

For some currency pairs and directions, swap is a cost (negative). For others, it is a credit (positive). Gold (XAUUSD) almost always has a negative swap cost on both long and short positions.

How swap affects EAs:

EAs that hold positions for days or weeks accumulate swap charges. A position held for 10 days at a swap cost of $3 per day costs $30 in total — a meaningful amount for a small account.

On Wednesday, most brokers charge triple swap to account for the weekend (Friday–Sunday settlement). An EA that holds positions through the Wednesday rollover pays three times the normal swap.

Where to check swap rates:

In MT5, right-click on a symbol in the Market Watch panel, select "Specification," and scroll down to "Swap long" and "Swap short." These are the swap rates per standard lot per day, usually expressed in points or currency.

Putting costs together

To evaluate whether an EA is realistic on your broker, calculate the total cost per trade:

  1. Spread cost = spread in pips × pip value × lot size
  2. Commission = commission per lot × lot size × 2 (round trip)
  3. Swap = swap rate × number of days held × lot size

An EA that showed strong backtest results on a broker with 0.1-pip spread and no commission may perform very differently on a broker with 2-pip spread and $7 commission.

Always run backtests with the same spread and commission you actually pay. MT5's Strategy Tester allows you to set a custom spread and commission in the input settings — use it.

Past performance is not indicative of future results. All trading involves risk.

Related reading: How to read an MT5 Strategy Tester report · MT5 Expert Advisor settings explained

Educational content only, not financial advice. Trading involves risk and losses are possible. Automated trading does not guarantee profits.

← All MT5 guides · EA Shop · White-label EA licensing