MACD Indicator Explained: Lines, Histogram, Crossovers and Limits
How MACD is built from moving averages, what the signal line and histogram show, how crossovers and divergence are read, and where the indicator gives false signals.

Key takeaways
- MACD is built from two EMAs.
- The histogram shows momentum strengthening or fading.
- Crossovers lag and whipsaw in ranges.
- Use it with levels, not alone.
What MACD is
MACD stands for Moving Average Convergence Divergence. It is a trend and momentum indicator built from exponential moving averages. It shows how the gap between a faster and a slower average is changing.
The components
- MACD line: the 12-period EMA minus the 26-period EMA of price.
- Signal line: a 9-period EMA of the MACD line.
- Histogram: the MACD line minus the signal line, drawn as bars.
The 12, 26 and 9 settings are conventions; other values are used for different timeframes.
Reading it
When the MACD line is above zero, the faster average is above the slower one, which indicates an uptrend; below zero indicates a downtrend. The histogram grows when momentum is strengthening and shrinks when it is fading, so a shrinking histogram can warn of a slowdown before the lines cross.
Crossovers
A bullish crossover happens when the MACD line crosses above the signal line; a bearish crossover is the reverse. Crossovers are lagging because the indicator is built from averages. In trending markets they can help you stay with a move; in sideways markets they produce frequent false signals and small losses.
Divergence and zero-line crosses
As with RSI, a mismatch between price and MACD highs or lows can hint at fading momentum. Crossing the zero line signals a change in the relationship between the two averages and is often used as a trend filter. Both are context rather than triggers.
Weaknesses and good habits
- It lags: signals come after part of the move has happened.
- It works poorly in tight ranges.
- It tells you about momentum, not about where to place a stop.
- Use it with levels and volume, and test the rule before relying on it.
A worked reading (illustrative)
Suppose a 15-minute NIFTY chart rises through the morning. The MACD line crosses above the signal line near zero, the histogram bars grow for several candles, then begin shrinking while price still makes small new highs. That shrinking histogram is an early hint that the push is losing strength. Later the MACD line crosses back below the signal line as price pulls back. A trader who used the first crossover as a buy signal and the second as an exit would have captured part of the move, but would also have been late on both ends. In a sideways afternoon, the same rule would generate several crossovers with small losses. The lesson is that MACD is best used to confirm a trend that is already visible on the chart and to judge whether momentum is rising or fading.
Practical settings and combinations
The 12, 26, 9 default suits daily charts; on intraday charts many traders use faster settings, while longer-term investors use slower ones. A useful combination is a higher-timeframe filter: only take MACD signals on the 15-minute chart in the direction of the hourly MACD. Another is to pair MACD with a support or resistance level so that a crossover near a level carries more weight than one in empty space; see support and resistance. Avoid stacking MACD with several similar indicators such as the RSI, a moving average and Supertrend; they largely repeat each other. Choose one or two tools, test the exact rule and keep a record of how it performs in different market types.
Try it yourself — free tools
Frequently asked questions
What do the MACD settings 12, 26, 9 mean?
They are the periods of the fast EMA, the slow EMA and the signal-line EMA.
Is MACD better than RSI?
They measure different things: MACD tracks trend and momentum through moving averages, while RSI measures the speed of recent price changes. Many traders use both.
Why does MACD give false signals?
Because it is built from lagging averages, so in sideways markets lines cross repeatedly without a real trend.



