Home / Learn / The MACD Indicator Explained
Technical Analysis

The MACD Indicator
Explained

MACD distils the relationship between two moving averages into a single momentum picture — crossovers, histogram bars and divergences that tell you whether a trend is strengthening or running out of steam. Here is everything you need to use it correctly on NIFTY.

Share

What is MACD?

MACD stands for Moving Average Convergence Divergence. Created by Gerald Appel in the late 1970s, it tracks the relationship between a fast exponential moving average and a slow one, turning that relationship into a momentum signal that oscillates above and below a zero line.

The indicator has three components plotted in a sub-panel below the price chart:

  • MACD line — the 12-period EMA minus the 26-period EMA. When the fast EMA is above the slow EMA, the MACD line is positive; when below, it is negative.
  • Signal line — a 9-period EMA of the MACD line. It smooths the MACD line and generates crossover signals.
  • Histogram — the difference between the MACD line and the signal line, plotted as bars. It visualises momentum: growing bars mean momentum is building; shrinking bars mean it is fading.
0 — MACD line - - Signal line ▮ Histogram

Signal line crossovers

The most common MACD signal is the signal line crossover:

  • Bullish crossover: the MACD line crosses above the signal line. It signals that the 12-period EMA is pulling away from the 26-period EMA at an accelerating pace — short-term momentum is turning positive.
  • Bearish crossover: the MACD line crosses below the signal line. Momentum is turning negative. This is often a cue to consider exits from long positions or entries into bearish strategies.

Crossovers below the zero line (where both the MACD and signal are negative) are generally considered weaker bullish signals. The highest-conviction bullish crossovers happen when the lines cross above the zero line, confirming that the trend itself has turned positive, not merely that momentum has stabilised.

Reading the histogram

The histogram is often the most instructive part of MACD because it shows change in momentum before a crossover is confirmed:

  • Expanding positive histogram (bars growing above zero) → trend is strengthening; stay with long positions.
  • Contracting positive histogram (bars shrinking from a peak but still above zero) → momentum is fading; a crossover may be approaching. Consider tightening stops.
  • Expanding negative histogram → downtrend is strengthening.
  • Contracting negative histogram → selling momentum is fading; potential reversal ahead.

The zero-line crossover: the stronger signal

While signal-line crossovers are popular, zero-line crossovers are more reliable though slower. When the MACD line crosses from negative to positive, the 12-period EMA has crossed above the 26-period EMA — equivalent to a bullish moving average crossover. When MACD crosses from positive to negative, the regime has flipped bearish. For positional traders holding multi-week NIFTY positions, zero-line crossovers on the daily chart are a better filter than the more frequent signal-line crossovers.

MACD divergence

Like RSI, MACD also generates divergence signals when price and the indicator disagree about direction:

  • Bullish MACD divergence: price makes a lower low, but the MACD histogram makes a higher low (smaller negative bars on the second low). This shows that selling pressure is waning even as price continues to fall — a setup for a potential reversal.
  • Bearish MACD divergence: price makes a higher high, but the MACD histogram makes a lower high. Buying pressure is not supporting the new high — a warning of exhaustion.

Divergence on the daily MACD histogram is one of the cleaner signals available to positional NIFTY traders and is often visible several sessions before a trend actually reverses.

A worked NIFTY example

Hypothetical scenario: NIFTY has risen from 21,500 to 23,200 over six weeks. On the daily chart you notice:

  • NIFTY makes a new high at 23,200 in week six.
  • The MACD histogram peak in week four was taller than the histogram peak in week six — a bearish divergence.
  • The MACD line has not yet crossed below the signal line, but the histogram is contracting.
  • The RSI is also showing bearish divergence at the same highs.

A cautious trader might use this dual-indicator divergence (MACD + RSI) to begin reducing long exposure or to start looking at buying a NIFTY 23,000 PE as a hedge (lot size 75). A conservative target for the put position: return to the 50-day EMA near 22,500, which would generate approximately 500 points on the put (₹37,500 per lot) against an initial premium outlay of, say, ₹8,000–10,000 depending on implied volatility at the time.

Common mistakes to avoid

  • Trading every signal-line crossover. In a choppy market, the MACD generates crossovers every few days. Use the zero line and trend direction to filter: only take bullish crossovers when MACD is above zero and the daily chart is in an uptrend.
  • Ignoring the histogram in favour of the crossover. By the time the lines cross, the momentum shift has often already occurred. Watching the histogram lets you anticipate crossovers rather than react to them.
  • Using MACD without a trend filter. MACD is a trend-following tool. Using it as a standalone reversal indicator — shorting on a bearish crossover in a strong uptrend — will produce frequent losing trades.
  • Changing the standard (12,26,9) settings without reason. The default settings are the most widely used. Signals at these settings are self-fulfilling because many participants are watching them simultaneously. Exotic settings produce idiosyncratic signals with no market-wide significance.

Frequently asked questions

What do the three MACD numbers (12, 26, 9) mean?

The fast EMA period (12), the slow EMA period (26), and the signal line period (9). The MACD line is 12-EMA minus 26-EMA. The signal line is a 9-period EMA of the MACD line. The histogram is the difference between them. These are the original Appel settings and remain the industry standard.

How is MACD different from RSI?

RSI is a bounded oscillator (0–100) measuring the speed of price moves relative to recent history — useful for overbought/oversold identification. MACD is an unbounded momentum indicator tracking the relationship between two moving averages — better for trend direction and momentum shifts. They are complementary, not redundant.

Is MACD useful for intraday NIFTY trading?

Yes, with adaptation. On 5-minute charts the standard (12,26,9) setting lags noticeably. Many intraday NIFTY traders use the 15-minute MACD for directional bias and the 5-minute chart for entries. A faster setting like (5,13,6) is also used but with a higher false-signal rate. Always combine with price action.

What is a MACD zero-line crossover?

A zero-line crossover occurs when the MACD line moves from negative to positive (bullish — the 12-EMA has crossed above the 26-EMA) or from positive to negative (bearish). Zero-line crossovers are slower but more reliable than signal-line crossovers, and are favoured by positional traders over multi-week holds.

Apply MACD insights with live data

Combine MACD signals with TradePulse's live NIFTY option chain and open interest data to confirm momentum shifts before committing capital.

Keep learning