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
| Index | After buy signal (%) | After sell signal (%) | Buy–sell difference (pp) | Significant difference? |
|---|---|---|---|---|
| Milan Comit General | 0.367% | 0.307% | 0.060 | No |
| S&P/TSX Composite | 0.254% | 0.243% | 0.011 | No |
| DAX 30 | −0.201% | 0.743% | −0.944 | Yes, negative at 5% |
| Dow Jones Industrials | −0.006% | 0.436% | −0.442 | No |
| Nikkei 225 | 0.078% | −0.088% | 0.166 | No |
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?

Return and risk over the full window
| Measure | Buy and hold | MACD long or cash |
|---|---|---|
| Ending value of $10,000 | $35,693 | $16,638 |
| Annualized growth (CAGR) | 13.79% | 5.31% |
| Largest decline from a prior peak | 19.35% | 17.90% |
| Close-to-close intervals invested | 100% | 50.7% |
| Orders, including first entry | 1 | 201 |
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.
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
- Direct MACD research: Chong, Ng, and Liew (2014), Revisiting the Performance of MACD and RSI Oscillators, rules 1–2 and Tables 2A–2B.
- Platform definitions: TradingView MACD documentation and MetaTrader 5 MACD documentation.
- Broader technical-rule context: Bajgrowicz and Scaillet (2012), Technical Trading Revisited; Han, Yang, and Zhou, A New Anomaly: The Cross-Sectional Profitability of Technical Analysis. Neither is a direct test of this SPY MACD rule.
- SPY model data: Fixed-version CSV, 2,515 observations. Full method and assumptions are documented here. Results are rounded; calculated balances do not imply cent-level accuracy for real trades.
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.
