RiseGroupFX
English
RGF / KNOWLEDGE

Spread and slippage in a gold trading bot: what to measure

For an XAUUSD trading bot, the signal price and the execution price can differ. Learn to separate spread, slippage and commission before comparing results.

What is the difference between spread and slippage?

Spread is the difference between the quoted Ask and Bid at the same moment. Slippage compares a recorded reference price with the actual fill. Record which reference you use: a strategy's signal price and the executable quote when an order is sent are different benchmarks. Mixing them can make the same execution look better or worse.

A hypothetical XAUUSD cost calculation

Assume a fictional USD account, a contract of 100 ounces per lot, a volume of 0.10 lots and an Ask–Bid gap of USD 0.40 per ounce. The spread-equivalent cost at that instant is 100 × 0.10 × 0.40 = USD 4. If the gap becomes USD 1.20, the equivalent becomes USD 12. These are arithmetic examples, not current gold quotes or recommended trade sizes.

This is not an invoice for the entire trade. Actual entry and exit prices, commission, financing and currency conversion determine the account result. If profit and loss already uses executable Bid/Ask prices, subtracting the spread again would double-count it.

Why a chart alone cannot explain a fill

MetaTrader's OTC charts use Bid prices, while executions involve Bid and Ask. A chart screenshot therefore cannot by itself establish what price was available for the other side. Inspect both quotes and the broker's execution mode. A candle touching a level is not sufficient evidence that a particular order should have filled there.

Build an execution comparison log

  • Record the exact symbol, account currency, contract size and point size.
  • Keep signal time, order-send time and fill time in one documented time zone.
  • Save Bid/Ask at the selected benchmark and the returned execution price when available.
  • Separate spread-equivalent estimates, slippage and actual charged fees; document missing data.
  • Compare observations by the model's operating hours, including skipped or rejected orders.

Evaluate the model's rules alongside its results

A spread threshold can prevent a new entry; it does not lock the eventual execution price. The applicable checks depend on the individual model. In RiseGroupFX, read the model passport and inspect the connected account's logs rather than assume every model uses the same filter. Include costs and skipped signals in your comparison. Demo observations are useful operational evidence, but they do not establish identical live execution or future profitability.

Sources and verification

Models and test assumptions

Continue reading