Evidence-based investing research
Value Investing Strategy (Strategy Overview)
Allocations for November 2026 (Final)
Cash TLT LQD SPY
Momentum Investing Strategy (Strategy Overview)
Allocations for November 2026 (Final)
1st ETF 2nd ETF 3rd ETF

SPY 30-day/9-month SMA Crossover Test

Steve LeCompte | | Posted in: Technical Trading

Guide Trend Following and Momentum Moving averages

Key Insight

SMA30d-SMA9m crossover strategy underperformed simple SMA9m strategy (9.3% vs 9.5% CAGR; Jan 1993–Sep 2020; SPY/cash allocation monthly; 0.2% switching frictions assumed).

A subscriber requested testing of a dual simple moving average (SMA) crossover strategy that holds SPDR S&P 500 (SPY) when its 30-day SMA (SMA30d, using 30 trading days) is above its 9-month SMA (SMA9m) and otherwise holds cash with yield that of 3-month U.S. Treasury bills (T-bills). To investigate, we calculate SPY SMA30d and SMA9m at the end of each month over the history of SPY and hold SPY or cash the next month as specified. As benchmarks, we consider buying and holding SPY and a strategy that is each month in SPY (cash) when SPY is above (below) its SMA9m at the end of the prior month. We focus on compound annual growth rate (CAGR) and maximum drawdown (MaxDD) as key performance metrics. We also perform some sensitivity testing on the choices of 30-day and 9-month SMAs. Using daily dividend-adjusted prices for SPY and monthly T-bill yields during January 1993 through September 2020, we find that:

We commence calculations at the end of December 1993 to accommodate a longest SMA of 12 months. We assume 0.2% frictions for switching between SPY and cash (likely too low early in the sample and too high late in the sample).

The following chart tracks net values of $1.00 initial investments in the SMA30d-SMA9m crossover strategy and in the SPY and SMA9m benchmarks over the full sample period. Notable points are:

  • SMA30d-SMA9m and SMA9m perform similarly, with the latter modestly preferable.
  • Both SMA strategies are mostly preferable to buying and holding SPY, largely due to avoidance of the 2008-2009 market crash. SMA30d-SMA9m appears to underperform SPY since that crash.

For perspective, we look at key performance statistics.

SPY SMA30d SMA9m crossover strategy cumulative

The following table summarizes key performance statistics for the SMA30d-SMA9m crossover strategy and in the SPY and SMA9m benchmarks. Notable points are:

  • SMA30d-SMA9m and SMA9m are both in SPY 76% of the time. Both switch between SPY and cash 30 times (a little over once per year on average), so neither are very sensitive to assumed level of switching frictions.
  • SMA9m is preferable based on both CAGR and MaxDD.

How sensitive are findings to the choices of 30-day and 9-months SMAs?

SPY SMA30d SMA9m crossover strategy performance stats

The next table summarizes CAGRs for various combinations of fast (20, 30 or 40 trading days) and slow (6, 7, 8, 9, 10, 11 or 12 months) SMAs over the full sample period. Orange shading highlights optimal combinations. Notable points are:

  • The 30-day fast SMA is mostly preferable.
  • Longer slow SMAs work better than shorter ones.

MaxDD, which occurs at the end of the sample period during the COVID-19 crash for dual SMA combinations, is insensitive to these variations.

Testing parameter variations on the same data introduces data snooping bias, such that the best-performing variations overstate expectations.

SPY SMA30d SMA9m crossover strategy CAGR sensitivity

In summary, evidence does not support belief that the dual 30-day/9-month SMA crossover strategy is preferable to the simpler daily price/9-month SMA strategy. 

Cautions regarding findings include:

  • As noted, success of the SMA strategies depends largely on the presence of the 2008 financial crisis in the sample.
  • As noted, the assumed constant level of frictions is a simplification that is, in this analysis, not serious.
  • As noted, sensitivity testing impounds data snooping bias. There may also be snooping bias inherited from another source via the initial parameter choices.

See also “SMA Signal Effectiveness Across Stock ETFs”.

Frequently Asked Questions

What is a dual simple moving average crossover strategy?

A dual simple moving average (SMA) crossover strategy holds an asset when a shorter-term SMA is above a longer-term SMA and otherwise moves to cash. In the SPY test, the strategy held SPDR S&P 500 (SPY) when its 30-trading-day SMA was above its 9-month SMA, and otherwise held cash earning the 3-month U.S. Treasury bill yield. Positions were set at the end of each month for the following month.

Does a 30-day/9-month SMA crossover beat a simple 9-month moving average strategy on SPY?

No, the SPY 30-day/9-month SMA crossover strategy did not beat the simpler 9-month SMA strategy, earning a 9.3% compound annual growth rate (CAGR) versus 9.5% from January 1993 through September 2020. The 9-month SMA strategy was also preferable on maximum drawdown. The evidence does not support the dual crossover being preferable to the simpler price/9-month SMA approach.

How is a moving average crossover strategy tested on SPY with monthly signals?

The SPY crossover test calculates the 30-day and 9-month SMAs at the end of each month and holds SPY or cash the next month based on which is higher. Cash earns the 3-month T-bill yield, and 0.2% frictions are assumed for each switch between SPY and cash. Performance is judged mainly by CAGR and maximum drawdown using daily dividend-adjusted SPY prices from January 1993 through September 2020, with calculations starting at the end of December 1993.

How does a moving average timing strategy compare to buying and holding the S&P 500?

In the SPY test, both the 30-day/9-month SMA crossover and the 9-month SMA strategies were mostly preferable to buying and holding SPY, largely because they avoided the 2008-2009 market crash. Both strategies were invested in SPY 76% of the time and switched between SPY and cash 30 times. The SMA30d-SMA9m crossover appeared to underperform buy-and-hold SPY since that crash.

What are the limitations of backtesting moving average crossover strategies?

Moving average crossover backtests such as the SPY 30-day/9-month test carry several cautions. Success of the SMA strategies depends largely on the 2008 financial crisis being in the sample. Testing variations of the fast SMA (20, 30 or 40 days) and slow SMA (6 to 12 months) on the same data introduces data snooping bias, so the best-performing variations overstate expectations. Initial parameter choices may carry additional snooping bias, and the constant 0.2% switching friction is a simplification that is not serious here.

Trend Following and Momentum guide

More on moving averages

All 391 articles in the Trend Following and Momentum guide

Guru Grades

1,206 predictions by 42 market gurus since 2022: 41% right. Always saying stocks will go higher: 62%.

As of the Nov 19, 2026 close

  1. 1 Ed Yardeni A 71%
  2. Always bullish B 62%
  3. 2 Jim Paulsen B 61%
  4. 3 Sam Stovall B 58%
  5. 4 Adam Turnquist B 58%
  6. 5 Ryan Detrick B 56%

Full leaderboard ›