MACD chart on a laptop beside a notebook, with the title Does MACD Work?

Does MACD Work? What the 12/26/9 Evidence Shows

START HERE

Define what a MACD signal changes in the trade before relying on it. Its settings, execution timing, costs, and evaluation period belong in the rule.

Originally Published: · Last Updated:

Full answer, conditions, and evidence dates

Does MACD work? It can describe changes in momentum, but the common 12/26/9 signal-line crossover is not enough reason to buy or sell. A direct five-market study did not find a consistent positive edge for that rule. In our test of SPDR S&P 500 ETF Trust (SPY), the MACD strategy also finished with less money than buy-and-hold before costs.

All sections and evidence

You own an index fund, MACD crosses below its signal line, and the chart seems to say “sell.” The useful question is whether acting on that signal improves your investment result. The crossover is easy to spot. Whether acting on it helps is a separate question.

The SPY test uses one daily 12/26/9 rule: hold the fund while MACD is above its EMA signal line, and hold cash otherwise. Zero-line crossings, divergence trades, and intraday signals need their own tests.

What to Do With the Next MACD Signal

If you are holding an index fund for a long-term plan, a crossover alone is not a good reason to change that plan. You can watch momentum without letting every crossover decide how much you invest. A written investment policy statement helps make that boundary explicit.

If MACD is meant to trigger trades, define the action before testing it. “Buy when MACD crosses up” leaves unanswered what you buy, when you execute, how much you hold, and what makes you exit. For this article’s model, the answer is daily SPY data, an EMA signal line, next-close execution, and either 100% SPY or 100% cash.

Then compare the rule with the decision you would otherwise make. Include cash returns and trading frictions, use data the rule was not tuned on, and report weak periods alongside strong ones. If small parameter changes reverse the result, the rule may be fragile. If you choose the best setting after comparing several, test that choice on new data before calling it an edge.

Broader research adds context, not a verdict on this rule. Bajgrowicz and Scaillet studied 7,846 technical rules and found historical winners hard to select in advance, with costs eroding performance. Their broad study should not be read as a direct backtest of this MACD rule.

Han, Yang, and Zhou found favorable results for a different moving-average timing strategy applied to volatility-sorted portfolios. That positive finding reinforces the need to specify both the rule and the assets. It does not validate 12/26/9 or imply that choosing a few volatile stocks recreates their study.

Why a Convincing Crossover Can Disappoint

Moving average convergence divergence (MACD) subtracts a slower moving average from a faster one, then smooths that difference into a signal line. A bullish signal-line crossover means the MACD line has moved above its signal line; it does not mean the investment is cheap or that the next price move must be up.

In a sideways market, a brief rise can trigger a buy and a brief fall can trigger a sell. The price may finish near where it started while repeated entries and exits leave you with losses and costs. Fidelity describes this back-and-forth crossing as whipsaw during trading ranges.

The opposite problem appears during a sustained advance. Moving to cash may avoid some declines, but it can also miss gains before the rule sends you back into the market. Which effect wins depends on the trading rule and period. The later SPY comparison measures that tradeoff; it does not prove what will happen next time.

Indicator behavior: Fidelity’s MACD guide explains signal crossings and range-market whipsaw.

On daily bars, 12/26/9 sets the lengths of the fast average, slow average, and signal average, respectively. Those numbers alone do not specify the entire calculation. TradingView lets you choose the moving-average types; MetaTrader 5 documents a 9-period simple moving average (SMA) signal line. The paper and our test below use an exponential moving average (EMA) signal line. Matching the three numbers alone does not guarantee matching signals.

Before comparing charts, match the price input, bar interval, average types, and trading session. TradingView settings for investors covers the chart setup; SMA versus EMA crossover testing explains why smoothing choices matter.

Does MACD Work? Evidence Across Five Markets

Chong, Ng, and Liew tested daily MACD rules on five developed-market indices using January 1976 through December 2002 data. For the 12/26/9 EMA signal-line crossover, the difference between returns after buy and sell signals was not significant in four markets. Germany’s DAX had a significant negative difference.

12/26/9 EMA signal-line crossings: average 10-trading-day log returns

IndexAfter buy signal (%)After sell signal (%)Buy–sell difference (pp)Significant difference?
Milan Comit General0.367%0.307%0.060No
S&P/TSX Composite0.254%0.243%0.011No
DAX 30−0.201%0.743%−0.944Yes, negative at 5%
Dow Jones Industrials−0.006%0.436%−0.442No
Nikkei 2250.078%−0.088%0.166No
Source: Chong, Ng, and Liew (2014), Table 2B. Buy–sell differences are in percentage points (pp). Returns are ln(P[t+10]/P[t]); subsequent signals within the next 10 trading days are ignored. A positive return after a sell signal means the index rose, not that selling earned that return. The table describes price moves after signals. It does not report a trading account’s annual return or win rate.

A nonsignificant difference does not prove that the rule has no effect. These four markets did not show a statistically significant positive difference in this sample. Germany’s negative result does not prove that trading the opposite signals would make money after costs.

The paper also found positive results for a different rule. Its zero-line crossover, MACD(12,26,0), had positive buy–sell differences significant at 5% in Canada and 10% in Italy. That is a different rule. It is a reason to distinguish MACD strategies, rather than declaring the entire indicator useful or useless.

Direct research: “Revisiting the Performance of MACD and RSI Oscillators”, Tables 2A–2B. Author manuscript (PDF). The historical findings do not establish a current trading edge.

Does MACD Work on SPY After Trading Costs?

We compared buying and holding SPY with moving between the fund and cash under the daily EMA signal-line rule. The model observes a completed close, trades at the next trading day’s close, and earns returns only after that execution. For example, a signal confirmed Monday executes Tuesday at the close; the new position first earns Tuesday-to-Wednesday returns.

The calculation uses a fixed public SPY dataset. We could not establish how its closing prices were adjusted for dividends, so these figures are not verified total returns. We have not added dividend payments separately. The comparison therefore cannot fully reconstruct what an investor would have earned.

What happened to $10,000 in the SPY comparison?

Daily portfolio values from February 23, 2010 to December 30, 2019. After assumed order costs, $10,000 ended at $35,693 for buy and hold and $16,638 for MACD long or cash. Price-adjustment history is unverified.
Read the chart at a larger size

Scroll horizontally to read the full chart, including its labels. Keyboard users can focus the chart and use the arrow keys.

Enlarged original chart: daily portfolio values for buy-and-hold and the MACD long-or-cash rule, February 2010 to December 2019.
February 23, 2010–December 30, 2019. Daily values from the supplied SPY closes, with 5 basis points (0.05%) charged on every order. Cash earns 0%. The price-adjustment history is unverified; this is not a certified total-return chart. The table below gives the main results in text.

Return and risk over the full window

MeasureBuy and holdMACD long or cash
Ending value of $10,000$35,693$16,638
Annualized growth (CAGR)13.79%5.31%
Largest decline from a prior peak19.35%17.90%
Close-to-close intervals invested100%50.7%
Orders, including first entry1201
Both portfolios begin with cash and pay the same initial-entry cost. Final values use the last close without forced liquidation. No contributions, taxes, or cash interest are included. Drawdown measures the largest fall in daily portfolio value from its previous peak.

In the full window, MACD compounded at 6.39% before costs and 5.31% with 5bps costs. At 10bps per order it compounded at 4.24%. The gap from buy-and-hold was already large before fees, so eliminating commissions alone would not have resolved it.

MACD spent roughly half the measured intervals in cash. Its largest drawdown was only modestly smaller than buy-and-hold’s, while its ending balance was less than half as large. That tradeoff matters more than the appearance of any one crossover.

Because MACD spent about half the measured intervals in cash, this is not a comparison at equal stock exposure. A simple portfolio with a similar investment level would help assess whether the timing rule added value. The subperiod results below check whether the shortfall was confined to one part of the decade. They are not an independent test on new data.

For that follow-up, freeze the benchmark before looking at its result. Use the same dates, a documented dividend-return series, consistent cash interest and the same cost convention. A 50.7% average invested fraction does not uniquely specify a constant-weight benchmark, so do not infer an uncomputed benchmark return from it.

Did the result depend on one part of the decade?

MACD lagged buy-and-hold in both separately started windows. These are sensitivity checks within the same dataset, rather than untouched out-of-sample tests.

Measurement datesBuy-and-hold CAGRMACD CAGR
Feb. 23, 2010–Dec. 31, 201416.19%7.45%
Jan. 2, 2015–Dec. 30, 201911.53%3.27%
Each window starts separately with $10,000 and pays 5bps per order. Earlier prices seed the indicator. The return between the two windows is excluded, so these are separate tests rather than two segments of one continuous account.

Method at a glance: prior-close MACD decisions, orders at the following close, a $10,000 starting amount, 5 basis points per order and zero cash interest. The full calculation assumptions below specify indicator initialization, wealth accounting and annualization.

The dataset also includes dividend entries, but their presence does not establish how the close column was adjusted. Until that provenance is resolved, adding dividends could double-count them. A stronger follow-up would use a documented return series, an interest-bearing cash benchmark, and a later period chosen before seeing results.

For the wider test-design issues, see how to build a technical-analysis backtest. The same distinction between a visible signal and a trading result matters in golden-cross testing and candlestick-pattern win rates.

MACD FAQ

Is a bullish signal-line crossover the same as crossing above zero?

No. A bullish crossover means MACD moves above its signal line, and it can happen below zero. Crossing zero means the fast average has moved above the slow average. The direct study tested these as separate rules.

Why do two platforms show different 12/26/9 signals?

The lengths may match while the average types, input prices, sessions, or initialization differ. MetaTrader 5 documents an SMA signal line, while this article uses EMA. TradingView allows you to select the signal-line average type.

What is MACD’s win rate?

An indicator has no single win rate because entries, exits, holding periods, and assets change the result. You must also define what counts as a winning trade. The paper’s average 10-day returns and our portfolio CAGR are not win rates.

Your turn

Would the next MACD crossover change a trade, or only your view of momentum? Write down that choice before the signal arrives.

Sources, Method & Evidence

How the calculation handles prices, orders, and costs

The dataset contains 2,515 observations from January 4, 2010 through December 30, 2019. Performance begins February 23, 2010, retaining the prior article’s measurement start. Earlier observations seed the moving averages; they are not included in portfolio returns.

The price EMAs start from the dataset’s first close; the signal EMA starts from the first valid MACD value. Each then follows EMA[t] = αP[t] + (1−α)EMA[t−1], with α = 2/(n+1). Fast and slow averages require 12 and 26 observations; the signal requires nine valid MACD observations. The rule targets 100% SPY when MACD exceeds its signal line and 100% cash otherwise, including equality.

At each execution close, yesterday’s decision sets the new holding. The price return ending at that close belongs to the old holding. Wealth grows by 1 + holding × price return, then is multiplied by 1 − cost for each order. Initial entries count as orders.

CAGR equals (ending wealth/starting wealth)^(365.25/elapsed calendar days) − 1. Maximum drawdown uses the daily wealth path and includes starting capital as a peak. Cash earns 0%; taxes are omitted. The cost assumptions are sensitivities, not measured spreads or slippage.

Disclosure: Educational research, not individualized investment advice. Historical results depend on data and trading assumptions and do not predict future returns. Trading costs are modeled, taxes and cash interest are omitted, and the supplied price series is not certified as total return.

Update history

  • : Reordered the contents list to match the article and moved the existing mobile and desktop chart PNGs from inline data URLs to image files. Chart pixels, figures, rules and analysis are unchanged.
  • : Specified how to evaluate a missing exposure benchmark without fabricating its result.
  • Revision Research and method correctionAdded the portfolio-value chart and risk comparison, clarified EMA initialization, aligned the publication date with WordPress, and edited the article for clarity.
  • Prior revision Historical recordThe prior article recorded an evidence review and SPY comparison. Its original text and reproduced figures are retained with the revision files.
  • Original PublicationPublication date aligned with this post’s WordPress record.