What Is MACD? Meaning, Formula, Signal Line Crossovers & Strategy
Praveen Dubey (SEBI Registered RA)
SP RESEARCHVIA PVT. LTD. (INH000015808)
The Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator created by Gerald Appel that illustrates the relationship between two exponential moving averages of an asset's price. Comprising the MACD line, a 9-day Signal line, and an oscillating histogram, it helps traders identify shifts in momentum, trend direction, and potential entry or exit zones.
Anatomy of the Indicator: MACD Formulas Explained
Unlike pure momentum oscillators bounded between 0 and 100 like the RSI indicator, MACD is an unbounded indicator centered around a Zero baseline. It is constructed from three interrelated calculations:
MACD Line = 12-Period EMA - 26-Period EMA
Signal Line = 9-Period EMA of the MACD Line
MACD Histogram = MACD Line - Signal Line
Exponential Moving Averages (EMAs) give greater weight to recent price data than simple moving averages. The subtraction of the 26-day EMA from the 12-day EMA isolates the rate of price acceleration over the past month relative to the past quarter.
Trading Signals: Signal Line vs Zero Line Crossovers
MACD generates two distinct tiers of technical crossover signals with different risk-reward profiles:
Signal Line Crossover (Early Momentum)
Occurs when the fast MACD line crosses above or below the slower 9-day Signal line:
- Bullish Crossover: MACD line crosses above the Signal line. Histogram flips positive.
- Bearish Crossover: MACD line crosses below the Signal line. Histogram flips negative.
Notice: Signal line crossovers occur frequently and require trend filters to eliminate whipsaws.
Zero Line Crossover (Trend Confirmation)
Occurs when the MACD line crosses the zero centerline:
- Bullish Zero Cross: MACD crosses into positive territory, confirming that the 12 EMA has crossed above the 26 EMA.
- Bearish Zero Cross: MACD crosses into negative territory, confirming that short-term price trend is lower than long-term trend.
Carries higher trend reliability but enters later in the move.
Reading the Histogram: Early Warning of Momentum Decay
The histogram was developed by Thomas Aspray in 1986 to anticipate signal line crossovers before they physically print. Because the histogram measures the mathematical spread between the MACD line and Signal line:
- Expanding Green Bars: The MACD line is accelerating away from its Signal line. The trend is vigorous.
- Contracting Green Bars Toward Zero: The MACD line is converging back toward the Signal line. While prices may still be rising, upward velocity is slowing.
- Expanding Red Bars: Downward velocity is intensifying.
- Contracting Red Bars Toward Zero: Selling pressure is exhausting, signaling an impending upward crossover.
MACD Divergence & Multi-Indicator Confluence
Like all moving-average-derived systems, MACD suffers from false signals during choppy, sideways market consolidations. To build a robust trading strategy:
1. Spotting Structural Divergence
When the Nifty or a stock prints a higher price high but the corresponding MACD histogram peak is visibly lower, bearish divergence is active. It demonstrates that fewer net buyers are participating at the new price high, warning of impending consolidation.
2. Filtering with Supertrend & VWAP
Combine MACD crossovers with the Supertrend indicator strategy and intraday VWAP. Only take bullish MACD crossovers when price is above VWAP and Supertrend is green, immediately filtering out low-probability counter-trend traps.
Frequently Asked Questions: MACD Indicator
What does the MACD indicator measure?
The Moving Average Convergence Divergence (MACD) is a trend-following momentum oscillator that measures the mathematical distance between two exponential moving averages, revealing shifts in trend direction, momentum strength, and potential reversal points.
What are the standard settings for MACD?
The standard default settings developed by Gerald Appel are (12, 26, 9): the fast exponential moving average is 12 periods, the slow EMA is 26 periods, and the signal line is a 9-period EMA of the MACD line.
What is the difference between a signal line crossover and a zero line crossover?
A signal line crossover occurs when the MACD line crosses above or below the 9-day signal line, indicating early momentum acceleration. A zero line crossover occurs when the MACD line crosses zero (meaning the 12 EMA has crossed the 26 EMA), confirming a broad medium-term trend transition.
What does the MACD histogram represent?
The MACD histogram represents the numerical difference between the MACD line and the 9-day signal line. Expanding positive bars indicate accelerating bullish momentum, while contracting bars toward zero signal momentum deceleration.
How does MACD divergence work?
Bullish divergence occurs when asset prices form lower lows while the MACD histogram forms higher lows, signaling that downward selling pressure is drying up. Bearish divergence occurs when prices make higher highs while MACD makes lower highs, indicating upward momentum exhaustion.
Written by Praveen Dubey
Chief Research Analyst | SEBI Reg: INH000015808
Statutory Warning & Risk Disclaimer: Investment in securities market is subject to market risks. Read all related documents carefully before investing. Registration granted by SEBI and certification from NISM in no way guarantee performance of the intermediary or provide any assurance of returns to investors. Content provided on this blog is for informational and educational purposes only.

