MACD explained: line, signal and histogram
Three numbers from two moving averages. What each part of the MACD actually tells you about momentum — and where it lets you down.
MACD — Moving Average Convergence Divergence — sounds more complicated than it is. It's built entirely from moving averages, and once you see how the three pieces fit together, it becomes one of the more readable momentum tools available.
How it's built
MACD has three components, derived in order:
- MACD line = the 12-period EMA minus the 26-period EMA. When the fast (12) average is above the slow (26) average, the line is positive; when it's below, the line is negative. It measures the gap between short- and medium-term trend.
- Signal line = a 9-period EMA of the MACD line itself. It's a smoothed, slower version of the MACD line, used as a trigger.
- Histogram = the MACD line minus the signal line, drawn as bars. It visualises the distance between the two lines — how fast they're converging or diverging.
That's the whole indicator: two EMAs, their difference, a smoothing of that difference, and the gap between them.
The three things MACD tells you
1. Crossovers
When the MACD line crosses above the signal line, short-term momentum is turning up relative to the trend — a bullish crossover. When it crosses below, momentum is turning down. On the histogram, these crossovers are the moments the bars cross the zero line from one side to the other.
2. The zero line
Whether MACD is above or below zero tells you which side of the trend you're on. MACD above zero means the 12-EMA is above the 26-EMA — the medium-term trend is up. A bullish crossover that happens above the zero line, in an uptrend, is far more reliable than one that happens deep below zero in a downtrend.
3. The histogram as momentum
The histogram peaks and shrinks before crossovers happen. When bars are growing, momentum is accelerating; when they start shrinking — even while still positive — momentum is decelerating. Watching the histogram lose height is often an earlier read than waiting for the lines themselves to cross.
Divergence works here too
As with RSI, the highest-value MACD signal is divergence: price making a new high while the MACD histogram makes a lower high warns that the move is running on fading momentum.
Where MACD lets you down
MACD is a lagging indicator — it's made of moving averages, which by definition look backward. In choppy, sideways markets it produces a stream of false crossovers, whipsawing you in and out. This is exactly why it should never be used alone. MACD earns its keep when the stock is already trending — which is why pairing it with a trend or stage filter matters so much.
How StockLearn uses MACD
StockLearn reads the MACD histogram as a momentum confirmation rather than a standalone trigger. A positive, expanding histogram in a Stage 2 stock supports a bullish verdict; a histogram rolling over while price is still rising is treated as a caution. Because the scanner already knows the stock's stage and weekly trend, it can ignore the noisy MACD crossovers that fool single-indicator systems.
Key takeaways
- MACD is just two EMAs (12, 26), a 9-EMA signal line, and the gap between them.
- Crossovers signal momentum shifts; the zero line tells you the trend direction.
- The histogram shows momentum accelerating or fading — often earlier than the lines.
- It's a lagging tool — unreliable in sideways markets, best used with a trend filter.
- Histogram divergence from price is an early warning a move is tiring.
See these signals on real stocks
StockLearn runs this read on ~2,000 NSE stocks every evening. Nifty 50 is free, no login.
Browse today's scan →This guide is educational and explains how StockLearn interprets common technical indicators. It is not investment advice or a recommendation to buy or sell any security.