Every trade an Expert Advisor (EA) places costs money before it makes any: the spread, often a commission, and a swap for every night it's held open. These costs decide whether a strategy that looks profitable on paper makes money in your account, and one of them, commission, changes the lot size your risk allows. This page explains each one and where to find it in MetaTrader 5 (MT5).
Every symbol has two prices:
The spread is the gap between them: Ask − Bid. A buy opens at the Ask and is closed at the Bid; a sell opens at the Bid and is closed at the Ask. So every new trade starts at a small loss, the size of the spread.
The symbol's Specification window (Market Watch, right-click the symbol, Specification) shows the spread in points (page 0.1 explains points). If it says floating, the spread moves with the market. It's usually narrow in busy hours and can widen sharply around news, at the daily rollover and when the market is quiet. A floating spread you read today is a reading for today, so note the date with it.
Why it matters for an EA: an EA that trades often, or aims for small profits, pays the spread on every trade. And some EAs refuse to trade above a maximum spread you set in their inputs, so a wide spread can stop one trading altogether.
Many brokers charge a commission on top of the spread, usually on accounts with tighter spreads. It usually shows in the Commission column of MT5's trade history, but some brokers charge it at the end of the day or month as a separate balance entry, so take the figure from the broker's terms, not from one trade. Brokers charge it in different ways:
The broker's published terms say which. For your own sums, turn it into one figure: the round-trip commission per lot, in your account currency. Per lot per side, in money? Double it. In another currency? Convert it at a rate you note with its date. Charged any other way (per deal, as a percentage, in points or in tiers), write "unknown" and ask the broker.
Example (Illustrative): commission 3.50 per lot per side is 7.00 per lot round trip. The 0.40-lot trade from page 0.1 pays 2.80 in commission, so its loss at the stop is 100 + 2.80 = 102.80, more than the 100 you decided on. To allow for it, add the commission before working out the lot: 100 ÷ (250 + 7) = 0.389, rounded down to 0.38 lots.
A swap is a charge or credit for holding a position past the end of the trading day. It reflects the interest-rate difference between the two currencies, plus the broker's markup, and it can be negative or positive. It differs for buys and sells.
The Specification window shows:
Example (Illustrative): a swap of −6.50 per lot per night costs the 0.40-lot trade 2.60 a night, and 7.80 on a triple-swap night.
Record the swap, but leave it out of a trade's loss at the stop, because nobody knows in advance how long a trade will be held. For an EA that holds trades for weeks, swap can add up to a real cost, and it's worth checking against the seller's results.
Spread, commission and swap together are your trading costs. Add what you pay for the EA and any hosting, and that's what a strategy has to beat before it makes you anything. A backtest that assumes lower costs than your broker charges will look better than your account does.
MT5 details checked against MetaQuotes' MetaTrader 5 help and MQL5 reference, October 2026. Examples are illustrative; read your own broker's figures.
Trading involves risk. Only trade with money you can afford to lose. This page is educational and is not financial advice.

© 2026 The Robotic Trader. All rights reserved.