MACD
MACD (Moving Average Convergence Divergence) is a momentum and trend indicator built from two moving averages. This article explains its three parts — the MACD line (the gap between a fast and slow EMA), the signal line, and the histogram — and how they are read: the zero line, signal-line crossovers, and MACD divergence. Because it is built from moving averages, MACD inherits their lag, so it is framed throughout as a descriptive lens on momentum, not a forecasting signal.
Written by James Lipyeat · Founder, Ironclad Research
Reviewed 23 July 2026 · Editorial policy
Before this, read
Introduction
You now know two lenses on a market: moving averages, which describe trend, and RSI, which describes the force of recent moves. MACD — Moving Average Convergence Divergence — sits between them. It is built entirely from moving averages, yet it is read like a momentum oscillator, capturing not just the trend but the way momentum is building or fading.
MACD looks more complicated than it is, because it has three moving parts on the chart. But every one of them comes from a single, simple idea: watch the gap between a fast and a slow moving average. Get that idea and the rest falls into place.
The Core Idea: A Gap Between Two Averages
Picture a fast moving average (reacts quickly) and a slow one (reacts slowly) on the same price. When price accelerates upward, the fast average pulls away from the slow one — they diverge. When the move tires, the fast average drifts back toward the slow one — they converge. MACD simply turns that gap into a line.
The MACD line is the difference between a fast and a slow exponential moving average of price — classically the 12-period EMA minus the 26-period EMA.
When the MACD line is positive, the fast average is above the slow one (upward momentum). When negative, the fast is below the slow (downward momentum). When it is rising, momentum is building; when falling, fading. That single line already tells you a lot — and the name now makes sense: it tracks the convergence and divergence of two moving averages.
The Three Parts
MACD is usually drawn with three elements in a panel below price.
- The MACD line — the 12-minus-26 gap described above.
- The signal line — a moving average of the MACD line (commonly a 9-period EMA). It is a smoothed, slower version of the MACD line, used as a reference to read turns.
- The histogram — bars showing the distance between the MACD line and the signal line. The bars grow as the two lines pull apart and shrink as they close together, giving an at-a-glance read on whether momentum is accelerating or decelerating.
How MACD Is Read
Three events draw the most attention — and each is a description, not a directive.
1. The zero-line cross. When the MACD line crosses above zero, the fast EMA has moved above the slow EMA — consistent with a shift to upward momentum. Crossing below zero is the reverse. This is the broadest, slowest read.
2. The signal-line crossover. When the MACD line crosses above its signal line, short-term momentum is turning up relative to its recent average; crossing below is the reverse. These crossovers happen more often than zero-line crosses and are the most-watched MACD event — which also makes them the most prone to whipsaw.
3. Divergence. Exactly as with RSI, MACD can diverge from price: price makes a higher high while the MACD line makes a lower high (bearish), or price makes a lower low while MACD makes a higher low (bullish). It is the same "momentum disagreeing with price" idea, read through the gap between the averages.
Built From Averages — So It Lags
Here is the crucial caveat, and it follows directly from how MACD is constructed. Because MACD is built entirely from moving averages, it inherits all of their lag. It is, if anything, a step further from raw price than a single moving average — a smoothed measure of smoothed measures. It cannot lead price; it follows.
The practical effects are familiar from the moving-averages article:
- In trending markets, MACD is at its best — the crossovers and histogram track momentum cleanly.
- In sideways, choppy markets, the MACD and signal lines tangle around zero and produce a stream of crossovers that lead nowhere. This whipsaw is not a malfunction; it is what a lagging trend tool does in a trendless market.
The histogram is the partial answer many analysts reach for: because it measures the gap closing or widening, it often turns before the lines actually cross, giving an earlier read on fading momentum. But "earlier" still means lagging — just less so.
A Worked Example
A share has been drifting sideways, MACD hovering around zero with the lines crossing back and forth — pure whipsaw, and a fair description would be "no momentum to speak of; the indicator is just noise here." Then price begins to trend up. The MACD line lifts off zero and crosses above its signal line; the histogram flips positive and its bars grow, period after period — momentum building. An analyst describes this as "momentum turning up and accelerating, consistent with the new uptrend."
Later, price grinds to a fresh high but the histogram bars shrink and the MACD line makes a lower high — bearish divergence. The honest read: "the advance continues but momentum is decelerating — a sign to watch for a change in structure," not a prediction that price will drop. As always, MACD flags the fading of force; the structural tools (Reversals) are what would confirm an actual turn.
The Honest Limits
- MACD lags — doubly so. Built from averages of averages, it follows price and arrives after a move is underway. It is a momentum description, not a leading signal.
- Crossovers whipsaw in ranges. In sideways markets the lines tangle around zero, generating crosses that mean nothing. MACD is a trend-and-momentum tool; it needs a trend to be useful.
- Every MACD event is context, not a command. Zero-line crosses, signal crosses, divergence — all describe momentum that has already shifted. They are weighed alongside structure and trend, never acted on alone.
MACD completes the momentum pair: RSI bounds the force of a single market on a 0–100 scale; MACD reads momentum turning through the gap between two averages. The next indicators move on from pure momentum — starting with VWAP, which blends price with volume to describe the average price participants actually paid.
Finished this lesson? Track your progress.
Frequently asked questions
What are the three parts of MACD and what does each one show?
MACD has three components: the MACD line (the difference between a 12-period and 26-period EMA, showing whether fast or slow momentum is stronger), the signal line (a 9-period EMA of the MACD line used as a reference for reading turns), and the histogram (bars showing the distance between the MACD line and signal line, which grow when momentum accelerates and shrink when it decelerates).
How does MACD measure momentum between two moving averages?
MACD measures the gap between a fast (12-period) and slow (26-period) exponential moving average. When the fast average is above the slow one, the MACD line is positive and indicates upward momentum; when below, it is negative and indicates downward momentum. A rising MACD line means momentum is building, and a falling one means momentum is fading.
What does it mean when MACD crosses above or below zero?
A zero-line cross occurs when the MACD line crosses above zero (the fast EMA has moved above the slow EMA, indicating a shift to upward momentum) or below zero (the reverse). This is the broadest and slowest type of MACD reading.
Why does MACD lag behind price movements?
MACD is built entirely from moving averages (smoothed measures of averages), making it a lagging indicator that follows price rather than leads it. Because it is constructed from averages of averages, it lags even more than a single moving average would, so it cannot anticipate price moves.
When is MACD most useful and when does it produce false signals?
MACD works best in trending markets where crossovers and histogram changes clearly track momentum. In sideways, choppy markets, the MACD and signal lines tangle around zero producing whipsaw crossovers that lead nowhere—this is not a malfunction but the expected behavior of a lagging trend tool in a trendless environment.
Key terms
Next lesson
Continue learning
VWAP
Related topics
Ironclad Research provides educational content only. Nothing on this platform is financial advice, a recommendation, or an offer to buy or sell any security. Always do your own research and consider professional advice before making financial decisions.