Technical Indicators
IntermediateLesson 37 of 70 · 8 min read

MACD: trend and momentum in one panel

MACD tracks the gap between a fast and a slow EMA; learn its three parts, the signals traders read from it, and its lag.

Prefer bite-sized cards? Use Step by step above to study this lesson one idea at a time, with a quiz at the end.

MACD (said 'mac-dee') stands for Moving Average Convergence Divergence. The name sounds complicated, but the idea is simple: it measures the distance between a fast moving average and a slow one. When the two averages move apart (diverge), momentum is building. When they come together (converge), momentum is fading.

228.00229.00230.00231.00229.84MACD 12,26,9MACDSignal10:2110:3810:5511:1211:2911:4612:0312:2012:37
12:40O 229.93H 229.93L 229.82C 229.84
Price with the MACD panel: the MACD line, the signal line and the histogram bars around the zero line.

The three parts

MACD line
12 EMA − 26 EMA. Is the short-term trend above or below the longer one, by how much
Signal line
9-period EMA of the MACD line. A smoothed version to compare against
Histogram
MACD line − signal line. Is momentum speeding up or slowing down

The standard settings are written 12, 26, 9. There is also a zero line. When the MACD line is above zero, the 12 EMA is above the 26 EMA, which means the shorter-term trend is up.

Example · MACD in numbers
ACME's 12 EMA is $50.80 and its 26 EMA is $50.20. MACD line = 50.80 − 50.20 = +0.60. The signal line (the 9 EMA of recent MACD values) is at 0.45. Histogram = 0.60 − 0.45 = +0.15. All three say the same thing: the short-term trend is above the longer one, and the gap is still widening.
$50.80
12 EMA
−
$50.20
26 EMA
=
+0.60
MACD line
Histogram = 0.60 − 0.45 (signal line) = +0.15. Above zero and the gap is still widening.

The signals traders read

Signal-line crossover
MACD above the signal line: bullish. Below: bearish. The histogram flips sign
Zero-line crossover
12 EMA has crossed above the 26 EMA. Slower, more conservative trend signal
Histogram shrinking
Positive bars getting shorter: momentum fading. The earliest clue MACD gives
Divergence
Price makes a higher high, MACD a lower high: momentum is not confirming
Key idea
MACD is built from moving averages of moving averages. That makes it smooth and easy to read, and it also makes it lagging. By the time a crossover appears, a good part of the move has usually already happened.
Why MACD lags
1Price
212 and 26 EMAsAverages of price
3MACD lineThe gap between those averages
4Signal lineAn average of the MACD line: smooth, and late

Where it helps and where it hurts

In a clean trend, MACD helps you stay with the move: as long as the line is above the signal line and above zero, the trend is intact. In a sideways market, the two lines hover around zero and cross back and forth. Each crossover is a signal, and most of them fail. This is the same whipsaw problem that moving averages have, because MACD is made of moving averages.

Clean trend
  • Helps you stay with the move
  • Line above the signal line and above zero: trend intact
Sideways market
  • Lines hover around zero and cross back and forth
  • Most crossover signals fail
  • The same whipsaw problem as moving averages
Watch out
MACD values are in price units, not a fixed 0 to 100 scale. A reading of 0.60 on a $50 stock and 0.60 on a $5 stock mean very different things, so you cannot compare MACD levels between stocks or say a particular number is 'overbought'.
The same MACD reading, two stocks
0.60
on a $50 stock: 1.2% of the price
0.60
on a $5 stock: 12% of the price
Tip
MACD and RSI both measure momentum from the same closing prices. You rarely need both. Try each in the simulator, keep the one you find easier to read, and remove the other.

Key takeaways

  • The MACD line is the 12 EMA minus the 26 EMA; the signal line is a 9 EMA of the MACD line; the histogram is the gap between them.
  • Above zero means the short-term average is above the longer-term one.
  • Crossovers, a shrinking histogram and divergence are the main signals.
  • MACD lags and whipsaws in sideways markets, so it is best used to confirm a trend rather than to predict turns.
Try the indicators in the simulator

Check your understanding

Score 70% or more to pass the lesson. You can retry as often as you like.

1. The 12 EMA is $20.50 and the 26 EMA is $20.10. What is the MACD line?
2. What does the MACD histogram show?
3. Why does MACD give many false signals in a sideways market?