Does a 50-Day Moving Average Beat Holding SPY? Backtest Results
Market Timing Research • Does a 50-Day Moving Average Beat Holding SPY? Backtest Results
💡 Summary
Does holding SPY only while it trades above its 50-day moving average beat simply holding it? Over 1993-12-31 to 2026-10-30, the rule returned a 2.21% CAGR against 10.79% for SPY. It had a shallower maximum drawdown (-44.88% vs -55.19%), but it trailed on return and Sharpe ratio, and it did not hold up when trading costs were doubled.
Key Metrics & Specifications
| Test Period | 1993-12-31 to 2026-10-30 |
| Strategy CAGR | 2.21% |
| Strategy Max Drawdown | -44.88% |
| Strategy Sharpe | 0.25 |
| SPY CAGR | 10.79% |
| SPY Max Drawdown | -55.19% |
| Execution & Costs | Signal on the close, fill at the next close; 0.1% per side; doubled-cost CAGR -1.33% |
| Rules | Compute the 50-day simple moving average of the S&P 500 (SPY) from daily closes. Hold SPY while the close is above the average. Otherwise hold cash (Treasury bills). Decisions use the close; trades fill at the next day's close. |
| Out-of-Sample CAGR | 5.27% vs SPY 14.80% from 2016-12 |
What the experiment recorded
| Run | CAGR | Max drawdown |
|---|---|---|
| Strategy | 2.21% | -44.88% |
| SPY | 10.79% | -55.19% |
Sampled historical portfolio values from the experiment export. The plotted observations can omit intervening peaks and troughs; use the reported maximum drawdown above.
1993-12-31 – 2026-10-30. Export dated 2026-11-01. Historical simulation; future results can differ. Read the underlying experiment.
⚡ Interactive Compound Growth Simulator
Adjust initial investment and holding duration to calculate compounded terminal wealth.
* Hypothetical illustration for educational purposes only. Past backtest results do not guarantee future returns.
Compare investment strategies
Explore the assumptions and results behind different historical strategies.
Historical results do not guarantee future returns.
The question behind the search
Most people searching for this strategy want to know whether a simple trend filter can capture the stock market's gains while avoiding its worst declines. The question is whether it beats buy-and-hold, and what it costs to get there.
This page tests one specific rule against SPY over a long historical window. It is a description of the past, not a forecast.
What the rules do and why people use them
Hold SPY only while it closes above its 50-day moving average. The rule computes the 50-day simple moving average of the S&P 500 (SPY) from daily closes, holds SPY while the close is above the average, and otherwise holds cash (Treasury bills). Decisions use the close, and trades fill at the next day's close.
People use moving-average rules because they are easy to follow and aim to step aside during long downtrends. The trade-off is that the rule can also step aside during short dips that quickly reverse.
What the numbers say
Over the full period, the strategy had a CAGR of 2.21% and a Sharpe ratio of 0.25. SPY had a CAGR of 10.79% and a Sharpe ratio of 0.64. The strategy grew the starting amount 2.05 times, while SPY grew it 28.90 times. The strategy's maximum drawdown was shallower at -44.88%, against -55.19% for SPY.
The weakness shows in both halves of the data. In the first 70% of the period (in-sample), the strategy's CAGR was 0.92% against 9.11% for SPY. In the last 30%, starting 2016-12 (out-of-sample), it was 5.27% against 14.80%, with a Sharpe ratio of 0.52 against 0.86. The rule did not beat SPY in either segment.
Costs were assumed at 0.1% per leg across 1157 trades. Rerunning the same rules with the trading cost doubled gave a CAGR of -1.33% and a maximum drawdown of -68.40%. The result is not robust to higher costs. The strategy was invested in something other than cash on 68.84% of days, so it spent a large share of the period in Treasury bills.
Where this approach struggles
A short moving average reacts to every swing, which produces many trades and many whipsaws, where the rule exits just before a rebound or re-enters just before a drop. In 2000, the worst year in the test, the strategy lost -25.45% while SPY lost -9.74%.
The shallower maximum drawdown did not translate into better risk-adjusted results here. Time spent in cash and the cost of frequent trading outweighed the benefit of avoiding some declines.
This is historical research, not a forecast. Past simulated results do not predict future returns.
⚠️ Risk Considerations
A backtest uses past prices and simplified cost assumptions, so real results can differ, and a rule that failed historically may behave differently in other conditions. The doubled-cost run shows how sensitive the result is to trading costs.
🎯 Target Audience
Retail investors who want to see how a simple moving-average trend filter compared with holding SPY over a long history.
Frequently Asked Questions (FAQ)
Q. Does the SPY 50-day moving average strategy beat buy and hold?
In this backtest it did not. The strategy had a CAGR of 2.21% against 10.79% for SPY, and a Sharpe ratio of 0.25 against 0.64. Its maximum drawdown was shallower at -44.88% versus -55.19%.
Q. How did the strategy do out-of-sample?
In the last 30% of the period, starting 2016-12, the strategy had a CAGR of 5.27% against 14.80% for SPY. Its Sharpe ratio was 0.52 against 0.86, so it still trailed.
Q. What happens if trading costs are higher?
With the trading cost doubled from the 0.1% per leg assumption, the strategy's CAGR fell to -1.33% and its maximum drawdown deepened to -68.40%. The result was not robust to higher costs.
Compare investment strategies
Explore the assumptions and results behind different historical strategies.
Historical results do not guarantee future returns.