MACD
Education library

Indicators5 min read

What Is MACD? Moving Average Convergence Divergence Explained

MACD — Moving Average Convergence Divergence — measures the distance between two exponential moving averages. Because that distance widens when a trend accelerates and narrows when it stalls, MACD captures trend and momentum in a single display.

It is a lagging indicator by construction. Everything it shows has already happened in price. Its value lies in making the shape of a move explicit rather than in predicting the next one.

The three components

The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of the MACD line. The histogram is the difference between the two.

When the MACD line is above zero, the fast average is above the slow one and the trend is up on that timeframe. When it crosses above the signal line, short-term momentum has turned up relative to its own recent average.

  • MACD line: 12 EMA − 26 EMA (trend direction and strength)
  • Signal line: 9 EMA of the MACD line (the trigger)
  • Histogram: MACD − signal (momentum acceleration or decay)
  • Zero line: where the two underlying EMAs are equal

Crossovers and the zero line

The classic signal is a crossover: MACD crossing above the signal line is read as bullish, below as bearish. In a ranging market this produces a stream of losing signals, because the averages whip back and forth around each other.

The zero-line cross is slower and generally more meaningful — it marks the point where the fast and slow averages actually change order, which usually corresponds to a genuine shift in trend rather than a pause.

MACD divergence

As with RSI, divergence is where MACD earns its place. A new price high accompanied by a lower MACD high means the second leg was driven by less momentum than the first.

The histogram often shows this earliest. Shrinking bars while price continues in the same direction means the move is decelerating — useful for trailing a stop or taking partial profit long before any crossover appears.

Where MACD fails

MACD is built from moving averages, so it inherits their weakness: it is bad in ranges and late at turns. In a sideways market it will generate crossover after crossover, each one a small loss.

The usual fix is a regime filter. Only act on MACD signals when a separate measure says the market is trending — ADX above a threshold, price holding one side of a higher-timeframe moving average, or simply a visibly higher-high/higher-low structure.

Frequently asked questions

What do 12, 26 and 9 mean in MACD?

They are the periods of the three moving averages: a 12-period fast EMA, a 26-period slow EMA, and a 9-period EMA of the resulting MACD line used as the signal. The numbers date from a time when markets traded six days a week and are conventional rather than optimal.

Is a MACD crossover a reliable buy signal?

Not on its own. Crossovers are reliable in trending conditions and unreliable in ranges, which is where markets spend most of their time. Most consistent users combine crossovers with a trend filter and a defined level, rather than trading every cross.

What is the MACD histogram telling me?

It shows the gap between the MACD line and the signal line. Growing bars mean momentum is accelerating in the current direction; shrinking bars mean it is fading, which often precedes the crossover itself.

Trade it on a funded account

MixFunded evaluations start from $5. Payouts are processed every Monday in USDT (TRC-20) and published on-chain.