MACD — Moving Average Convergence Divergence — is the gap between two exponential moving averages, usually the 12-period and the 26-period, drawn as a line with a 9-period signal line and a histogram of the difference between the two. It measures whether a trend's momentum is expanding or fading. It says nothing about value.
Almost every mistake made with MACD comes from treating a momentum reading as a timing instruction. The indicator is genuinely good at one job — telling you whether the move currently on the chart is gaining strength or running out of it — and genuinely bad at the job most people give it, which is deciding when to press the button.
The three parts, and what each one is for
MACD is not one line. It is three separate readings stacked in the same pane, and confusing them is the source of most bad MACD trades.
- The MACD line is the 12-period EMA minus the 26-period EMA. It is a distance. When it is above zero, the short average is above the long one and the trend is up on those two horizons.
- The signal line is a 9-period EMA of the MACD line — an average of an average. Its only job is to give the MACD line something to cross.
- The histogram is the MACD line minus the signal line, drawn as bars. It shows the gap between the two, and its bars shrink before they cross.
Gerald Appel introduced the indicator in the late 1970s, and the 12, 26, 9 combination is his. Those numbers date from a period when a trading month was roughly 21 sessions and a fortnight roughly ten, so 12 and 26 were rough stand-ins for two weeks and one month. Nothing about them is optimal. They are simply the settings enough people share that MACD readings mean the same thing to different traders — which is worth more than a marginally better parameter would be.
What MACD is really measuring
Think of the 26-period EMA as where price has been and the 12-period EMA as where price is going. MACD measures how far apart they are. That distance is a direct measure of the speed of the trend, not its direction.
This produces the single most useful reading on the indicator, and one most traders never take: a rising price with a falling MACD line means price is still going up but going up more slowly than it was. The trend is intact and decelerating. That is a completely different market state from a rising price with a rising MACD line, and it demands a different decision — protect what you have rather than add to it.
Why crossovers arrive late
The MACD line is built from two lagging averages. The signal line then smooths that result a third time. By the time the two cross, price has already turned, moved, and given up part of the move. This is not a flaw to be tuned away — it is arithmetic, and it is the price of the smoothing that makes the indicator readable in the first place.
The consequence is severe in sideways markets. When price is ranging, the 12 and 26 EMAs sit almost on top of each other, the MACD line hovers near zero, and it crosses the signal line every few candles. Each cross looks like a signal and none of them lead anywhere. That is the same failure mode that destroys naive moving average crossover systems, for the same reason: an indicator built to follow a trend has nothing to follow when there is no trend.
Zero line versus signal line: two different questions
These get treated as interchangeable and they are not remotely equivalent.
| Event | What it means | How often it happens |
|---|---|---|
| MACD crosses zero | The 12 EMA has crossed the 26 EMA — the trend itself has changed on those horizons | Rarely; a genuine regime event |
| MACD crosses signal | Momentum has turned relative to its own recent average | Constantly; mostly noise in a range |
| Histogram peaks and turns down | Momentum is still positive but decelerating | Often; useful for managing an open position |
Rank them by how much they should change your behaviour. A zero-line cross is worth marking on the chart. A histogram turn is worth using to tighten risk on something you already hold. A signal-line cross, taken alone, is worth very little.
The histogram is the part worth watching
The histogram is the derivative of the derivative — the rate of change of momentum. When its bars are growing, the move is accelerating. When the bars start shrinking while price still makes new highs, the move is being carried by fewer and less forceful pushes.
That shrinking is the earliest signal MACD produces, because the histogram has to shrink to zero before the lines can cross. It is also the least reliable if you trade it directly: a trend can produce several rounds of shrinking bars and reassert itself each time. Use it the way you would use a fuel gauge — as a reason to plan, not a reason to swerve. In practice that means moving a stop up behind a printed target rather than closing a working position because the bars got smaller.
MACD divergence, and where it overlaps with RSI
MACD divergence — price making a higher high while MACD makes a lower one — is the same observation as RSI divergence, computed a different way, and it carries the same warning: the observation is real, the timing is poor. Because MACD is slower than RSI, its divergences form later and are correspondingly less frequent, which some traders read as higher quality. There is no evidence for that. Both indicators tell you the second push was weaker. Neither tells you it was the last one.
What the research actually found
MACD has been tested more than most indicators, and the honest summary is that the results are market-dependent and sensitive to how costs are treated. The most-cited direct test of the rule covers six decades of the London Stock Exchange: Chong and Ng examined MACD and RSI trading rules against the FT30 Index and reported that both rules generated returns higher than a buy-and-hold strategy in most of the cases they tested (Chong & Ng, "Technical analysis and the London stock exchange: testing the MACD and RSI rules using the FT30", Applied Economics Letters 15(14), 2008, pp. 1111–1114).
Read that carefully before you get excited. "In most cases" is not "reliably". A rule that beat buy-and-hold on a British index over sixty years is not a promise about a five-minute chart on a US index next Tuesday, and later work applying the same rules to other markets found the profitable parameter set changed from market to market — which is the signature of a result that partly reflects the search rather than the market. The defensible conclusion is that MACD carries some real information about trend momentum, and that the information is not large enough to trade mechanically without a risk framework around it.
Frequently Asked Questions
What does MACD actually measure?
MACD measures the distance between two exponential moving averages, usually the 12-period and the 26-period. When the faster average pulls away from the slower one, the MACD line rises and momentum is expanding. When the two averages converge, the line falls and momentum is fading. It is a measure of the rate of change of a trend, not of price level or value.
Is a MACD crossover a buy signal?
A crossover is confirmation that momentum has already turned, not a prediction that it is about to. MACD is built from two lagging averages and then smoothed a third time by the signal line, so the cross prints after the turn in price. It is useful for telling you which side of the market currently has the momentum. It is a poor entry trigger on its own, especially in a sideways market where the two lines cross repeatedly with no follow-through.
What is the difference between the MACD line crossing zero and crossing the signal line?
They answer different questions. The MACD line crossing zero means the 12-period average has crossed the 26-period average, which is a change in the direction of the trend itself. The MACD line crossing the signal line means momentum has turned relative to its own recent average, which happens far more often and is a much weaker event. Zero-line crosses are rarer and more meaningful; signal-line crosses are frequent and noisy.
What MACD settings should I use?
The 12, 26, 9 default published by Gerald Appel is the standard and there is no evidence that a different combination is universally better. Shorter inputs react faster and produce more false crosses; longer inputs are steadier and later. Pick one for a reason you can state and leave it alone, because cycling through settings until one fits the last month of chart is curve fitting, not research.
Bottom line
MACD answers one question well: is the move on the chart right now gaining strength or losing it? Read the histogram for that answer, treat zero-line crosses as regime information, and stop treating signal-line crosses as entries. The trade itself should still be decided by a price level with a written invalidation, with the indicator only describing how the market arrived there. For the framework those levels sit inside, read technical analysis basics; for the other half of confirmation, read what volume actually confirms; and if you want to see how a structured callout is built, our FAQ lays out what goes into one.
