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.
- 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.
- 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
- Signal (9-bar average of MACD)
- Histogram: MACD above signal
- Histogram: MACD below signal
MACD turned up faster than its own average. Short-term momentum has shifted up.
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.
- 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.
- 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.
- 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
Above or below zero?
Fast average over the slow one, or under it. The slow read of the trend.
Above or below the signal?
Which way MACD itself is turning. The fast read.
Growing or shrinking?
Bright histogram bars: speeding up. Faded bars: slowing down.
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.
- 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.
Indicators · the series
Next in indicators
- 1 · MomentumRSIRecent up moves against down moves, from 0 to 100.
- 2 · MomentumStochasticsWhere the close sits in the recent high-low range.
- 3 · MomentumCCIHow far price has moved from its average, in typical-size steps.
- 4 · Momentum · you are hereMACDTwo moving averages, the gap between them, and whether it is growing.
- 5 · TrendMoving averagesSMA and EMA, price against the average, crosses and stacks.Read next →
- 6 · TrendADX and DIHow strong a trend is, and which side is pushing it.
- 7 · TrendSupertrendA trailing line that flips sides when price closes through it.
- 8 · TrendIchimokuThe cloud, its two edges and the lines inside it.
- 9 · VolatilityATRHow far price typically moves in one bar.
- 10 · VolatilityThe squeezeBollinger Bands inside Keltner Channels: quiet before a move.
- 11 · VolatilityDonchian channelThe highest high and lowest low of the last 20 bars.
- 12 · VolumeVolume and OBVHow much traded, against its average, and running volume.
- 13 · VolumeVWAPThe day’s average traded price, weighted by volume, with bands.
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.