Gold EA spreads and slippage: why trigger and fill prices differ
A gold EA's signal price, requested order price and fill price can be different. Separate the Bid/Ask spread at the time of the signal from slippage between the requested and filled prices. A profit chart alone cannot show whether execution costs were realistic.
Reviewed 23 November 2026. The prices below are illustrative, not live XAUUSD quotes or quotes from a broker.
How do Bid, Ask and spread affect an XAUUSD EA?
Bid is generally the price at which a trader can sell; Ask is generally the price at which a trader can buy. Spread is Ask minus Bid. If an illustrative quote is Bid 3300.00 and Ask 3300.20, the spread is a price difference of USD 0.20 per ounce. A buy opened at Ask and immediately valued at Bid starts with that difference even if the market has not moved. The monetary effect depends on contract size, lot size, commission and the actual fill.
Why can the signal, requested and filled prices differ?
A strategy may detect a signal using a Bid or Ask condition and then send an order according to its order type. A market order fills according to the prices and execution rules available at that moment. For example, a buy requested at 3300.20 but filled at 3300.26 has USD 0.06 of adverse slippage relative to the request. This is an illustration, not a forecast for the next order.
Are a wider spread and slippage the same cost?
No. Spread is the gap between the buy and sell quotes at one moment. Slippage is the difference between a requested price and the actual fill. Both can change around news, market openings or thin liquidity, but their size and direction are not fixed. Log the Bid and Ask at the signal, requested price, fill, order direction and timestamp separately.
How should a gold EA backtest account for execution costs?
Check whether the historical data reflects variable spreads, and inspect commissions, swaps and order handling. For a strategy sensitive to entry price, compare results under higher plausible costs, including trade count, equity drawdown and out-of-sample behavior. A historical test cannot guarantee future slippage. Demo order logs provide a separate check. See the MT5 gold EA backtest guide for the full review sequence.
What should be recorded for each demo or live order?
- Symbol, broker server time, EA version and relevant settings;
- Signal direction, trigger condition and Bid/Ask at the signal;
- Requested price, filled price, lot size, order type and broker return code;
- Time from request to fill, commission and swap;
- The corresponding quotes and fills when the trade closes.
Group the observations by trading session and spread range to distinguish signal, quote and execution effects. MetaQuotes documents the quote fields in its MT5 Market Watch guide. Review each product's order method and the risk disclosure against your broker's actual conditions.
