Does the SPY 200-day moving average beat buy and hold?
Market Timing Research โข Does the SPY 200-day moving average beat buy and hold?
๐ก Summary
This page asks whether holding SPY only while it closes above its 200-day moving average beats simply holding SPY. From 1994-01-03 to 2026-10-30 the rule returned a lower CAGR (7.92% vs 10.80%) but a much shallower maximum drawdown (-25.49% vs -55.19%). The main caveat is that it trailed SPY on return in both the in-sample and out-of-sample periods, and this is a historical test, not a forecast.
Key Metrics & Specifications
| Test Period | 1994-01-03 to 2026-10-30 |
| Strategy CAGR | 7.92% |
| Strategy Max Drawdown | -25.49% |
| Strategy Sharpe | 0.69 |
| SPY CAGR | 10.80% |
| SPY Max Drawdown | -55.19% |
| Execution & Costs | Signal on the close, fill at the next close; 0.1% per side; doubled-cost CAGR 6.52% |
| Rules | Compute the 200-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 | 9.91% vs SPY 14.76% from 2016-12 |
What the experiment recorded
| Run | CAGR | Max drawdown |
|---|---|---|
| Strategy | 7.92% | -25.49% |
| SPY | 10.80% | -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.
1994-01-03 โ 2026-10-30. Export dated 2026-11-02. 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 one thing: would following the 200-day moving average have beaten holding SPY, or at least made the ride smoother? Those are two different questions, and the answers differ.
This page tests the rule on daily data from 1994-01-03 to 2026-10-30 and compares it with buy and hold on SPY over the same dates. It is a historical exercise, not a prediction.
What the rules do and why people use them
The rule is simple: hold SPY only while it closes above its 200-day moving average. The test computes the 200-day simple moving average of the S&P 500 (SPY) from daily closes and holds SPY while the close is above that average. Otherwise it holds cash in Treasury bills. Decisions use the close, and trades fill at the next day's close.
People use this kind of filter because it aims to step aside during long, deep declines. The trade-off is that it can also step aside during recoveries and sit out part of the gains. Each switch costs money, so the test charges 0.1% per leg and records 429 trades over the period.
What the numbers say
Over the whole period the strategy had a CAGR of 7.92%, against 10.80% for SPY. A dollar grew to a multiple of 12.22 with the rule and 28.98 with buy and hold. The strategy did not beat the benchmark on return. Its maximum drawdown was -25.49%, versus -55.19% for SPY, and its Sharpe ratio was 0.69 versus 0.64. The strategy held SPY on 77.30% of days and cash on the rest.
The out-of-sample period is the last 30% of the data, starting 2016-12. There the strategy's CAGR was 9.91% against 14.76% for SPY, and its Sharpe ratio was 0.84 against 0.86. In the first 70% of the data, the in-sample period, the CAGR was 7.08% against 9.14%. The rule trailed SPY on return in both periods, and in the later period it also had a slightly lower Sharpe ratio.
To test sensitivity to trading costs, the same rules were rerun with the cost doubled. The CAGR fell to 6.52% and the maximum drawdown was -28.70%. The strategy still had the shallower drawdown, but its return was lower again.
Where this approach struggles
A moving-average filter reacts after prices have already moved. In 2022 the strategy lost -19.29%, compared with -18.18% for SPY, so it did not protect the year's result. Fast drops followed by sharp rebounds can leave it out of the market at the wrong time.
It also gives up return in long bull markets, which is why the 12.22 multiple sits well below the 28.98 multiple for SPY. The benefit shown here is a shallower drawdown, not higher returns.
This is historical research, not a forecast. Past simulated results do not predict future returns.
โ ๏ธ Risk Considerations
A backtest uses past prices, and the same rule may behave differently in future markets. Results depend on the chosen dates, the cost assumption and the next-day-close fill, so small changes can shift the numbers.
๐ฏ Target Audience
Retail investors who want to see how a simple trend-following rule compared with holding SPY, both on return and on the size of its losses.
Frequently Asked Questions (FAQ)
Q. Does the SPY 200-day moving average strategy beat buy and hold?
Not on return in this test. Its CAGR was 7.92% against 10.80% for SPY from 1994-01-03 to 2026-10-30. It did have a shallower maximum drawdown (-25.49% vs -55.19%) and a higher Sharpe ratio (0.69 vs 0.64).
Q. How did the strategy do out of sample?
In the last 30% of the data, starting 2016-12, the strategy's CAGR was 9.91% against 14.76% for SPY. Its Sharpe ratio was 0.84 against 0.86, so it did not beat SPY on either measure.
Q. What happens if trading costs are higher?
With the 0.1% per-leg cost doubled, the CAGR fell to 6.52% and the maximum drawdown was -28.70%. The rule made 429 trades over the period, so costs matter.
Compare investment strategies
Explore the assumptions and results behind different historical strategies.
Historical results do not guarantee future returns.