XXUANTIFY

EMA 50/200 crossover on Gold (daily): backtest 2003–2026

GXuantify Lab · Gold & FX by Xuantify · house profile · tested 2 Dec 2026 · data to 1 Dec 2026

Summary

We tested EMA 50/200 crossover on Gold (XAUUSD), daily candles, long only, from May 2003 to Dec 2026, with 0.01% spread per side (test run 2 Dec 2026). After costs the rules made 700.6%, while simply holding Gold made 953.2%. On the most recent 30% of the data (Aug 2019 – Dec 2026), shown separately, they made 132.2%; holding made 139.0%.

Too few trades to say

Profitable, with a smaller worst drop than holding (−32% vs −45%)

Fewer than 30 trades: one trade more or less could change the picture.

Result after costs
+700.6%
Just holding: +953.2%
Most recent 30%
+132.2%
Aug 2019 – Dec 2026 · holding +139.0%
Worst drop
−32%
Holding: −45%
Trades
21
0.9 a year
Win rate
43%
Profit factor 10.36 (won ÷ lost)
Average trade
+13.50%
Per trade after costs; trades compound into the total
Time in the market
68%
The rest of the time it waited in cash
Result card: EMA 50/200 crossover on Gold (XAUUSD), +700.6% after costs

The rules

Market · Gold (XAUUSD), daily candles, long only (it only buys, never sells short), without leverage

In · EMA (50) crosses above EMA (200)

Out · EMA (50) crosses below EMA (200)

An EMA (exponential moving average) is the average price of the last candles, with the newest counting most.

Orders fill at the open of the next candle. Costs: 0.01% spread per side. The most recent 30% of the data (from 8 Aug 2019) is shown separately; the rule itself is fixed in advance, nothing is tuned on the data.

Test this yourself

What happened

In this test, the rule gained 700.6% from 5 May 2003 to 1 Dec 2026, while just holding gained 953.2%. It won only 42.9% of its 21 trades, yet the average trade gained 13.5%, so the winning trades were bigger than the losing ones. It was in the market 67.6% of the time, and its biggest drop was 31.8% against 44.9% for holding. In the most recent 30%, from 8 Aug 2019, it gained 132.2% against 139.0% for holding, after gaining 244.2% in the first 70%.

Year by year, month by month

After standard costs. Each cell is that month's result in %, the last column the whole year. An empty cell: not in the market that month. Purple years fall in the most recent 30% (from 8 Aug 2019). The first and last year are not whole years.

YearJanJFebFMarMAprAMayMJunJJulJAugASepSOctONovNDecDYear
2003 –
2004 −1 +5 +2 +2 +5 −3 +11%
2005 −4 +3 −2 +2 −4 0 −1 +1 +8 −1 +6 +5 +13%
2006 +10 −1 +4 +12 −1 −5 +4 −2 −5 −1 +7 −2 +20%
2007 +3 +3 −2 +2 −3 −2 +2 +1 +11 +7 −2 +6 +31%
2008 +11 +5 −6 −5 +1 +4 −1 −14 −6%
2009 +8 +2 −3 −4 +10 −5 +3 0 +6 +4 +13 −7 +28%
2010 −1 +3 0 +6 +3 +2 −5 +6 +5 +4 +2 +3 +30%
2011 −6 +6 +2 +9 −2 −2 +8 +13 −11 +6 +2 −10 +10%
2012 +1 −2 −2 −2 +4 −3 0 −2 −5%
2013 −2 −2%
2014 −2 −1 −3%
2015 −3 −3%
2016 +1 −1 +5 −6 +9 +2 −3 0 −3 −5 −2%
2017 +1 0 −2 −1 +4 −3 −1 0 +2 +1%
2018 +3 −2 +1 −1 −1 0 0 −0%
2019* +3 −1 −2 −1 +2 +7 +1 +8 −3 +3 −3 +4 +18%
2020 +5 0 0 +7 +3 +2 +11 0 −4 0 −5 +7 +25%
2021 −2 −2 +1 −7 +2 0 −5 +1 −13%
2022 −2 +6 +2 −2 −3 0 +2 +2%
2023 +6 −5 +8 +1 −1 −2 +2 −1 −5 0 +3 +1 +5%
2024 −1 0 +10 +2 +2 0 +5 +2 +5 +4 −4 −1 +27%
2025 +7 +2 +9 +5 0 +1 −1 +5 +12 +4 +6 +2 +65%
2026 +13 +8 −11 −1 −2 −8 −3 −6%

* 2019: only the part from 8 Aug 2019 is in the most recent 30%.

With and without costs

All dataFirst 70%Most recent 30%Worst drop
Standard costs (0.01% spread per side)+700.6%+244.2%+132.2%−32%
No costs at all (theoretical)+704.0%+245.1%+132.6%−32%
Just holding Gold+953.2%+340.0%+139.0%−45%

Costs did not decide it: with no costs at all the rules made 704.0%.

Could it be luck?

Random entries

We entered at random moments, 20 times, with as many trades as the rules and on the same side, each trade leaving by the rules' own exit. The rules did better than 19 of the 20.

Without the best 10% of trades

Leave out the 3 best of 21 trades and the result is +46.0%. A result that leans on a few trades is fragile.

When did it work?

Gold's state on the day of entry: rising or falling (price against its 200-day average) and how wild it was (daily range against the two years before). Few trades per row, so read it as a rough picture.

MarketShare of timeTradesWonAverage trade
Falling, calm11%1100%+5.3%
Falling, wild11%250%+13.3%
Rising, calm29%1040%+7.0%
Rising, normal16%450%+26.9%
Rising, wild23%425%+18.6%

Related

EMA 20/50 crossover · Xuantify Lab · Gold & FX · EURUSD 4h · −22.7% after costsEMA 50/200 crossover · Xuantify Lab · Trend · BTCUSDT 1D · +482.8% after costsDonchian 20/10 breakout · Xuantify Lab · Gold & FX · XAUUSD 1D · +176.4% after costsRSI 30/70 · Xuantify Lab · Gold & FX · XAUUSD 4h · +155.7% after costs EMA: the backbone that keeps you on the right side · how the indicator behaves, reviewed

Questions

Did EMA 50/200 crossover beat holding Gold in this test?

Too few trades to say: from 2003 to 2026 the rules made 700.6% after costs, while holding Gold made 953.2%. Profitable, with a smaller worst drop than holding (−32% vs −45%). That is one market, one timeframe and one set of rules, not a promise for the future.

How did you test it?

On daily Gold data from May 2003 to Dec 2026, with orders filled at the open of the next candle and 0.01% spread per side. The most recent 30% of the data is shown separately. The rule is fixed in advance; nothing is tuned on the data. How we test

Share

A rule from the Lab's fixed list, run in a fixed order and picked before the result was known; every outcome is published, losers too. Past results don't guarantee future ones. Not financial advice.