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

Simple Test of MACD Crossover as an Abnormal Returns Indicator

Steve LeCompte | | Posted in: Technical Trading

Guide Trend Following and Momentum Moving averages

Key Insight

MACD crossover strategy (12/26-day EMA difference crossing 9-day EMA with 25% filter) underperformed SPY buy-and-hold despite 1.3% average round-trip gains (Jan 1993-Feb 2008; 84 round trips, 45% market exposure).

Here is a simple test of the Moving Average Convergence/Divergence (MACD), as calculated using the Exponential Moving Average (EMA) template at StockCharts.com, on a tradable proxy for the S&P 500 index. MACD is the difference between the 26-day EMA price and the 12-day EMA price for an asset. A bullish (bearish) crossover occurs when MACD moves above (below) its 9-day EMA. To reduce the number of very short-term MACD trades, we filter out “close calls” by requiring MACD to reach a level 25% above or below its 9-day EMA before triggering a trade. Using daily dividend-adjusted closing prices for the S&P Depository Receipts Trust (SPY) from 1/29/93 (the earliest available) through 2/29/08, we find that:

We apply the MACD calculations and thresholds as follows:

  1. Calculate MACD over the sample period.
  2. Calculate the 9-day EMA for MACD, along with thresholds plus and minus 0.25 times the absolute value of the 9-day EMA, over the sample period.
  3. The first time there is a new MACD buy signal (MACD rises at least 25% above its 9-day EMA), buy SPY at the close.
  4. The first time there is subsequently a MACD sell signal (MACD falls at least 25% below its 9-day EMA), sell SPY at the close.
  5. Repeat the previous two steps across the entire sample.
  6. Whenever out of SPY, assume a daily return on cash equal to the contemporaneous 90-day Treasury bill (T-bill) yield.
  7. Ignore trading fees/frictions (since there are on average only a handful of transactions per year).

This approach generates 168 MACD-triggered transactions (84 round trips) over the entire sample period, an average of about six round trips per year. Of the 3,799 trading days in the sample, these transactions put the portfolio in SPY 1,708 days (45%) and out of SPY 2,091 days (55%). The 84 round trips produce 62 gains (with the largest 19.2% in mid-1995) and only 22 losses (with the largest -12.5% in mid-2002). The average gain for all 84 round-trip trades is 1.3%.

The following chart summarizes the average daily SPY returns for all days in the sample, days when in the market on MACD signals and days when out of the market on MACD signals. It shows that daily SPY returns tend to be above normal between MACD buy and sell signals and below normal between MACD sell and buy signals. It also shows that daily return volatility tends to be relatively high when in the market.

Do these results make the MACD trading strategy a market-beater?

returns

The next chart plots the cumulative value of $1 initial investments made at the close on 1/29/93 in three strategies:

  • Buy and hold SPY
  • Trade in and out of SPY on MACD buy and sell signals, with no return while out of stocks
  • Trade in and out of SPY on MACD buy and sell signals, with return on cash while out of stocks equal to the contemporaneous daily T-bill yield

The chart shows that the MACD strategies underperform buy-and-hold over the sample because: (1) they are often out of stocks; and, (2) even the low return on SPY while the MACD strategies are out of stocks slightly beats the T-bill yield. Visual inspection suggests that the MACD strategies tend to underperform (outperform) buy-and-hold during bull (bear) market phases, lending them some appeal on an annual risk-adjusted basis. Results are sensitive to the start date of the analysis.

Are there better ways to exploit MACD signals?

cumulatives

Some ideas for exploiting MACD signaling are:

Apply leverage on buy signals to exploit the abnormally high average returns during such intervals. However, leverage is not free, and the relatively high daily volatility during these intervals may make leverage painful. Also, unleveraged buy-and-hold may not be the appropriate benchmark for leveraged strategies.

Combine MACD on SPY with MACD on other assets/asset classes to generate a better return than the T-bill yield when out of SPY. Different assets/asset classes may be sufficiently “out-of-synch” with the broad U.S. stock market to support this approach, but capital may not be available for the portfolio to respond crisply to all MACD signals as generated.

Reduce the number of days out of stocks by loosening the MACD buy signal threshold, but not the sell signal threshold. For example, removing the filter for buy signals but keeping the 25% filter for sell signals: (1) puts the MACD strategies in stocks about 62% of the time; and, (2) makes the cumulative return for the MACD strategy with T-bill yield on cash about equal to that of the buy-and-hold strategy (again ignoring transactions fees/trading frictions). For this alternative approach, the average daily return while in (out of) the market on MACD signals is 0.056% (0.019%).

In summary, a broad index trading strategy based solely on MACD crossovers probably has difficulty keeping up with buy-and-hold over long periods, but MACD crossover signals might be useful within more complex strategies.

Frequently Asked Questions

What is the MACD indicator and how do crossover signals work in stock trading?

The Moving Average Convergence/Divergence (MACD) is the difference between an asset's 12-day and 26-day exponential moving average (EMA) prices. A bullish crossover occurs when MACD moves above its 9-day EMA, and a bearish crossover occurs when it moves below. In this test, a trade was triggered only when MACD reached a level 25% above or below its 9-day EMA, to filter out close calls.

Does a MACD crossover strategy beat buy-and-hold on the S&P 500?

A MACD crossover strategy did not beat buy-and-hold on the S&P 500 proxy (SPY) from January 1993 through February 2008. Despite 62 gains and 22 losses across 84 round trips and an average round-trip gain of 1.3%, the strategy underperformed because it was out of stocks 55% of the time and SPY's return while out slightly exceeded the T-bill yield. Results were also sensitive to the start date of the analysis.

How do you backtest a MACD crossover strategy with a signal threshold filter?

The MACD backtest calculates MACD and its 9-day EMA daily, then buys SPY at the close the first time MACD rises at least 25% above its 9-day EMA, and sells at the close the first time it falls at least 25% below. While out of SPY, the portfolio earns the contemporaneous 90-day T-bill yield, and trading fees are ignored. Applied to daily dividend-adjusted SPY closes from 1/29/93 to 2/29/08, this produced 168 transactions (84 round trips), about six round trips per year.

Does a MACD trading strategy do better in bull markets or bear markets compared with buy-and-hold?

The MACD strategies tended to underperform buy-and-hold during bull market phases and outperform it during bear market phases, based on visual inspection of the cumulative return chart. This pattern lends them some appeal on an annual risk-adjusted basis. Daily SPY returns were above normal between MACD buy and sell signals and below normal between sell and buy signals, though volatility was relatively high while in the market.

What are the limitations of using MACD crossovers to trade a broad stock index?

A broad index strategy based solely on MACD crossovers probably has difficulty keeping up with buy-and-hold over long periods, mainly because it spends much of its time out of stocks (55% in this test). Results are sensitive to the start date, and the test ignored trading fees and frictions. Ideas for improvement, such as leverage on buy signals or using MACD on other asset classes, carry their own costs and practical constraints like high volatility and limited capital availability.

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 20, 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 ›