BazaarBaazi

Learn · Technical Analysis

MACD indicator explained: how to use it for Indian stock trading

MACD indicator explained: what MACD, signal line, and histogram mean, how to read MACD crossovers and divergences, and how to apply MACD for Nifty and stock trading in India.

In one line

The MACD indicator consists of the MACD line (12-period EMA minus 26-period EMA), the signal line (9-period EMA of MACD), and the histogram (MACD minus signal line), used to identify momentum direction, trend changes, and potential buy/sell signals through crossovers and divergences.

BazaarBaaziSource & method

How MACD is constructed

MACD is built from three components. The MACD line is the difference between the 12-period Exponential Moving Average (EMA) and the 26-period EMA of closing prices. When the shorter (12-period) EMA is above the longer (26-period) EMA, the MACD line is positive, indicating upward momentum. When the shorter EMA is below the longer EMA, the MACD line is negative.

The Signal line is a 9-period EMA of the MACD line -- a smoothed version of MACD that lags it slightly. The Histogram plots the difference between the MACD line and the Signal line. When the histogram is positive and growing, momentum is accelerating to the upside. When it is negative and the bars are getting larger in magnitude, downward momentum is accelerating. The crossover of MACD and Signal line is the most commonly used trading signal.

MACD crossovers: the primary trading signal

A bullish crossover occurs when the MACD line crosses above the Signal line. Traditional technical analysis treats this as a buy signal: short-term momentum is accelerating relative to the medium-term average. A bearish crossover occurs when MACD crosses below the Signal line -- a potential sell or short signal. These crossovers are the most widely followed MACD signals in both Indian equity markets and global markets.

However, MACD crossovers are lagging signals: by the time the crossover occurs, a portion of the move has already happened. In strongly trending markets (like a Nifty bull run), MACD crossovers can be excellent trade signals. In range-bound or sideways markets, MACD generates many false crossovers -- whipsaws -- that lead to repeated small losses if traded mechanically. Using MACD crossovers in conjunction with a trend filter (for example, only taking bullish crossover signals when the stock is above its 200-day EMA) reduces the frequency of false signals.

MACD divergence: a leading signal

MACD divergence is one of the more powerful signals the indicator can generate. Bullish divergence occurs when the price makes a new low but the MACD makes a higher low -- the price is falling but downward momentum is weakening. This can precede a price reversal. Bearish divergence occurs when the price makes a new high but MACD makes a lower high -- upward momentum is weakening even as price continues to rise.

Divergences are leading signals (unlike crossovers, which are lagging), but they require confirmation. A bearish divergence that is not confirmed by a MACD crossover or a price break of a key support level may resolve by the MACD simply catching up to price without a reversal. In Indian markets, MACD divergences are particularly watched on Nifty 50 daily and weekly charts before major support/resistance levels, as they can signal an impending change of trend with enough advance notice to adjust positions.

FAQ2 reader questions · AEO-eligible

Common questions on what is the macd indicator.

What are the default MACD settings and should they be changed?

The default MACD settings are 12, 26, 9 -- a 12-period EMA for the fast line, a 26-period EMA for the slow line, and a 9-period EMA for the signal line. These settings were developed for daily price data on traditional stock markets and are the most widely used parameters globally. Most charting platforms in India (Tradingview, Kite by Zerodha, Angel One) use these defaults. Changing the parameters is possible: shorter periods (8, 17, 9) make MACD more sensitive and generate more frequent signals with more false positives; longer periods (19, 39, 9) generate fewer signals but catch larger, more reliable moves. For active traders on shorter timeframes (1-hour, 15-minute Nifty charts), some practitioners use shorter parameters. Unless you have a specific tested reason to change, the 12-26-9 default is the best starting point because it is the most widely referenced and therefore has the most market participants looking at the same signal.

Is MACD better than RSI or should both be used?

MACD and RSI measure different aspects of price behaviour and are best used together rather than as substitutes. RSI (Relative Strength Index) is an oscillator that measures the speed and magnitude of price changes, bounded between 0 and 100, with overbought (above 70) and oversold (below 30) zones. MACD is a trend-following momentum indicator with no fixed bounds, best for identifying trend direction and momentum crossovers. Using RSI to identify overbought/oversold extremes and MACD to confirm the direction of momentum on exit from those extremes is a common combination: for example, an RSI reading below 30 (oversold) combined with a MACD bullish crossover is a stronger entry signal than either indicator alone. In Indian markets, this combination is frequently used by swing traders on daily charts for stocks in the Nifty 200 universe.

Keep learning

Adjacent concepts every Indian retail investor should have straight.

All explainersAbout BazaarBaazi →