Indicators

MACD Indicator: Crossovers, Histogram and Divergence

Two exponential averages and the gap between them. The arithmetic is simple; the trouble starts when traders act on every crossover a choppy market produces.

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

The whole concept fits in one line. The fast average pulling away from the slow one means momentum is building, and the two converging means momentum is fading.

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.

Don’t skip the zero line. MACD sitting above zero means the 12-period average is above the 26-period one, which is the definition of a short-term uptrend measured against the medium term.

The four readings

  1. Signal line crossover. MACD crosses above its signal line, so short-term momentum has turned up relative to its recent average. It’s the most commonly traded MACD signal and the most over-traded one, because in a choppy market these fire constantly and acting on each of them produces a long string of small losses.
  2. Zero line crossover. MACD crosses above zero, which means the 12 EMA has crossed the 26 EMA. Slower than a signal crossover and more significant, since it marks a change in trend structure.
  3. Histogram turning. The bars stop growing and start shrinking while price is still advancing, which tells you momentum is decelerating, and because this happens before the crossover it is the component worth watching for early warning.
  4. Divergence. Price makes a higher high while MACD makes a lower high, so the new high was reached with less momentum behind it than the last one had.

Why crossovers arrive late

Think about what has to happen first. Price must move far enough to drag a 12 EMA past a 26 EMA, and by the time those two averages have finished crossing, a meaningful chunk of the move is already in the past, banked by whoever was holding the position before the indicator said anything. The signal is real. It’s also old news.

The lag is structural. Shorten the settings for earlier signals and you get more false ones in the same proportion, because the lag is the thing doing the filtering.

So use it as a filter. Take a setup from price structure, then ask MACD whether there’s momentum behind it, which works considerably better than sitting on your hands until a crossover gives you permission to buy.

A sensible way to use it

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

MACD compared to RSI

Two different questions, confused constantly.

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. They’re computed from the same prices, so they’ll often agree for that reason alone, and agreement that comes from shared inputs is worth nothing at all. If you want a second indicator, make it measure something price doesn’t, and volume’s 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 make the MACD line, then plots a 9-period EMA of that line as the signal line. The histogram shows the gap between the two. Gerald Appel developed it 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's lagging confirmation, because both inputs are moving averages of prices that already happened. In choppy markets crossovers fire constantly and most of them 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's fading even while price is still moving. The histogram turns before the crossover does, which is why traders watch it for an earlier warning.

Is MACD a leading or lagging indicator?

Lagging, without question. It's built from exponential moving averages of past prices, so it can't signal before price moves. Anyone calling MACD leading has confused 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 they're still standard. Faster settings give you more signals and more false ones. Slower settings give you fewer and later. Adjusting the settings until past signals look good is curve-fitting, and it rarely survives contact with new data.