← All guides

Why live trading results differ from a backtest

Spreads, fills, price feeds and stop timing explained, and how to keep live results close to the backtest.

5 min read · Updated 6 November 2026

Different prices

Each broker's gold price differs slightly, so a candle can close a little higher or lower than in another data feed. Over hundreds of trades, small differences add up. Backtesting on your own broker's candles removes most of this gap.

Spread and fills

A backtest fills at the candle price. A live order pays the bid/ask spread, which XauLab backtests do not include, so live results can be worse. It may also fill a little away from the price it saw, especially around news, when spreads widen. Strategies with very small targets are hit hardest by this.

Stop loss and take profit inside one candle

When both the stop and the target are touched inside the same candle, a candle-based backtest cannot know which came first. XauLab assumes the stop was hit first, which is the cautious choice. For tests of up to about two months it can replay minute prices to get the order right.

How to keep them close

  • Backtest on your broker's candles.
  • Add your real commission.
  • Avoid very small stop and target distances that spreads can eat.
  • Run on demo first and compare the trades with the backtest in the Broker Connection.

Ready to try it on XauLab?

Read the trading risks

Educational content, not financial advice. Trading gold with leverage carries a high risk of loss, and past results do not guarantee future returns. Read the risk disclosure.