Gold trading strategies, backtested

We backtested the gold strategies across 14 strategies in Strategy Lab. Every one below is profitable after costs and stayed profitable on a final 12 months it was never tuned on. The best, XAUUSD 1h Bollinger band breakout, made +489% from Jan 2020 to Nov 2026; the median profit factor is 1.69.

  • 14Backtested strategies
  • +489%Best return after costs
  • 1.69Median profit factor
  • +16.1%Best last 12 months

Results compared

StrategyTimeframeDirectionReturnProfit factorWin rateMax drawdownLast 12 months
XAUUSD 1h Bollinger band breakout1 hourLong only+489%1.2431.6%−57.8%+16.1%
XAUUSD 1h Bollinger band breakout (New York)1 hourLong and short+191%1.3724.1%−17.1%+15.1%
XAUUSD 4h Bollinger band breakout4 hoursLong only+94.9%1.9758.3%−4.7%+13.8%
XAUUSD daily Donchian breakoutDailyLong only+70.3%2.0469.9%−5.1%+5.8%
XAUUSD daily Donchian breakout (length 20)DailyLong only+67.5%1.6766.1%−6.9%+6.6%
XAGUSD 4h three soldiers or crows (Longs only)4 hoursLong only+65.1%1.7135.2%−7.7%+2.4%
XAGUSD 4h three soldiers or crows4 hoursLong and short+64.5%1.9635.9%−5.7%+13.8%
XAGUSD 4h liquidity run4 hoursLong and short+59.4%1.7440.0%−10.4%+8.4%
XAGUSD 4h pennant4 hoursLong and short+59.1%1.8257.9%−8.8%+12.9%
XAGUSD 15m order block15 minutesLong and short+50.0%1.6334.2%−7.6%+4.8%
XAUUSD 4h inside bar4 hoursLong only+48.7%1.5563.8%−5.6%+5.6%
XAGUSD 4h marubozu4 hoursLong and short+47.2%2.1054.0%−3.8%+11.9%
XAUUSD daily pullback to moving averageDailyLong and short+43.4%1.3651.6%−4.9%+1.8%
XAGUSD 1h Bollinger band breakout1 hourLong only+41.8%1.3550.8%−11.1%+5.1%

Backtests in Strategy Lab at 1% risk per trade, after each market's typical spread. Last 12 months were locked away during the search and tested once.

What worked

  • Timeframes

    4 hours (7), 1 hour (3), Daily (3), 15 minutes (1).
  • Setups

    Bollinger band breakout (3), Bollinger band breakout (New York) (1), Donchian breakout (1), Donchian breakout (length 20) (1), three soldiers or crows (Longs only) (1), three soldiers or crows (1), liquidity run (1), pennant (1), order block (1), inside bar (1), marubozu (1), pullback to moving average (1).
  • Targets

    1.5R (4), 1R (3), 4R (3), 3R (2), 5R (1), 2R (1). Wider targets win less often but pay more per winner.
  • Filters and direction

    7 with the 200 EMA trend filter, 6 with no filter, 1 with a high-volatility filter; 7 long only, 7 long and short.

XAUUSD is spot gold priced in US dollars, traded around the clock from Sunday evening to Friday evening, with the most volume in the London and New York sessions. Gold tends to trend for long stretches, which suits breakout systems, but it also makes sharp reversals around US data.

The strategies below were tested on spot gold with its typical spread and up to 20× leverage. Overnight financing isn't included, so check your broker's swap before holding trades for days.

Looking for an algo trading strategy for gold? Each card links to a full XAUUSD strategy backtest: the rules, every trade, the drawdown and how the last 12 months went, with a free prompt to rebuild it in Strategy Lab.

Every strategy

Backtests are hypothetical: they apply fixed rules to historical data with assumed costs and fills. Past results don't predict future results, and leveraged trading carries a high risk of loss. This is an educational description, not a recommendation.

TesseraFAQ

Gold trading strategies questions

Backtest any of these strategies free

Copy a prompt into TES and Strategy Lab rebuilds and backtests it on your own markets. No code, no card.