SMA Crossover for XAUUSD (Gold)
The classic golden-cross / death-cross signal — slower than EMAs, fewer false positives.
Indicators
SMA 50, SMA 200
Recommended Timeframes
4h, 1d
Symbol Volatility
high
Trading Sessions
London, New York (24/5)
Why SMA Crossover Works on XAUUSD
The SMA crossover uses simple moving averages instead of exponential. The signal is slower to fire (good — fewer whipsaws) but slower to exit (bad — bigger giveback). The 50/200 SMA cross is the textbook "golden cross" signal used by every CNBC anchor for a reason: on daily charts of major indices, it actually works.
Gold (XAUUSD) is the most-traded commodity pair in retail forex. Strong directional moves during news, high intraday volatility, and clean trending behavior on H1/H4 — a favourite for trend-following and breakout bots.
Commodities like gold and silver have well-defined fundamental drivers — central bank policy, real yields, USD strength. Combined with the technical setup below, this gives the strategy two independent edges.
Best For
- • Daily / 4h timeframes
- • Indices and large caps
Avoid In
- • Sub-hourly intraday
- • Choppy crypto altcoins
Pine Script Source
Copy this into PineForge — backtest on XAUUSD or any supported symbol, then deploy as a live bot.
//@version=5
strategy("SMA Crossover 50/200", overlay=true)
fast_sma = ta.sma(close, 50)
slow_sma = ta.sma(close, 200)
if ta.crossover(fast_sma, slow_sma)
strategy.entry("Long", strategy.long)
if ta.crossunder(fast_sma, slow_sma)
strategy.close("Long")Backtest SMA Crossover on XAUUSD in 30 seconds
Sign up for PineForge, paste this Pine Script, and run a 1-year backtest on real XAUUSD data — no credit card required.