MACD
A trend-following momentum indicator that tracks the relationship between two exponential moving averages to reveal shifts in direction and strength.
Definition
MACD (Moving Average Convergence Divergence) is a momentum indicator created by Gerald Appel that plots the difference between a 12-period and a 26-period Exponential Moving Average (EMA) of closing price. A 9-period EMA of the MACD line — called the signal line — is overlaid on top. The difference between the MACD line and the signal line is drawn as a histogram. MACD is simultaneously a trend indicator (whether the gap between the two EMAs is widening or narrowing) and a momentum indicator (how fast price is moving).
Why it matters
MACD is one of the most widely used indicators among Indian positional and swing traders because it combines trend and momentum in a single display. When Nifty or a large-cap stock enters a sustained rally, the MACD histogram will typically expand for several sessions before contracting, giving traders a visual cue that momentum is fading even before price turns. On NSE, MACD crossovers on the weekly timeframe are treated as significant signals for option buyers planning multi-week trades. MACD divergence — where price makes a new high but the MACD histogram fails to — is a popular warning sign used in conjunction with open interest data to anticipate reversals. Intraday traders on Bank Nifty futures commonly watch MACD on the 15-minute chart around market open to gauge whether the opening gap has momentum behind it.
Formula
MACD Line = EMA(12) − EMA(26)
Signal Line = EMA(9) of MACD Line
Histogram = MACD Line − Signal Line
All EMAs use closing prices. The standard parameters (12, 26, 9) were designed for daily charts, but traders apply the same logic to any timeframe. A positive MACD line means the faster EMA is above the slower EMA — bullish momentum. A negative MACD line indicates the opposite.
Example
Suppose a Nifty 50 constituent stock is trading on NSE with a 12-day EMA of ₹1,420 and a 26-day EMA of ₹1,400. The MACD line = 1,420 − 1,400 = +20. If the 9-day EMA of the MACD line (the signal line) stands at +14, the histogram reads +6 (20 − 14). A positive and expanding histogram tells the trader upward momentum is strengthening. Now suppose the next week the MACD line drops to +10 while the signal line remains at +14 — the histogram is now −4, a bearish crossover. A swing trader might interpret this as a cue to tighten a stop or reduce a long position. This is a hypothetical illustration only.
Combine MACD with live OI data
Momentum signals are sharper when paired with open interest buildup analysis on TradePulse.