Chartshala
Level 2: Patterns and indicators · Lesson 12 of 23

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.

4 min read3-question quizUpdated 30 November 2026Charts use simulated prices

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

PartCalculationWhat it shows
MACD line12-period EMA minus 26-period EMADirection and strength of momentum
Signal line9-period EMA of the MACD lineA smoothed trigger line
HistogramMACD line minus signal lineWhether momentum is speeding up or slowing down
MACD through a downtrend and a reversalThe MACD line stays below zero in the decline, crosses above its signal line near the low and later crosses above zero as the uptrend develops.1,2001,2501,300Signal-line crossZero-line cross0MACD (12, 26, 9)MACDSignal
In the decline, the MACD line (blue) stays below zero. Near the low it crosses above its signal line (amber); later it crosses above zero as the new uptrend develops.

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?

2. The histogram bars are shrinking while price is still rising. What does that suggest?

3. Why should you not compare MACD readings across different stocks?

Finish the quiz or mark this lesson complete to track your progress.