Indicators

MACD Indicator: Crossovers, Histogram and Divergence

Two moving averages, their difference, and a signal line. Straightforward arithmetic, widely misused, mostly by traders acting on every crossover.

MACD stands for Moving Average Convergence Divergence, which is an unhelpful name for a simple idea: it measures the gap between a fast moving average and a slow one.

When the fast average pulls away from the slow one, momentum is building. When they converge, momentum is fading. That is the whole concept.

The three components

  • MACD line = 12-period EMA − 26-period EMA. The gap between fast and slow.
  • Signal line = 9-period EMA of the MACD line. A smoothed version of the gap.
  • Histogram = MACD line − signal line. The distance between the two, drawn as bars.

The zero line matters too. MACD above zero means the 12-period average is above the 26-period one, which is the definition of a short-term uptrend relative to the medium term.

The four readings

  1. Signal line crossover. MACD crosses above its signal line, meaning short-term momentum has turned up relative to its recent average. This is the most commonly traded MACD signal and the most over-traded. In a choppy market these occur constantly, and acting on each one produces a string of small losses.
  2. Zero line crossover. MACD crosses above zero, so the 12 EMA has crossed the 26 EMA. Slower and more significant than a signal crossover, because it marks a change in trend structure rather than a change in momentum.
  3. Histogram turning. The bars stop growing and begin to shrink while price is still advancing. Momentum is decelerating. This turns before the crossover, which is why it is the most useful component for early warning.
  4. Divergence. Price makes a higher high while MACD makes a lower high. The new high was reached with less momentum than the last one.

Why crossovers arrive late

By the time a 12 EMA crosses a 26 EMA, price has already moved enough to drag two averages past each other. The signal is real, but a meaningful part of the move has happened.

This is not a flaw to be engineered away. Shortening the settings to get earlier signals gets you more false ones in exactly the same proportion. The lag is doing the filtering work.

The practical consequence is that MACD is a poor entry trigger and a decent filter. Using it to confirm that a setup you found from price structure has momentum behind it is a better use than waiting for a crossover to tell you to buy.

A sensible way to use it

  1. Direction from the zero line. Above zero, only consider longs. Below, only shorts. This one filter removes most countertrend trades.
  2. Timing from price, not from MACD. A pullback to a marked level, with a reversal candle.
  3. Momentum check from the histogram. Expanding in your direction is confirmation; shrinking says the move is tiring.
  4. Divergence as a warning, never as an entry. It can persist for weeks.

MACD compared to RSI

They answer different questions and are frequently confused.

MACD RSI
Measures Gap between two averages Ratio of gains to losses
Scale Unbounded 0 to 100
Family Trend-following Oscillator
Best in Trends Ranges
Main failure Whipsaw in ranges Stays extreme in trends

Running both is less useful than it sounds, because they are computed from the same prices and will frequently agree for that reason alone. If you use two indicators, make one of them measure something price does not. Volume is the obvious candidate.

Read RSI next, then moving averages for the component MACD is built from.

Frequently asked questions

What is the MACD indicator?

Moving Average Convergence Divergence. It subtracts a 26-period exponential moving average from a 12-period one to produce the MACD line, then plots a 9-period EMA of that line as the signal line. The histogram shows the gap between them. It was developed by Gerald Appel in the late 1970s.

What does a MACD crossover mean?

When the MACD line crosses above the signal line, short-term momentum has turned up relative to the recent average. It is a lagging confirmation rather than a prediction, because both inputs are moving averages of prices that have already occurred. In choppy markets crossovers happen constantly and most are noise.

What does the MACD histogram show?

The distance between the MACD line and its signal line. Growing bars mean momentum is accelerating; shrinking bars mean it is fading even if price is still moving. The histogram turns before the crossover, which is why traders watch it for earlier warning.

Is MACD a leading or lagging indicator?

Lagging, unambiguously. It is built from exponential moving averages of past prices, so it cannot signal before price moves. Anyone describing MACD as leading is confusing the histogram turning early relative to the crossover with the indicator turning early relative to price.

What are the best MACD settings?

12, 26 and 9 are the defaults and remain standard. Faster settings produce more signals and more false ones; slower settings produce fewer and later. Adjusting settings until past signals look good is curve-fitting, and it rarely survives contact with new data.