MACD: trend and momentum together
MACD turns two moving averages into a momentum gauge, showing the direction of the trend and whether it is gaining or losing strength.
The moving average convergence divergence indicator, created by Gerald Appel, measures the gap between a fast and a slow exponential moving average. When the gap widens, momentum is building; when it narrows, momentum is fading.
The three parts
| Part | Calculation | What it shows |
|---|---|---|
| MACD line | 12-period EMA minus 26-period EMA | Direction and strength of momentum |
| Signal line | 9-period EMA of the MACD line | A smoothed trigger line |
| Histogram | MACD line minus signal line | Whether momentum is speeding up or slowing down |
Signal-line crossovers
When the MACD line crosses above the signal line, short-term momentum has turned up; a cross below means it has turned down. These crossovers come early, but they produce many false signals in sideways markets.
Zero-line crossovers
When the MACD line crosses above zero, the 12-period EMA has moved above the 26-period EMA, so by this measure the trend has turned up. Zero-line crosses are slower than signal-line crosses but more meaningful.
The histogram
The histogram plots the distance between the MACD and signal lines. Bars that shrink while price is still rising show that the advance is slowing, often before the crossover itself. Many traders find the histogram the most useful part of the indicator.
Divergence
As with RSI, a divergence between price and MACD warns of fading momentum: a higher high in price with a lower high in MACD is bearish divergence. Because MACD has no fixed upper or lower limit, compare its peaks with each other rather than with set levels.
Where MACD fails
MACD is built from moving averages, so it lags, and in choppy ranges it whipsaws constantly. It works best as confirmation of trend and momentum on daily or weekly charts, combined with price structure: for example, taking a breakout only when MACD is above zero and rising.
MACD values depend on price. MACD is measured in rupees, so a ₹5,000 stock shows much larger values than a ₹200 stock. Never compare MACD readings across different stocks.
Key takeaways
- The MACD line is the 12-period EMA minus the 26-period EMA; the signal line is its 9-period EMA.
- Signal-line crosses are early but noisy; zero-line crosses are slower but more meaningful.
- A shrinking histogram warns that momentum is fading.
- MACD divergence, like RSI divergence, is a warning that needs price confirmation.
- MACD lags and whipsaws in ranges; use it with price structure.
Check your understanding
Choose an answer to see the explanation. Your score is saved in this browser.
1. What is the MACD line?
MACD measures the gap between a fast and a slow exponential average.
2. The histogram bars are shrinking while price is still rising. What does that suggest?
A narrowing gap between the MACD and signal lines means upward momentum is slowing.
3. Why should you not compare MACD readings across different stocks?
A ₹5,000 stock naturally has larger EMA gaps in rupees than a ₹200 stock.
Finish the quiz or mark this lesson complete to track your progress.