XXUANTIFY

Donchian 20/10 breakout on Gold (daily): backtest 2003–2026

GXuantify Lab · Gold & FX by Xuantify · house profile · tested 4 Dec 2026 · data to 3 Dec 2026

Summary

We tested Donchian 20/10 breakout on Gold (XAUUSD), daily candles, long only, from May 2003 to Dec 2026, with 0.01% spread per side (test run 4 Dec 2026). After costs the rules made 176.4%, while simply holding Gold made 992.3%. On the most recent 30% of the data (Aug 2019 – Dec 2026), shown separately, they made 75.1%; holding made 148.4%.

Did not beat holding in this test

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

Result after costs
+176.4%
Just holding: +992.3%
Most recent 30%
+75.1%
Aug 2019 – Dec 2026 · holding +148.4%
Worst drop
−23%
Holding: −45%
Trades
116
4.9 a year
Win rate
47%
Profit factor 1.75 (won ÷ lost)
Average trade
+1.00%
Per trade after costs; trades compound into the total
Time in the market
42%
The rest of the time it waited in cash
Result card: Donchian 20/10 breakout on Gold (XAUUSD), +176.4% after costs

The rules

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

In · the close is above the previous bar's Donchian Channel (20) upper band

Out · the close is below the previous bar's Donchian Channel (10) lower band

Orders fill at the open of the next candle. Costs: 0.01% spread per side. The most recent 30% of the data (from 11 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 176.4% from 5 May 2003 to 3 Dec 2026, while just holding gained 992.3%. It won only 46.6% of its 116 trades, yet the average trade was +1.0%, and the profit factor of 1.75 shows winners outweighed losers. It was in the market 41.6% of the time, and its biggest drop was 23.0% against 44.9% for holding. The most recent 30%, from 11 Aug 2019, gained 75.1% against 148.4% for holding.

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 11 Aug 2019). The first and last year are not whole years.

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

* 2019: only the part from 11 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)+176.4%+57.5%+75.1%−23%
No costs at all (theoretical)+182.9%+60.1%+76.3%−23%
Just holding Gold+992.3%+338.6%+148.4%−45%

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

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 18 of the 20.

Without the best 10% of trades

Leave out the 12 best of 116 trades and the result is −31.4%. 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. 3 trades came before the 200-day average existed and are not in a row.

MarketShare of timeTradesWonAverage trade
Falling, calm11%863%+2.5%
Falling, normal11%743%+0.9%
Falling, wild11%1346%−0.5%
Rising, calm29%4549%+2.0%
Rising, normal16%2129%−0.7%
Rising, wild23%1953%+0.9%

Related

Donchian 20/10 breakout · Xuantify Lab · Breakout · SOLUSDT 1D · +5,098.4% after costsDonchian 55/20 breakout · Xuantify Lab · Breakout · BTCUSDT 1D · +1,321.5% after costsDonchian 20/10 breakout · Xuantify Lab · Breakout · BTCUSDT 1D · +2,928.0% after costsRSI 30/70 · Xuantify Lab · Gold & FX · XAUUSD 4h · +155.7% after costs

Questions

Did Donchian 20/10 breakout beat holding Gold in this test?

No, not in this test: from 2003 to 2026 the rules made 176.4% after costs, while holding Gold made 992.3%. Profitable, with a smaller worst drop than holding (−23% 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.