Most technical indicators do one job. Moving averages tell you trend direction. RSI tells you momentum. MACD does both in a single panel — which is why it has been one of the three most-used indicators globally (alongside moving averages and RSI) for nearly 50 years.
Developed by Gerald Appel in the late 1970s, MACD (Moving Average Convergence Divergence) measures the relationship between two exponential moving averages. The result captures both the direction of the trend and how strongly that trend is accelerating or decelerating.
This guide explains what MACD is, the three components (MACD line, signal line, histogram), how to read crossover signals, zero-line signals, divergences, and how to combine MACD with other indicators for confirmation.
What Is MACD?
The MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that compares two exponential moving averages of price. The standard calculation:
MACD line = 12-period EMA − 26-period EMA
Signal line = 9-period EMA of the MACD line
Histogram = MACD line − Signal line (plotted as vertical bars)
These are the default 12, 26, 9 settings used globally. The math captures the gap between fast and slow EMAs — when the fast EMA is above the slow EMA, MACD is positive (trend up). When the fast EMA is below the slow EMA, MACD is negative (trend down).
What MACD Tells You at a Glance:
Three pieces of information in one panel: (1) Trend direction — MACD above zero means uptrend, below zero means downtrend. (2) Momentum strength — distance between MACD and signal lines shows how strongly trend is accelerating. (3) Momentum changes — crossovers and histogram changes signal momentum shifts. No other single indicator gives you all three.
The Three Main MACD Signals
1. Signal Line Crossover
The most common MACD signal. When the MACD line crosses above the signal line, it's a bullish crossover (buy signal). When it crosses below the signal line, it's a bearish crossover (sell signal).
Bullish crossover above zero line: Strong confirmation of an existing uptrend
Bullish crossover below zero line: Early reversal from a downtrend — riskier but earlier
Bearish crossover below zero line: Strong confirmation of an existing downtrend
Bearish crossover above zero line: Early sign that uptrend may be losing steam
2. Zero-Line Crossover
When the MACD line itself crosses above or below the zero line. Slower than signal line crossovers but more meaningful as a trend regime indicator.
The histogram visualises the gap between MACD and signal lines. Growing bars (taller positive or deeper negative) mean momentum is accelerating. Shrinking bars mean momentum is fading even if the trend is still intact.
Like RSI, MACD divergence is when price and the indicator move in opposite directions — signalling that momentum is fading even as price continues in the trend direction.
Bullish MACD Divergence
Price makes a lower low
MACD makes a higher low
Interpretation: The decline is losing steam — bottom likely near
Bearish MACD Divergence
Price makes a higher high
MACD makes a lower high
Interpretation: The rally is losing steam — top likely near
Major tops and bottoms on Nifty have repeatedly been preceded by MACD divergences on weekly charts. The signal works on daily charts too, but is most reliable on weekly for major turning points.
Why MACD Divergence Works:
Price reflects what is happening now. MACD reflects the rate of change — second-derivative information. When momentum starts fading even before price reverses, the divergence appears. It is the closest thing to a leading indicator in a field dominated by lagging tools.
MACD Strengths and Weaknesses
Strengths
Weaknesses
Captures trend direction and momentum in one indicator
Lagging — based on moving averages
Works on any timeframe
Generates many false signals in sideways markets
Divergence is a powerful leading signal
Crossovers happen frequently in choppy ranges
Universal default settings (12, 26, 9)
Less useful on low-liquidity small caps
MACD is at its best when the market is trending. In sideways ranges, the signal line and MACD line cross repeatedly, producing whipsaw losses. Combine MACD with a trend filter (e.g. only take longs when price is above the 200-DMA, only take shorts when price is below) to avoid this trap.
Combining MACD With Other Tools
MACD signals are strongest when confirmed by other tools:
MACD + 200-DMA filter: Only take bullish crossovers when price is above the rising 200-DMA
MACD + support/resistance: A bullish crossover at a major support level is far more reliable than one in mid-range
MACD + volume: Crossover with above-average volume confirms institutional conviction
MACD + candlestick pattern: Bullish crossover with a bullish engulfing or hammer candle = double confirmation
Common MACD Mistakes
Trading every crossover: In sideways markets, you'll get whipsawed. Filter with trend direction first.
Ignoring zero-line context: A bullish crossover above zero (in an uptrend) is much stronger than one below zero (counter-trend).
Mixing timeframes: MACD crossover on a 1-hour chart means nothing for a positional trader; use weekly MACD for positional decisions.
Tweaking settings constantly: Stick to 12, 26, 9. Custom settings rarely improve performance and remove the universal recognisability.
Standalone trading: MACD alone has poor edge. Combine with trend, support/resistance, and volume.
MACD in Indian F&O:
Many algo systems sold to retail F&O traders are based on MACD crossovers. Most of these systems lose money over time because they generate frequent signals in sideways markets without trend filtering. If you use MACD-based signals, always combine with a trend filter — a longer-term moving average or trend direction confirmation from the higher timeframe.
Next Step — Learn Bollinger Bands
MACD captures trend and momentum. Bollinger Bands capture volatility — the third critical dimension. Together these three indicators (with RSI) cover the most important aspects of any chart.
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator developed by Gerald Appel in the late 1970s. It is calculated by subtracting the 26-period EMA from the 12-period EMA. The result is the MACD line. A 9-period EMA of the MACD line is plotted on top as the signal line, and the difference between the two is shown as a histogram. MACD captures both trend direction and momentum changes in a single indicator.
The classic MACD buy signal is when the MACD line crosses above the signal line — known as a bullish crossover. When this happens above the zero line, it confirms a strong uptrend; when it happens below zero, it signals an early reversal from a downtrend. Some traders also use the zero-line crossover (MACD crossing above 0) as a separate, slower trend confirmation. The most powerful buy signal combines a bullish crossover with bullish divergence (price making lower lows while MACD makes higher lows).
The MACD histogram plots the difference between the MACD line and the signal line as vertical bars. When the MACD is above the signal line, bars are positive (above zero). When MACD is below the signal line, bars are negative (below zero). The histogram is useful because it visually shows momentum acceleration: rising bars mean momentum is increasing; shrinking bars mean momentum is fading even if the trend is still intact. Histogram divergence (price making new highs but histogram bars getting smaller) often precedes a trend reversal.
The standard MACD settings — used globally and built into every charting platform — are 12, 26, 9. That is: 12-period fast EMA, 26-period slow EMA, and 9-period EMA of the MACD line for the signal line. These settings were designed by Gerald Appel based on roughly 2.5 weeks fast and 5 weeks slow periods. Most professional traders stick with the defaults because they are universally recognised. Shorter settings (5, 13, 5) give faster but noisier signals; longer settings (19, 39, 9) give smoother but slower signals.
Both are momentum indicators but they measure different things. RSI is a pure momentum oscillator bounded between 0-100, showing how strong recent gains are relative to recent losses. MACD is a trend-following momentum indicator that combines two moving averages and is unbounded. RSI is better for spotting overbought/oversold extremes. MACD is better for identifying trend changes and confirming the strength of an existing trend. Many traders use both together — RSI for entry timing, MACD for trend confirmation.
MACD divergence is when the price and the MACD line move in opposite directions, signalling weakening momentum. Bearish divergence: price makes a higher high but MACD makes a lower high — the uptrend is losing steam. Bullish divergence: price makes a lower low but MACD makes a higher low — the downtrend is losing steam. Divergence is the highest-conviction MACD signal because it captures momentum changes before they show up in price. Many major tops and bottoms on Nifty have been preceded by clear MACD divergences.
📖 New to finance terms? Our glossary covers 150+ Indian finance terms — plain English, no jargon.