MACD, explained

MACD (moving average convergence divergence) tracks the gap between a fast and a slow moving average. When the gap grows, the move is speeding up. When it shrinks, the move is slowing down.

IN ONE LINEThe MACD line is the gap. The signal line is its average. The histogram is the distance between those two.

6 short lessons · about 4 minutes

Price on top, MACD 12·26·9 below · 5-minuteIllustration
  • MACD line
  • Signal line
  • Histogram, building
  • Histogram, fading

Lesson 1 · The gap

The MACD line is the gap between two moving averages

Take a fast exponential moving average (12 bars) and a slow one (26 bars). Subtract the slow from the fast. That number, plotted bar by bar, is the MACD line.

The averages on price, the gap belowIllustration
Fast average · 12
Follows price closely. It turns first.
Slow average · 26
Follows price loosely. It turns later.
MACD line
Fast minus slow. Rising: the fast one is pulling away. Falling: they're closing in.

KEYMACD is built only from price averages, so it always moves after price does.

Lesson 2 · Signal and histogram

The signal line smooths MACD. The histogram shows the space between them.

The signal line is a 9-bar average of the MACD line, so it trails behind. The histogram is MACD minus signal: bars above zero while MACD is over its signal line, below zero while it's under.

MACD crossing its signal lineIllustration
  • MACD
  • Signal (9-bar average of MACD)
  • Histogram: MACD above signal
  • Histogram: MACD below signal
Cross above the signal

MACD turned up faster than its own average. Short-term momentum has shifted up.

Cross below the signal

MACD turned down faster than its average. Short-term momentum has shifted down.

KEYThe histogram flips color on the same bar that MACD crosses its signal line. They are two views of one event.

Lesson 3 · The zero line

MACD crosses zero when the two averages cross on price

MACD is zero when the fast and slow averages are equal. So MACD above zero means the fast average is above the slow one, and below zero means it's below. Many traders use the zero line as a simple read of the trend.

Same bar, both panesIllustration
Above zero
Fast average over slow. Price has been rising on balance.
Below zero
Fast average under slow. Price has been falling on balance.
Slower than the signal cross
A zero cross comes later than a signal cross, and flips less often.

KEYSignal-line crosses are the fast read. Zero-line crosses are the slow read.

Lesson 4 · Building or fading

Shrinking histogram bars show a move losing speed

The histogram is drawn in two shades. Bright bars are growing: the move is speeding up. Faded bars are shrinking: price may still be going the same way, but more slowly.

Price still rising, momentum fadingIllustration
  • Above zero, growing
  • Above zero, shrinking
  • Below zero, growing
  • Below zero, shrinking

KEYFading bars come before a cross. They show the move slowing, not that it has ended.

Lesson 5 · When it lags

In a sideways market, MACD crosses back and forth

MACD works best when price is moving. In a tight range the averages sit on top of each other, so the lines cross again and again, each time a little after price has already turned.

A range: one cross after anotherIllustration
Small bars, many flips
Tiny histogram bars on both sides of zero are a sign of a range.
Always late
Each cross comes after price turned, because both lines are averages.
Check the range first
Many traders look at the price pane first and give MACD crosses less weight in a range.

KEYMACD describes moves that are already happening. In a range there is no move to describe.

Lesson 6 · What to look for

Four questions to ask the MACD pane

  1. Above or below zero?

    Fast average over the slow one, or under it. The slow read of the trend.

  2. Above or below the signal?

    Which way MACD itself is turning. The fast read.

  3. Growing or shrinking?

    Bright histogram bars: speeding up. Faded bars: slowing down.

  4. Moving or ranging?

    Lots of small crosses near zero usually means a range.

The settings

12, 26 and 9 are the standard. Smaller numbers react faster and cross more often; bigger ones are smoother and later.

Divergence works here too

A new price high on a lower MACD high is divergence, read the same way as on RSI.

Not a 0 to 100 scale

MACD is in price points, so its numbers depend on the market and timeframe. Compare it with itself, not with a fixed level.

THE RECAP
  • MACD is the gap between a 12-bar and a 26-bar moving average.
  • The signal line is a 9-bar average of MACD. The histogram is the space between them.
  • Above zero: fast average over slow. Below zero: under it.
  • Faded histogram bars mean the move is slowing. Many small crosses mean a range.
Education only · Not financial advice

Charts on this page are illustrations drawn for teaching. Prices are made-up sample data; MACD, the signal line and the histogram are the standard formulas run on them. Not real market data and not any product's output. Education only, not financial advice.