MACD: how to read the MACD line, signal line and histogram
The MACD turns two moving averages into a momentum indicator. It tells you whether a trend is accelerating or running out of steam.
Where the MACD comes from
Created by Gerald Appel in the late 1970s, the Moving Average Convergence Divergence measures the gap between a fast and a slow exponential moving average (EMA). When the fast average pulls away from the slow one, momentum is building; when they converge, it is fading.
The three components
MACD line = EMA(12) − EMA(26)
Signal line = EMA(9) of the MACD line
Histogram = MACD line − signal line
The standard settings are 12, 26 and 9. The histogram is the most visual part: bars that grow mean the gap between the MACD and its signal is widening, bars that shrink mean momentum is slowing — often before the lines actually cross.
Reading crossovers
A MACD line crossing above its signal line is read as improving momentum; crossing below, as deteriorating momentum. The zero line adds context: a bullish crossover below zero happens while the fast average is still under the slow one, which is a weaker configuration than the same crossover above zero.
In a range-bound market, crossovers multiply and contradict each other. The MACD is a trend tool: it works best when there is a trend to measure.
Divergences and lag
As with the RSI, a divergence between price and MACD signals weakening momentum. Keep in mind that the MACD is built from moving averages, so it lags the price. A crossover confirms a movement that has already started; it does not anticipate it.
The MACD is also expressed in price units, so its values cannot be compared between two assets with very different prices.
The MACD in InvestAI
InvestAI shows the MACD value and classifies it as a bullish, neutral or bearish reading, with the reasoning in plain words. Periods follow the reading horizon you choose. The MACD is part of the “Trend following” preset, alongside moving averages, ADX and SuperTrend.
FAQ
What do MACD 12, 26, 9 mean?
12 and 26 are the periods of the fast and slow exponential moving averages; 9 is the period of the signal line, an EMA of the MACD itself.
Is the MACD a leading indicator?
No. It is built from moving averages and therefore follows the price. The histogram reacts a little earlier than the crossovers.
Other guides
Moving averages
SMA vs EMA, the 20/50/200 averages, golden and death crosses, and how to use them as dynamic support.
Divergences
Divergences between price and indicators: regular, hidden, and how often they fail.
RSI
The Relative Strength Index: formula, the 70/30 levels, divergences and the traps of “overbought”.
Ichimoku
The Ichimoku Cloud: Tenkan, Kijun, Senkou spans and Chikou, and how to read them together.
Glossary
Technical analysis and risk terms explained simply: from ATR to volume.