Blog › Strategy

Gold trend following with a moving average: the 10-month rule tested on 20 years of gold

The simplest gold trading strategy with a respectable source is a moving average: hold gold while it is above its 10-month average, hold cash when it is not. Mebane Faber made it famous in 2007. I wrote down the test in advance, with a line that would count as failure, and ran it on GLD and gold futures with costs. It sold gold more than two months before the 2013 crash. It still failed.

The short version: as written, the 10-month moving average rule does not hold up on gold. On GLD out of sample (2015 to June 2026) it had a Sharpe of 0.55 against 0.76 for buy and hold, made 6.94% a year against 11.37%, and its worst drawdown was deeper, -29.6% against -22.0%. A lower return with a drawdown that is not shallower crosses the failure line I set in advance. Gold futures, the weekly version and a volatility-sized version all failed the same way. And one honest catch: in the one crash it was built for, it worked.

Cumulative return of the 10-month moving average rule on GLD from September 2005 to June 2026 net of costs: +423.6% all in or cash, +228.2% sized to 10% volatility, +783.7% for buy and hold, with the in-sample and out-of-sample periods marked
Faber's 10-month rule on GLD from September 2005 to June 2026, net of 0.05% per side, against holding GLD. Left of the dashed line is the in-sample period, right of it everything after. Blue ends at +423.6%, the volatility-sized version (orange) at +228.2%, buy and hold (grey) at +783.7%. The flat stretches are months in cash.

The rule is one comparison a month, and it comes from a 2007 paper

Mebane Faber's paper A Quantitative Approach to Tactical Asset Allocation (Journal of Wealth Management, 2007) tested one timing rule on stocks, bonds, real estate and commodities: hold an asset when its month-end close is above its 10-month simple moving average, otherwise hold cash. Ten months of month-end closes is roughly the 200-day average, checked once a month instead of every day. That is the whole gold moving average strategy. Stan Weinstein's Secrets for Profiting in Bull and Bear Markets (1988) has the weekly cousin: price above its 30-week average, so I ran that beside it.

Rule card for the 10-month moving average rule on gold: on the last trading day of the month, hold gold for the next month if the close is above the average of the last 10 month-end closes, otherwise sell at the next open and hold cash; costs 0.05% per side on GLD and 0.01% round trip on gold futures
The whole strategy. The signal is known at the month-end close and traded at the next day's open, so the test never trades at a price you could not have had.

The test was registered on 2026-11-29 and ran on December 1. GLD is the main market, from its launch in November 2004 to June 2026; gold futures (GC) from 2010 to April 2026 are the check. The rule needs ten month-ends before its first signal, so everything is measured from September 2005 on GLD and April 2011 on futures, buy and hold included. In-sample runs to the end of 2014, out-of-sample from 2015. Costs are 0.05% per side on GLD, two to three times what an ETF trade really costs, and 0.01% round trip on gold futures. The futures hold positions for months, so the continuous GC series was first adjusted for its 67 contract rolls, which would otherwise show up as price moves that never happened. Cash earns nothing in the test, which flatters buy and hold slightly in the years when cash paid interest.

The failure line was fixed before the run: a GLD out-of-sample Sharpe below 0.3, or a max drawdown no shallower than buy and hold's while the return is lower. The second half matters most for a rule like this. Its whole promise is to give up some return for smaller losses. If it gives up the return and still loses as much, it has not done its job.

In-sample it did what it promises; after 2015 it did not

Net of costsGLD in-sample 2005-2014GLD out-of-sample 2015-2026Gold futures out-of-sample 2015-2026Weinstein 30-week, GLD out-of-sample
Trades (signal flips)7121325
Win rate42.9%25.0%23.1%24.0%
Average trade+16.86%+10.08%+7.42%+5.17%
Median trade-0.98%-3.11%-2.86%-2.09%
Profit factor7.024.673.443.75
Total return+143.1%+115.4%+79.3%+120.4%
CAGR+9.99%+6.94%+5.32%+7.16%
Max drawdown-31.8%-29.6%-32.9%-28.7%
Time in market72.2%68.0%65.3%67.4%
Sharpe (daily, annualised)0.650.550.440.56
Buy and hold: CAGR+10.64%+11.37%+9.82%+11.37%
Buy and hold: max drawdown-40.5%-22.0%-23.5%-22.0%
Buy and hold: Sharpe0.590.760.660.76

Read the first column as the case for the rule. From 2005 to 2014 it nearly matched gold's return (+9.99% a year against +10.64%), with a better Sharpe (0.65 against 0.59) and a much smaller worst loss (-31.8% against -40.5%). That is exactly the trade Faber describes. Then read the second. From 2015 it made less than two thirds of gold's yearly return, and its worst drawdown was deeper than holding gold's. Gold futures tell the same story, and Weinstein's weekly version, with twice as many trades, landed almost on top of the monthly one.

The median trade is negative everywhere. Out of sample, a quarter of the GLD trades won, and the average win was +51.29% against an average loss of -3.66%. A rule like this lives on a few long holdings. Compounded, all 19 GLD trades since 2005 made +423.6%; without the three best ones they made -2.0%. So the question is what happened between the long holdings, and the best place to see it is the bear market the rule was supposed to dodge.

It sold gold more than two months before the 2013 crash

If you want one picture of why people use this rule, it is February 2013. Gold had peaked in August 2011, chopped sideways, and on January 31, 2013 GLD closed at $161.20, just under its 10-month average of $161.74. The rule sold at the next open, $162.66. Two and a half months later came the April 2013 crash.

GLD daily price 2011 to mid-2016 with the 10-month average and every signal flip: the rule sells at the open on February 1, 2013 at $162.66, GLD falls 38% to $100.50 in December 2015, and the rule re-enters three times in between, losing each time
Every signal flip from 2011 to mid-2016, shaded where the rule held gold. The arrow marks the February 2013 exit. From there GLD fell 38% to its December 2015 low; the rule was in gold 14% of those days and lost 16.6% over the same stretch, on three short re-entries that each lost.

Study the three green triangles after the arrow first. By April 2013 GLD was 19.3% below the exit price, at $131.31, and the rule was in cash for all of it. By the December 2015 low at $100.50, gold had fallen 38% from where the rule sold. But in between, gold rallied above its average three times, in March 2014, July 2014 and February 2015, and each time the rule bought, gold turned down again and the rule sold at a loss. From the January 2013 signal to the 2015 low the rule lost 16.6%, while it was in gold only 14% of the days.

Measured over the whole bear market, from GLD's peak on August 22, 2011 to its low on December 17, 2015, holding gold lost 45.6% and the rule lost 34.6%. It was better, but it was not the clean escape the chart at the top of most moving-average articles suggests. It was already 2012 before the rule first sold, because a 10-month average needs time to turn. And the losses did not stop at the low.

It then spent 13 years under its 2011 high

Drawdown from the previous peak for the 10-month rule on GLD 2005-2026 against buy and hold: the rule's worst drawdown is -42.1% against -45.6%, but it stays under its August 2011 high for 13.5 years until February 2025, against 8.9 years for buy and hold
GLD from 2005 to 2026, drawdown from the last peak. Blue is the 10-month rule, grey is holding gold. The rule's worst drawdown over the whole period was -42.1%, against -45.6% for holding gold, and it lasted much longer: holding gold was back at its 2011 high in July 2020, the rule only in February 2025.

This is the part that surprised me. After 2015 gold went sideways for years, and a sideways market is where a moving average hurts most: it buys every rally that looks like a new trend and sells every dip that looks like a new bear market. The rule lost 6.5% in 2016, 13.3% in 2021 and 4.2% in 2022, years in which holding gold made +8.0%, -4.1% and -0.8%. It caught the 2019-2020 rally, then gave back a large part of it in six losing trades from 2021 to 2023. Its longest time under a previous high was 13.5 years, from August 2011 to February 2025. Buy and hold needed 8.9.

Year10-month rule (GLD)Buy and hold GLDSized to 10% volatilityDays in gold
2005 (from Sep)+17.4%+18.8%+13.6%100%
2006+14.0%+22.5%+8.8%83%
2007+30.5%+30.5%+19.9%100%
2008-5.3%+4.9%-2.7%66%
2009+24.8%+24.0%+13.7%100%
2010+29.3%+29.3%+18.3%100%
2011+9.6%+9.6%+13.3%100%
2012-4.3%+6.6%-3.0%49%
2013+0.3%-28.3%+0.2%8%
2014-13.5%-2.2%-10.1%34%
2015-4.5%-10.7%-2.1%8%
2016-6.5%+8.0%-6.5%76%
2017-0.6%+12.8%-0.5%60%
2018-0.9%-1.9%-0.7%41%
2019+17.7%+17.9%+16.3%100%
2020+18.7%+24.8%+11.3%91%
2021-13.3%-4.1%-10.1%33%
2022-4.2%-0.8%-2.6%33%
2023+3.1%+12.7%+1.2%91%
2024+26.7%+26.7%+18.6%100%
2025+63.7%+63.7%+37.2%100%
2026 (to June 9)-1.4%-1.4%+1.3%100%

Gold fell in 7 of these 22 years, and the rule did better than holding gold in only 3 of them. In 9 of the years when gold rose, the rule made less. Since 2015 it was positive in 5 of 12 years and beat buy and hold in 2. That is not bad luck in one year; it is the shape of the rule in a market that did not trend.

In the 2024-2026 rally it could only match buy and hold

Gold rose almost in a straight line from 2024. The rule was in gold every day from January 2, 2024 to June 9, 2026 and made +104.5%, against +104.4% for holding GLD: the same position, so the same result. That is the best a long-only trend filter can do in a straight-line rally: match it. A rule like this earns its keep only in bear markets, so 2024-2026 can neither prove nor disprove it, and a test that ends in a rally makes any filter look worse than it did a few years ago. That cuts both ways, though. The rule's out-of-sample result already includes this rally at full size, and it still trails. Before blaming the length of the average, I checked the neighbours.

Shorter averages did better, but none passed on GLD

The registration fixed a grid in advance: month-end averages of 6, 8, 10 and 12 months, and weekly averages of 30, 40 and 52 weeks. The map only shows whether 10 months is a fair representative or an unlucky spike; nothing here was picked.

Heatmap of out-of-sample Sharpe 2015-2026 for moving averages of 6, 8, 10 and 12 months and 30, 40 and 52 weeks on GLD and gold futures: GLD from 0.52 to 0.80 with the tested 10-month rule at 0.55, gold futures from 0.41 to 0.63; buy and hold 0.76 and 0.66
Out-of-sample Sharpe for every average length in the registration, the book's 10-month rule boxed. The colours exaggerate the spread: every cell is between 0.41 and 0.80. Buy and hold scored 0.76 on GLD and 0.66 on gold futures.

The 6-month and 8-month averages did better on GLD, with Sharpes of 0.77 and 0.80, level with or just above holding gold. But neither passed the line: the 8-month made +10.81% a year against +11.37% with a worst drawdown of -25.4% against -22.0%. On GLD none of the seven lengths passed; on gold futures one did, the 6-month, by a hair. The tested 10 months is on the weak side of the map, but not an outlier, and switching to 8 months now, after seeing this, is exactly how a backtest stops meaning anything. The 40-week average is worth a word: older tests in our lab found weekly 40-week crossovers held up on gold while the same rule failed on most other commodities and on bonds. Here, on its own and out of sample, it scored 0.52 on GLD. This article tests gold only and does not claim anything about other markets. Next, costs.

Costs are not what broke it

Average out-of-sample trade at no cost, test cost, 2x and 4x costs: GLD +10.17%, +10.08%, +9.98%, +9.79%; gold futures +7.43%, +7.42%, +7.41%, +7.39%; break-even round trips 10.17% and 7.43%
The average out-of-sample trade before costs (grey), at the test costs (blue: 0.10% round trip on GLD, 0.01% on gold futures), and at 2x and 4x. The break-even cost is the round trip that would wipe out the average trade.

A rule that trades about once a year barely notices costs. On gold futures the Sharpe was 0.44 at the test cost and still 0.44 at four times it; the break-even round trip is 7.43%, 743 times the 0.01% used. On GLD four times the cost moves the Sharpe from 0.55 to 0.53. Whatever went wrong after 2015, it was the signal, not the trading bill. So I tried the one fix registered in advance.

Sizing to 10% volatility halved the risk and missed the line by a whisker

The pre-registered improvement keeps the signal and changes only the size: when long, hold min(1, 10% / 60-day realised volatility) of the account instead of all of it, resized at each month-end. Gold's volatility is usually above 10%, so the position is smaller: out of sample it was on average 48.5% invested, against 68.0% for the all-in rule. In-sample it looked like the answer: a Sharpe of 0.81 and a worst drawdown of -20.9%, against 0.59 and -40.5% for holding gold. Out of sample its Sharpe was 0.55, the same as the all-in rule, it made 4.82% a year, and its worst drawdown was -22.2% against -22.0% for holding gold. A lower return with a drawdown that is not shallower: it fails the line too, by the narrowest margin in this article. On gold futures it scored 0.39. Scaling down a weak signal makes it smaller, not better.

The standard menu kept one fix, and it did not hold

Every strategy article also runs the site's fixed list of possible improvements, separate from this test's registration; its current version (2026-11-08) was set before this run. The choice uses in-sample data only: both markets are cut at the end of 2014 before any variant or indicator is computed. An item is kept if it raises the in-sample Sharpe by at least 0.10 on average over the markets and beats the base rule in at least 70% of its settings. At most 2 are kept, and only those are then run out of sample, once. Five items apply to a long-only trend rule on gold, tried in 25 settings. The base rule's in-sample Sharpe was 0.65 on GLD and -0.24 on gold futures, whose in-sample period is only April 2011 to 2014, a bad stretch for gold.

Menu item (in-sample only)Change in SharpeShare of settings betterKept?
Calm market only (no new position when 20-day volatility is above its 70th/80th/90th percentile)+0.000%no
Volatility-scaled size (10/20/40-day volatility, at most 2x)+0.17100%yes
Fixed holding time (5/10/15 days)-0.1250%no
ATR stop (2/3/4 x ATR below the entry)-0.0850%no
GLD and gold futures together, equal risk+0.2350%no (helps one market only)
Trend filter, only after fear, one side only, Fed days, distance from VWAPdo not apply (the menu limits them to other strategy styles, two-sided rules or intraday)

"Change in Sharpe" is the in-sample gain at the menu's default setting, averaged over the two markets. The calm-market filter changed nothing because it never fired: not one of the 7 in-sample GLD entries, or the 6 on futures, came in a high-volatility month. Trend entries happen after calm climbs. The one item kept was the menu's own volatility sizing, which, unlike the registered version, can go up to twice the account. Out of sample it did not hold: a Sharpe of 0.55 on GLD with a worst drawdown of -36.1%, and 0.40 on gold futures with -36.7%, both deeper than holding gold, with lower returns. As written, the rule fails, and the one change chosen before we looked fails too.

Lab notes

The test was registered on 2026-11-29 and ran unattended early on December 1. The first draft of the 2013 chart had a note that said the rule sat out the whole fall to the 2015 low "in cash". The numbers from the same run said otherwise: it was in gold 14% of those days, on three re-entries that all lost. I rewrote the note. The second surprise was the calm-market filter from our menu. I expected it to block a few entries; it blocked none of the 13 in-sample entries on either market, which says something about when trend signals arrive. And the registered volatility sizing failed its drawdown test by two tenths of a percentage point, -22.2% against -22.0%. I left the line where it was.

So does the gold moving average strategy work? In the one situation it is built for, a long and steady bear market, it helped: it sold before the 2013 crash and lost 34.6% where gold lost 45.6%. But gold after 2015 mostly chopped sideways and then rose in a straight line, and in that market the rule paid for its insurance twice, with whipsaw losses and with a smaller share of the rally. Out of sample it trailed buy and hold on return, on Sharpe and on drawdown. If you hold gold for the long run, this test says the filter would have made your life harder, not easier. It is in good company: our 200-day moving average test found the same filter backfired on gold, and the Donchian breakout was only weak on it.

FAQ

What is the 10-month moving average strategy for gold?

It is Mebane Faber's timing rule from his 2007 paper 'A Quantitative Approach to Tactical Asset Allocation', applied to gold. On the last trading day of each month you compare gold's close with the average of its last 10 month-end closes. Above it, you hold gold for the next month; not above it, you sell and hold cash. You look once a month and trade at the next day's open.

Does the gold moving average strategy work?

Not in our pre-registered test. On GLD from 2015 to June 2026 it had a Sharpe of 0.55 against 0.76 for buy and hold, a CAGR of 6.94% against 11.37%, and a deeper maximum drawdown, -29.6% against -22.0%. That crossed the failure line set before the test. It did step aside for most of the 2013-2015 gold crash, but whipsaw losses around it gave much of that back.

Is this a good gold futures strategy?

On gold futures (GC) it was no better. Out of sample its Sharpe was 0.44 against 0.66 for holding the futures, with a max drawdown of -32.9% against -23.5%. Costs were not the problem: even at four times our futures cost of 0.01% per round trip, the Sharpe stayed at 0.44.

Is it a gold swing trading strategy?

No. It is much slower than swing trading. It trades about once a year on average, and a holding can last from about a month to three years. If you want a faster rule on gold, the Donchian 20-day breakout we tested trades several times a year, and it was also weak on gold.

Is there a gold trading strategy PDF or an XAUUSD strategy PDF?

Yes. The free PDF for this article has the rules exactly as tested, the results table and standalone Python code you can run on your own daily gold data, whether that is GLD, gold futures or an XAUUSD price series. We tested GLD and gold futures, not a spot gold CFD; a CFD adds overnight financing, which the test does not include.

Backtest notice: GLD (2004-11-18 to 2026-06-09): daily prices from Yahoo Finance, frozen cache, 0.05% commission per side; results measured from 2005-09-01, the day after the first possible signal. Gold futures (GC): Databento continuous 15-minute data 2010-06-07 to 2026-04-06, ratio back-adjusted for contract rolls, daily bars from the 08:30-13:30 New York session, 0.01% per round trip, measured from 2011-04-01. Signals at the month-end (or week-end) close, all trades at the next day's open, long or cash, cash at 0%. Rules from Mebane Faber, A Quantitative Approach to Tactical Asset Allocation (Journal of Wealth Management, 2007), and Stan Weinstein, Secrets for Profiting in Bull and Bear Markets (1988); the test design was registered on 2026-11-29. Backtested performance is hypothetical. Past performance does not guarantee future results. This is research, not financial advice.
Robin Eriksson

Robin Eriksson

Founder of EdgeLab. Five years of discretionary losses taught me to test everything — now I publish the strategies that survive. About me →

Related: Gold's autumn effect: does buying gold for September and November still work? · The Donchian channel breakout strategy, tested on gold, Nasdaq and the S&P 500 with costs · VWAP strategies on Nasdaq futures: 16 years of one-minute data