Contents Lesson 12 of 16

4 min read · practitioner

What makes MACD a trend and a momentum indicator at once?

MACD — Moving Average Convergence Divergence, built by Gerald Appel in the late 1970s — is popular because it does two jobs from one calculation. Both jobs are visible the moment you write out the three parts.

The three parts

  • MACD line = EMA(12) − EMA(26) of closing prices
  • Signal line = EMA(9) of the MACD line
  • Histogram = MACD line − signal line

A worked example

Suppose today the 12-day EMA is 102.5 and the 26-day EMA is 101.0.

  • MACD line = 102.5 − 101.0 = +1.50
  • If the 9-day EMA of the MACD line currently stands at +1.20, the histogram is 1.50 − 1.20 = +0.30

What each part is telling you

MACD above zero means the 12-day average is above the 26-day average — an ordinary moving-average relationship, which is a trend statement. That's it; the zero line is a crossover in disguise.

The change in the MACD line is how fast that gap is widening or narrowing — a momentum statement. Hence the hybrid.

Schematic diagram: macd line decelerating

The histogram can turn down while the MACD line is still rising — but not merely because the gap is widening more slowly. Unpack the recursion with the standard 9-period signal (k = 0.2) and the condition comes out exact: the change in the histogram equals 0.8 × (change in MACD) − 0.2 × (yesterday's histogram). So the histogram falls only once the MACD line rises by less than a quarter of the histogram's current height. Slowing is necessary; it is not sufficient. That is why histogram turns arrive "early" relative to line crossings — and equally why they are noisy, since a gap can stop widening and then resume without anything meaningful happening.

The unit trap almost everyone falls into

MACD is measured in price units and is unbounded. Both EMAs scale linearly with price, so the difference between them does too: a $500 stock produces MACD values exactly twenty times those of a $25 stock with identical percentage behaviour — 500 ÷ 25, the ratio of the two price levels and nothing else. Consequences:

  • MACD values are not comparable between instruments.
  • They are not comparable across time for one instrument whose price has changed a lot — a MACD of 2.0 meant something different when the stock was $40 than it does at $200.

Bounded oscillators like RSI don't have this problem. If you want comparability, the percentage price oscillator divides the same difference by the 26-period EMA and reports it as a percentage.

And a redundancy check

A MACD line crossing zero is exactly the 12-day EMA crossing the 26-day EMA. Same event, different pane, second name. If both are on your screen, you're looking at one thing twice — which is the third time this course has caught a "confirmation" being a duplicate. Signal-line crossings are watched widely, they lag by construction, and in rangebound stretches they flip back and forth like every other trend-following construct — in a market shaped like this one:

Schematic diagram: sideways chop

In the data

Here are Apple's three MACD numbers on the two days it crossed zero in February 2026: the MACD line, the signal line, and the histogram.

Live API response: mf apple macd cross feb 2026

Two things to read off it. The line is in dollars, because it is a difference between two averages of price, exactly as the unit trap describes. And the histogram is labelled "divergence" here, as it is on many platforms: that is the MACD line minus its signal line, not the price-versus-indicator divergence discussed elsewhere in this course. Pin the naming collision down before you read anyone else's MACD commentary.

Try it now

  1. On the first schematic above, find the earliest bar where the line rises by less than it did the bar before. That deceleration — not a fall — is what turns the histogram down, and you can locate it with subtraction alone.
  2. Now confirm the duplicate. The table in the section above is Apple's MACD on two consecutive days when it crossed zero; the two below are the 12-day and 26-day EMAs over the same window on the same two days. Confirm the two averages crossed on that same date, and subtract one from the other.
Live API response: mf apple ema12 feb 2026
Live API response: mf apple ema26 feb 2026
  1. Take the second schematic — a sideways stretch — and count how many signal-line crossings you would expect inside it. Then find a genuinely rangebound quarter in the year below and count them for real. The lesson's own chart cannot draw MACD, so open the same instrument in the Terminal and add MACD from the chart's indicators, at its standard 12/26/9 under the price (a free account opens it), find the same quarter, and count every time the MACD line crosses its signal line. Record the number; it is the most useful thing MACD will teach you this week.
Interactive line chart: AAPL.US (1Y)

Open AAPL.US in the EODHD Terminal