Notes Before the Bell

MACD indicator explained

The MACD (Moving Average Convergence Divergence) is a momentum indicator built from two exponential moving averages. Developed by Gerald Appel, it uses 12/26/9 settings by default and shows a MACD line, a signal line and a histogram.

Updated 2026-12-04 · By the Notes Before the Bell team

MACD is one of the most popular indicators on any chart platform, usually shown in a panel under the price with two lines and a set of bars. It looks complicated at first, but it is just a comparison of two moving averages. Here is what each part means, how traders read it, and how a plain MACD crossover rule held up in our own test.

What is MACD?

Gerald Appel developed MACD in the late 1970s. The name describes what it does: it shows when two moving averages converge (come together) or diverge (move apart), which is a way to see momentum building or fading.

It has three parts:

  • MACD line: the 12-period exponential moving average minus the 26-period exponential moving average.
  • Signal line: a 9-period exponential moving average of the MACD line.
  • Histogram: the MACD line minus the signal line, drawn as bars around a zero line.

MACD line = EMA(12) − EMA(26)  |  Signal = EMA(9) of MACD line  |  Histogram = MACD line − Signal

If you need a refresher on how exponential averages differ from simple ones, see our guide to moving averages.

MACD settings: why 12, 26, 9?

The 12/26/9 settings are the default almost everywhere, which is part of why they matter: so many traders use them that they are effectively a shared reference. Shorter settings, for example 5/13/6, react faster and produce more signals and more noise. Longer settings react slower. There is no proven "best" set, and optimizing settings on past data tends to produce results that do not carry forward. Pick the default and learn how it behaves.

How to read MACD

Zero line

When the MACD line is above zero, the 12-period average is above the 26-period, which means short-term momentum is stronger than longer-term momentum. Below zero is the opposite. Many traders use the zero line as a simple trend filter.

Signal line crossovers

A bullish crossover is when the MACD line crosses above the signal line; a bearish crossover is when it crosses below. This is the signal most people mean by a "MACD strategy." It is also lagging by construction, because it needs two moving averages to turn first.

MACD histogram

The histogram makes crossovers visible earlier. When bars shrink toward zero, the gap between MACD and the signal line is closing, so momentum is fading even before an actual cross. When they grow, momentum is accelerating. A histogram that peaks and turns down while price still rises is a mild early warning.

Chart with price, 20 and 50-day moving averages and a momentum panel below

Price with moving averages and a momentum panel. The MACD panel is read the same way. Illustrative chart, not market data.

MACD divergence

A bearish divergence occurs when price makes a higher high while MACD makes a lower high, suggesting each push higher has less momentum behind it. A bullish divergence is the mirror image at lows. Divergence can precede reversals, but it can also persist for a long time while price keeps trending. Treat it as a reason to be careful, and wait for price to confirm at a key level, as covered in support and resistance. The RSI can show the same kind of divergence from a different angle.

Get tomorrow's levels in your inbox

Plus the free 23-page Pre-Market Playbook. Every weekday before the bell.

MACD crossover strategy: our test

We tested a 12/26/9 MACD crossover on SPY, the S&P 500 ETF, from January 1993 to November 2026. The rule was in the market after a bullish crossover and in cash after a bearish one. Signals were taken at the close and executed at the next open, trading costs were charged on every trade, and cash earned the 3-month T-bill rate.

RuleReturn/yrWorst dropTime investedTradesWin rate
Buy and hold10.6%−55.2%100%——
MACD crossover 12/26/95.0%−24.9%50%35943%
  • MACD earned 5.0% a year against 10.6% for buy and hold, while being invested half the time.
  • It cut the worst drop to −24.9%, but it traded 359 times and won only 43% of them.
  • With costs doubled, the return fell to 4.3% a year.
  • The key test: against 1,000 random-timing versions with the same exposure, it ranked at the 28th percentile overall (35th in 1993–2009 and 41st in 2009–2026). In plain terms, a coin flip deciding when to be invested would have done as well or better most of the time.

That is the result for one indicator, on one index, with one set of rules. It does not mean MACD is useless as a way to describe momentum. It means that mechanically trading its crossovers on SPY gave no measurable timing edge in our data. See our broader study, does technical analysis work?, for how ten popular rules compared.

MACD in different market conditions

MACD works best when a market is trending, because the two averages separate and stay separated. In a range, the averages keep tangling, and crossovers arrive just after price has already turned back. This is why a mechanical crossover rule looks good in a handful of charts picked in hindsight and mediocre across 30 years of data. One practical check is to look at how often MACD has crossed over recently: many crossovers in a short window usually means the market is choppy and the signals are noise.

Timeframe matters as well. A daily MACD crossover reflects weeks of price action, while a 5-minute crossover reflects a few hours and is far noisier. Use the same timeframe you trade, and do not mix signals from different timeframes without a reason.

How traders use MACD more sensibly

  • As a momentum read, not a trigger. Is momentum building or fading into a level?
  • With trend and levels. A bullish crossover at support in an uptrend carries more context than one floating in a range.
  • With risk defined. Whatever the signal, decide the exit first. Our risk-reward calculator helps check whether a setup is worth taking.

MACD tends to whipsaw in sideways markets, producing crossover after crossover with small losses. If you see it flipping back and forth around zero, the market is probably not trending and the indicator has little to say.

Educational content only. Not financial advice.

Frequently asked questions

What do the MACD settings 12, 26, 9 mean?

The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of the MACD line. Those are the defaults on nearly every platform.

What does the MACD histogram show?

The histogram is the MACD line minus the signal line, drawn as bars. Bars growing taller mean momentum is accelerating; bars shrinking mean it is fading.

How does a MACD crossover work?

A bullish crossover happens when the MACD line crosses above the signal line; a bearish one when it crosses below. Both are lagging signals that come after price has already moved.

Is MACD a leading or lagging indicator?

Lagging. It is built from moving averages of past prices, so it confirms momentum rather than predicting it.

Does the MACD crossover strategy work?

In our SPY test from 1993 to 2026, a 12/26/9 crossover returned 5.0% a year versus 10.6% for buy and hold and did no better than random timing. Past results do not predict the future.