RSI 30/70 on Gold (4-hour): backtest 2003–2026
GXuantify Lab · Gold & FX by Xuantify · house profile · tested 4 Dec 2026 · data to 4 Dec 2026
Summary
We tested RSI 30/70 on Gold (XAUUSD), 4-hour 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 155.7%, while simply holding Gold made 985.4%. On the most recent 30% of the data (Sep 2019 – Dec 2026), shown separately, they made 30.9%; holding made 146.0%.
Did not beat holding in this test
Profitable, with a smaller worst drop than holding (−39% vs −45%)
- Result after costs
- +155.7% Just holding: +985.4%
- Most recent 30%
- +30.9% Sep 2019 – Dec 2026 · holding +146.0%
- Worst drop
- −39% Holding: −45%
- Trades
- 170 7.2 a year
- Win rate
- 64% Profit factor 1.56 (won ÷ lost)
- Average trade
- +0.62% Per trade after costs; trades compound into the total
- Time in the market
- 46% The rest of the time it waited in cash
The rules
Market · Gold (XAUUSD), 4-hour candles, long only (it only buys, never sells short), without leverage
In · RSI (14) crosses below 30
Out · RSI (14) crosses above 70
The RSI (Relative Strength Index) scores recent gains against recent losses from 0 to 100. Below 30 counts as oversold, above 70 as overbought.
Orders fill at the open of the next candle. Costs: 0.01% spread per side. The most recent 30% of the data (from 20 Sep 2019) is shown separately; the rule itself is fixed in advance, nothing is tuned on the data.
Test this yourselfWhat happened
In this test the rule won 63.5% of its 170 trades, yet the average trade gained only 0.6%, so small average gains added up to a rise of 155.7% while just holding rose 985.4%. It was in the market 45.5% of the time. The biggest drop was 39.4%, against 45.0% for holding. The first 70% of the test rose 95.3%, but the most recent 30%, from 20 Sep 2019, rose 30.9% while holding rose 146.0%.
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 20 Sep 2019). The first and last year are not whole years.
| Year | JanJ | FebF | MarM | AprA | MayM | JunJ | JulJ | AugA | SepS | OctO | NovN | DecD | Year |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 | −2 | +2 | +4 | +3 | +6% | ||||||||
| 2004 | −2 | +1 | +3 | −5 | 0 | +2 | +2 | +2 | +2 | +3 | +6 | −1 | +13% |
| 2005 | −4 | 0 | −1 | +1 | −1 | +1 | 0 | +1 | +3 | −2 | +1 | +1 | +1% |
| 2006 | +1 | +3 | +1 | −5 | +5 | +4 | +1 | +7 | −1 | +17% | |||
| 2007 | +1 | +3 | +1 | 0 | 0 | +4 | +1 | +1 | +4 | +5 | +22% | ||
| 2008 | +8 | −3 | −5 | +1 | +2 | −1 | −8 | +4 | −10 | +9 | +4 | −1% | |
| 2009 | +7 | +1 | −1 | 0 | +2 | +2 | +1 | +3 | −5 | +9% | |||
| 2010 | −1 | +7 | +4 | +6 | −3 | +1 | +2 | +5 | +3 | +28% | |||
| 2011 | −4 | +2 | +3 | +1 | +1 | +4 | −7 | +4 | +2 | −7 | +0% | ||
| 2012 | +2 | −2 | −1 | +2 | −5 | +3 | +3 | +1 | 0 | 0 | −2 | +3% | |
| 2013 | +3 | −5 | +1 | −7 | −2 | −11 | +4 | +3 | −1 | −1 | −5 | +1 | −19% |
| 2014 | +3 | −5 | +3 | −1 | +2 | −2 | +2 | −6 | −3 | +2 | +6 | +1% | |
| 2015 | +5 | −6 | −2 | +4 | 0 | −7 | +1 | +1 | +3 | −7 | 0 | −8% | |
| 2016 | +3 | +1 | +2 | −1 | +2 | +1 | −1 | +4 | −3 | −5 | −1 | +0% | |
| 2017 | +2 | +2 | 0 | 0 | −2 | 0 | −2 | −1 | +2 | 0 | −1% | ||
| 2018 | +2 | +1 | −1 | −1 | −4 | −2 | −1 | +1 | +2 | +1 | +2 | −1% | |
| 2019* | +1 | 0 | +1 | +1 | +5 | −1 | +2 | −2 | +1 | +10% | |||
| 2020 | +2 | +8 | +2 | +1 | +1 | −4 | +2 | −3 | +4 | +14% | |||
| 2021 | 0 | −6 | −2 | +2 | −5 | +2 | +2 | −2 | +2 | 0 | +2 | −6% | |
| 2022 | 0 | +1 | 0 | 0 | −2 | −1 | −3 | −2 | −3 | 0 | +3 | −6% | |
| 2023 | −3 | +4 | −1 | −2 | +2 | 0 | −2 | +1 | +1 | +3 | +3% | ||
| 2024 | +1 | +3 | +1 | 0 | +1 | +2 | +4 | −1 | +1 | +12% | |||
| 2025 | +1 | −1 | +3 | +3 | +1 | 0 | +4 | +2 | +3 | 0 | +18% | ||
| 2026 | +6 | +11 | −5 | +3 | +2 | −12 | +3 | 0 | −7 | −7 | 0 | +2 | −6% |
* 2019: only the part from 20 Sep 2019 is in the most recent 30%.
With and without costs
| All data | First 70% | Most recent 30% | Worst drop | |
|---|---|---|---|---|
| Standard costs (0.01% spread per side) | +155.7% | +95.3% | +30.9% | −39% |
| No costs at all (theoretical) | +164.5% | +100.1% | +32.2% | −39% |
| Just holding Gold | +985.4% | +342.1% | +146.0% | −45% |
Costs did not decide it: with no costs at all the rules made 164.5%.
Could it be luck?
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 20 of the 20.
Leave out the 17 best of 170 trades and the result is −3.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.
| Market | Share of time | Trades | Won | Average trade |
|---|---|---|---|---|
| Falling, calm | 11% | 20 | 70% | +0.2% |
| Falling, normal | 11% | 10 | 50% | −0.8% |
| Falling, wild | 11% | 14 | 71% | +0.9% |
| Rising, calm | 29% | 55 | 64% | +0.7% |
| Rising, normal | 16% | 27 | 52% | −0.2% |
| Rising, wild | 23% | 41 | 68% | +1.5% |
Related
RSI 30/70 · Xuantify Lab · Mean reversion · ETHUSDT 4h · −98.5% after costsDonchian 20/10 breakout · Xuantify Lab · Gold & FX · XAUUSD 1D · +176.4% after costsEMA 50/200 crossover · Xuantify Lab · Gold & FX · XAUUSD 1D · +700.6% after costsEMA 20/50 crossover · Xuantify Lab · Gold & FX · EURUSD 4h · −22.7% after costs RSI: a timing tool, not a buy/sell system · how the indicator behaves, reviewedQuestions
Did RSI 30/70 beat holding Gold in this test?
No, not in this test: from 2003 to 2026 the rules made 155.7% after costs, while holding Gold made 985.4%. Profitable, with a smaller worst drop than holding (−39% 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 4-hour 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
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.