Stocks. Options. Futures.
The Setup Lab · Test 11 · Gold

Trading gold with the Hull moving average

1.7%Per year
−24.6%Max drawdown
48.1%Win rate
135Trades
Hull moving average on Gold, 2000–2026 · buy-and-hold over the same days: 11.0% a year, max drawdown −44.4%

The Hull moving average is a moving average built to lag less. Alan Hull introduced it in 2005: it takes a weighted average over half the period, doubles it, subtracts the full-period weighted average and smooths the result over the square root of the period. The line hugs the price much more closely than a simple average and turns quickly.

I tested it on gold since 2000 the way StockCharts suggests using it: buy when the 20-day Hull average turns up while the 50-day one is rising, sell when the 20-day turns down. No crossovers, which Hull himself doesn’t recommend. 135 closed trades.

The rules

  • Buy when the 20-day Hull moving average turns up (it rises after a day it didn’t) while the 50-day Hull moving average is rising.
  • Sell when the 20-day Hull moving average turns down.
  • Alan Hull’s formula as StockCharts gives it: HMA = WMA(√n) of (2 × WMA(n/2) − WMA(n)) on the daily close, with ChartSchool’s 20-day entry and 50-day trend settings. Long only; in cash between trades.

Market: Gold futures, continuous front month (GC=F); contract rolls can leave small price jumps.

The result

1×2×5×10× 20052010201520202025
Hull moving average test Buy-and-hold Growth of 1, log scale. Nov 2000 – Nov 2026.
Hull moving averageBuy-and-hold
Annual return1.72%10.98%
Total return56%1392%
Max drawdown−24.6%−44.4%
Worst fall, from – toSep 2003 – Dec 2008Aug 2011 – Dec 2015
Time in the market21%100%
TradesValue
Closed trades135
Winners65 (48.1%)
Average winner+3.05%
Average loser−2.08%
Win/loss ratio1.46
Profit factor1.36
Best / worst trade+12.7% / −9.3%
Average holding time10 sessions

My read

It trades about 5 times a year and was in the market only 21% of the days; the average trade lasted 10 trading days. 48% of the trades won. The average winner made 3.0% and the average loser lost 2.1%, a profit factor of 1.36. The typical trade made almost nothing: the median was −0.1%.

The best trade, bought in Jan 2016, made 12.7% in 23 days. The worst was bought in Mar 2020, just before the Covid crash, and lost 9.3% in 5 days: the line turns quickly, but not as quickly as gold fell that week. The ten best trades together made more than the whole test; the other 125 lost money as a group.

Over the whole period it made 1.7% a year against 11.0% for holding gold. Its worst fall was 25% against 44%, but it was a slow slide from Sep 2003 to Dec 2008, years of small losses while gold itself more than doubled. It also did worse than both earlier gold tests, the MACD crossover and the Bollinger Band bounce. All of this is before costs.

My read: less lag is not the same as a better signal. A line that turns fast also turns on noise, and on gold most of the turns were noise: in and out within two weeks for nothing. The gains came from a handful of clean runs. I would rather use a fast average like this to manage a trade I already have than to decide when to buy one.

Every trade

135 closed trades, newest first
BoughtPriceSoldPriceResult
2026-02-124,948.42026-03-065,158.7+4.2%
2026-01-084,460.72026-02-034,935.0+10.6%
2025-11-284,254.92025-12-314,341.1+2.0%
2025-09-233,815.72025-10-234,145.6+8.6%
2025-08-263,433.02025-09-193,705.8+7.9%
2025-08-053,434.72025-08-153,382.6−1.5%
2025-06-133,452.82025-06-233,395.0−1.7%
2025-05-083,306.02025-05-133,247.8−1.8%
2025-04-113,244.62025-04-293,333.6+2.7%
2024-10-162,691.32024-11-042,746.2+2.0%
2024-09-132,610.72024-10-072,666.0+2.1%
2024-08-022,469.82024-09-032,523.0+2.2%
2024-06-072,325.02024-06-112,326.6+0.1%
2024-03-282,217.42024-04-232,342.1+5.6%
2023-12-192,052.12024-01-042,050.0−0.1%
2023-09-201,967.12023-09-261,919.8−2.4%
2023-08-031,968.82023-08-091,950.6−0.9%
2023-04-052,035.62023-04-182,019.7−0.8%
2022-12-291,826.02023-01-311,929.5+5.7%
2022-12-221,795.32022-12-231,804.2+0.5%
2022-12-021,809.62022-12-191,797.7−0.7%
2022-06-131,831.82022-06-141,813.5−1.0%
2022-01-131,821.42022-01-281,784.9−2.0%
2021-11-081,828.02021-11-231,783.8−2.4%
2021-07-301,812.62021-08-091,726.5−4.8%
2021-05-071,831.32021-06-041,892.0+3.3%
2021-04-071,741.62021-04-291,768.3+1.5%
2020-11-061,951.72020-11-111,861.6−4.6%
2020-10-211,929.52020-10-261,905.7−1.2%
2020-07-221,865.12020-08-121,949.0+4.5%
2020-06-021,734.02020-06-041,727.4−0.4%
2020-03-061,670.82020-03-131,515.7−9.3%
2020-01-271,576.82020-02-051,557.8−1.2%
2019-12-131,475.62020-01-151,552.1+5.2%
2019-08-271,541.02019-09-091,502.2−2.5%
2019-08-051,464.62019-08-211,504.6+2.7%
2019-07-161,409.22019-07-291,419.6+0.7%
2019-05-311,305.82019-07-081,397.0+7.0%
2019-02-201,343.32019-02-281,312.8−2.3%
2019-01-281,302.42019-02-121,309.2+0.5%
2018-11-061,223.82018-11-071,226.2+0.2%
2018-10-121,218.12018-10-301,222.6+0.4%
2018-09-141,195.02018-09-271,182.3−1.1%
2018-06-151,274.62018-06-181,276.2+0.1%
2018-04-121,338.42018-04-231,322.5−1.2%
2017-08-111,287.72017-09-141,324.7+2.9%
2017-04-121,275.32017-04-261,262.1−1.0%
2017-02-241,256.92017-03-031,225.5−2.5%
2017-02-031,218.52017-02-231,250.2+2.6%
2016-08-191,340.42016-08-231,340.6+0.0%
2016-06-281,315.32016-07-141,331.3+1.2%
2016-04-291,289.22016-05-111,274.6−1.1%
2016-04-201,253.22016-04-251,238.9−1.1%
2016-03-031,257.42016-03-151,230.4−2.1%
2016-01-211,099.12016-02-241,238.7+12.7%
2016-01-061,091.92016-01-151,091.5−0.0%
2015-12-231,069.42015-12-311,060.3−0.9%
2015-12-171,050.82015-12-181,066.2+1.5%
2015-10-071,149.02015-10-231,163.3+1.2%
2015-04-291,209.82015-05-041,186.8−1.9%
2014-12-101,228.92014-12-171,194.3−2.8%
2014-12-021,199.22014-12-081,194.7−0.4%
2014-07-141,306.32014-07-151,296.9−0.7%
2014-05-151,293.52014-05-191,293.7+0.0%
2014-05-051,309.02014-05-091,287.3−1.7%
2014-05-011,283.12014-05-021,302.6+1.5%
2014-03-121,370.32014-03-201,330.5−2.9%
2014-03-041,337.82014-03-111,346.5+0.7%
2014-02-071,263.32014-03-031,350.1+6.9%
2014-01-241,264.52014-01-311,240.1−1.9%
2013-08-131,321.22013-09-051,373.1+3.9%
2013-02-071,670.42013-02-121,648.7−1.3%
2012-10-041,794.12012-10-101,763.2−1.7%
2012-08-201,620.12012-09-261,750.6+8.1%
2012-08-071,609.72012-08-151,603.7−0.4%
2012-07-051,608.92012-07-121,564.9−2.7%
2012-04-301,663.42012-05-041,644.7−1.1%
2012-02-221,770.02012-03-021,708.8−3.5%
2011-10-261,722.72011-11-171,719.8−0.2%
2011-09-061,869.92011-09-141,823.5−2.5%
2011-06-211,546.02011-06-271,496.0−3.2%
2011-03-231,437.92011-05-061,491.2+3.7%
2010-12-291,413.12011-01-061,371.4−3.0%
2010-09-151,266.72010-10-201,343.3+6.0%
2010-06-161,229.32010-07-011,206.3−1.9%
2010-06-011,224.82010-06-151,233.2+0.7%
2010-04-281,171.32010-05-201,187.8+1.4%
2010-03-191,107.42010-03-221,099.3−0.7%
2010-03-011,117.82010-03-111,108.0−0.9%
2009-11-041,086.72009-12-081,142.8+5.2%
2009-10-061,038.62009-10-211,063.7+2.4%
2009-08-05964.22009-08-12950.7−1.4%
2009-05-06910.52009-06-09954.0+4.8%
2009-02-12948.52009-02-27941.5−0.7%
2008-12-12818.92009-01-07841.1+2.7%
2008-10-10855.42008-10-13838.9−1.9%
2008-09-18892.72008-10-02839.0−6.0%
2008-03-14998.22008-03-20919.6−7.9%
2008-02-12907.42008-02-13906.5−0.1%
2008-01-28927.12008-02-06900.7−2.8%
2007-11-27813.72007-12-03788.3−3.1%
2007-10-12748.72007-11-14813.0+8.6%
2007-08-08674.52007-08-17656.9−2.6%
2007-05-08685.12007-05-11670.6−2.1%
2007-02-09667.52007-03-02641.5−3.9%
2006-11-28637.22006-12-08626.1−1.7%
2006-10-27598.22006-11-16620.6+3.7%
2006-08-02651.62006-08-14628.5−3.5%
2005-10-10475.12005-10-17474.1−0.2%
2005-09-06444.42005-10-04466.1+4.9%
2005-03-09442.12005-03-21431.1−2.5%
2005-02-15425.92005-03-04434.2+1.9%
2004-11-08432.72004-12-09435.8+0.7%
2004-10-21424.42004-11-03424.6+0.0%
2004-07-09407.52004-07-21397.1−2.6%
2004-06-21394.02004-07-02398.3+1.1%
2003-12-02403.72004-01-16406.7+0.7%
2003-11-12394.92003-11-25391.1−1.0%
2003-09-23385.92003-10-03369.4−4.3%
2003-08-27373.52003-09-16373.5+0.0%
2003-08-12358.52003-08-26365.8+2.0%
2003-01-06351.72003-02-10363.7+3.4%
2002-12-04322.22003-01-03351.2+9.0%
2002-10-01320.92002-10-02321.5+0.2%
2002-09-20321.92002-09-30323.9+0.6%
2002-08-30312.42002-09-17317.0+1.5%
2002-05-21315.82002-06-07324.6+2.8%
2002-04-19302.32002-05-10311.0+2.9%
2002-03-04296.72002-03-08290.1−2.2%
2002-02-04289.32002-02-20292.3+1.0%
2001-12-17277.72002-01-23278.6+0.3%
2001-09-17289.82001-10-02289.9+0.0%
2001-08-08267.92001-08-24272.5+1.7%
2001-03-12271.62001-03-16258.1−5.0%
2000-12-22273.72001-01-03268.0−2.1%

How it was tested

  • Signals are read on the daily close; each trade happens at the next day’s close. No look-ahead.
  • Long only, fully in or fully out. No commissions, slippage, interest or dividends.
  • The test starts on the first day every indicator has a value (Nov 27, 2000); buy-and-hold covers the same days.
  • Prices: Yahoo Finance daily data (GC=F), snapshot gold-2026-11-11.csv. Checked by a second, independent program before publishing.

Not financial advice. This is educational content, shared for information and entertainment only, and it is not a recommendation to buy or sell any asset. Backtests and past results do not guarantee future results, and the numbers or charts here may contain mistakes. Trading carries risk, including losing all the money you put in. Do your own research before you make any decision.