Market data · delayed NIFTY 50 Loading SENSEX Loading BANK NIFTY Loading USD/INR Loading
GALE.IN INDIAN EQUITY RESEARCH

Home Guides

MACD: Moving Average Convergence Divergence, Explained

Published 12 min read Guides · Technical Analysis

Moving average convergence divergence — MACD to everyone who uses it — is what you get when you take two of the most-watched trend lines on a price chart and plot the distance between them. That one sentence is the whole indicator. The 12-day exponential moving average chases price closely; the 26-day version follows at a distance; the MACD indicator measures the gap between the two. Everything else on the panel — the signal line, the histogram, the crossovers people trade off — is bookkeeping on that gap.

This is the MACD chapter of Gale’s technical analysis guide. It builds the moving average convergence divergence indicator piece by piece, explains what its two kinds of crossover actually describe, and is direct about the two things most write-ups underplay: the lag baked into every line on the panel, and the hindsight problem with divergence.

What the MACD indicator plots

The raw material is the exponential moving average, which the moving averages chapter covers in full. The short recap: an EMA is an average of recent closes that weights the newest ones most heavily, so it turns faster than a simple average of the same length. If close, session or average are themselves unfamiliar words, the stock market terminology glossary defines them.

Gerald Appel assembled MACD from these parts in the late 1970s. The MACD line is one subtraction: the 12-period EMA minus the 26-period EMA. When the fast average sits above the slow one — recent prices running ahead of the longer trend — the line is positive. When the fast average sits below, it is negative. When the two averages squeeze together the line heads toward zero, and when they pull apart it stretches away from zero. That squeezing and stretching is the convergence and divergence in the name.

Notice what this construction implies. Unlike the RSI indicator, which is squashed onto a fixed 0–100 scale, the MACD line is unbounded and denominated in rupees. A gap of ₹18 between the averages of a ₹4,000 stock is routine; the same ₹18 on an ₹80 stock would be extraordinary. MACD values therefore cannot be compared across stocks, and a stock’s own MACD stretches naturally as its price grows over the years. The line only means something against its own recent history.

Two additions complete the panel. The signal line is a 9-period EMA of the MACD line itself — an average of a difference of averages, which smooths the line and trails it. The histogram, added by Thomas Aspray in 1986, plots the gap between the MACD line and the signal line as vertical bars: bars growing means the MACD line is pulling away from its own average, bars shrinking means the two are closing in on each other, and a bar crossing through zero is the same event as the two lines touching.

As an illustration only, not a reading from any live chart: suppose a stock’s 12-day EMA stands at ₹408 and its 26-day EMA at ₹400. The MACD line prints +8. If the signal line — the 9-day EMA of recent MACD values — sits at +5, the histogram bar is +3. Now let the next session close higher, lifting the 12-day EMA to ₹409 and the 26-day to ₹403. Price rose, yet the MACD line fell to +6, because the gap between the averages narrowed. That small illustration carries the indicator’s central lesson: MACD does not track price, it tracks the spread between two views of price, and the two can move in opposite directions.

The four states and the two crossovers

At any moment the panel is in one of four states, depending on where the MACD line sits relative to zero and relative to its signal line.

MACD line vs zerovs signal lineWhat the state describes
Above zeroAbove signal12-EMA above 26-EMA and the gap still widening — upside momentum building on an established advance
Above zeroBelow signalAverages still bullishly stacked, but the gap is closing — an advance losing pace
Below zeroAbove signalAverages still bearishly stacked, but the gap is closing — a decline losing pace
Below zeroBelow signal12-EMA below 26-EMA and the gap widening — downside momentum building

The two crossovers people watch are transitions between these states. A signal-line crossover happens when the MACD line crosses its own 9-period average — upward crossings are conventionally read as bullish, downward as bearish. Strip the convention away and the event is modest: the gap between two moving averages just moved faster than its own recent average pace, in one direction or the other. It describes a change in the rate of the trend, nothing more.

A centre-line cross — the MACD line passing through zero — is a different and slower event. Zero means the 12-period and 26-period EMAs are equal, so a centre-line cross on the MACD panel is the exact same moment as a 12/26 EMA crossover on the price chart, the event the moving averages chapter treats in detail. Above zero, the medium-term trend structure is up; below zero, down. This is why practitioners weight the two crossings differently: a bullish signal-line crossover below zero describes a downtrend decelerating, which is not the same thing as a price rising.

The price sequence behind a typical bullish signal-line crossover, drawn above. What it looks like: a decline decelerating — bearish bodies shrinking session by session, a long lower wick as the fall stalls, then green candles; beneath a chart like this the MACD line, still below zero, curls up through its signal line. Where it appears: pullbacks within larger uptrends, and late in extended declines once selling pressure fades. What it suggests: downside momentum has slowed relative to its own recent pace — the gap between the fast and slow averages has stopped widening. Failure mode: in a sideways market these crossovers arrive in clusters, each one printed only after the small move that caused it has already run; and below zero, a bullish crossover describes a slower fall, not a rising price — declines routinely pause, cross, and resume.

The lag problem, stated plainly

Every line on a MACD panel is an average, or an average of averages. The 12- and 26-period EMAs each trail price by construction; their difference inherits that delay; the signal line then averages the difference over nine more periods. The consequence is not subtle: by the time a crossover prints, the move that produced it is already underway, and often already mature. MACD will never identify the first candle of a turn. It was never designed to — Appel built it to confirm trends, not to anticipate them.

The cost of the lag depends entirely on the regime. In a long, clean trend the lag is cheap: entry a few sessions after the turn still captures most of the move, and the indicator’s slowness filters out noise along the way. In a range the lag is expensive: price oscillates faster than the averages can follow, the MACD line whipsaws back and forth across its signal, and each crossing arrives roughly when the mini-move that caused it is finished. A trader mechanically acting on every crossover in a sideways market pays brokerage and taxes to be systematically late in both directions — a pattern consistent with SEBI’s published finding that the large majority of individual traders in derivatives lose money. The honest use is to ask first whether the stock is trending or ranging — the 50- and 200-day averages answer that — and to treat crossings as meaningful in the first regime and mostly noise in the second.

MACD divergence, with the same honesty as RSI

Divergence is the observation that makes MACD look prophetic in textbooks, and it needs the same framing the RSI chapter gives it. A bearish divergence: price prints a higher high while the MACD line prints a lower high — the second advance carried price further, but the spread between the averages behind it was narrower. A bullish divergence is the mirror image at lows.

The price leg of a bearish divergence, drawn above; beneath a chart like this the MACD line would set a lower peak at the second, higher price peak. What it looks like: a strong advance on full green bodies, a brief pause, then a push to a new high on a visibly smaller body with a long upper wick, followed by a red candle. Where it appears: late in extended advances, and at retests of long-standing ceilings of the kind the support and resistance chapter maps. What it suggests: the second push needed a narrower spread between the averages to reach a higher price — the advance may be tiring. Failure mode: strong trends generate divergences continuously and then invalidate them; price can print a third and fourth higher high while MACD keeps diverging, and each new high redraws the pattern from fresh swing points. The clean examples in textbooks are survivors, selected after the outcome was known.

There is also a mechanical reason to hold MACD divergence loosely: the line is unbounded and scales with price, so some measured divergences are artefacts of rupee arithmetic rather than observations about behaviour. Divergence on MACD, exactly as on RSI, is a condition to note, not an event to act on.

Reading MACD with the rest of the chart

MACD compresses trend and momentum into one panel, but it is built from closes alone, so it carries no information about participation or structure. The same crossover means more when turnover confirms that real money moved — the high-volume screen exists for that check — and a stock pressing a long-tested ceiling on the near-breakout screen with the MACD line rising above zero is showing trend pressure and structure agreeing, which is a more complete observation than either alone. Pairing MACD with RSI is common but adds less than it appears to, since both are derived from the same closes; the oversold screen and this chapter’s states describe the same market through different arithmetic. For what individual candles are saying while MACD summarises them, the chapters on reading candlestick charts and candlestick patterns complete the picture, and the opening chapter on technical analysis of stocks sets the limits all these tools share.

On Gale the numbers are not hypothetical. Every covered stock’s page carries a Technical snapshot block with the day’s MACD line, signal line and histogram alongside its RSI and moving averages, and gale.in computes these indicators daily from exchange-published data — the live screens are this chapter applied to the whole market, refreshed each trading day.

FAQ

Is it moving average divergence convergence or moving average convergence divergence?

The correct expansion is moving average convergence divergence, in that order — the name describes the two averages converging and diverging. The reversed form, moving average divergence convergence, is a common way the phrase gets remembered and typed, and it refers to the same indicator. Every platform abbreviates it to MACD either way.

What do the numbers 12, 26 and 9 mean in the MACD indicator?

They are the three lookbacks: a 12-period EMA, a 26-period EMA whose difference forms the MACD line, and a 9-period EMA of that line forming the signal. Appel chose them for six-day trading weeks — roughly two weeks, a month and a week and a half. Trading weeks have since shortened to five days, but the settings were never recalibrated; they persist by convention, not optimality. Shorter settings react faster and whipsaw more; longer settings smooth and lag further.

Is a MACD crossover a buy or sell signal?

No. A signal-line crossover describes a change in the pace of the gap between two moving averages, and it describes it after the fact. In trending markets crossovers have historically aligned with continuations often enough to be watched; in ranging markets they cluster and mislead. Nothing in the arithmetic knows why the price moved — that answer lives in results, filings and disclosures, not in any derivation of price.

MACD versus RSI — which should be watched?

They answer different questions with the same raw material. RSI is bounded and self-normalising, so it is comparable across stocks and suited to describing stretched conditions. MACD is unbounded and trend-anchored, so it is suited to describing whether a trend is gaining or losing pace. Neither is better; both are late; and because both are computed from closing prices, agreement between them is weaker confirmation than agreement between either and something independent, such as volume or chart structure.

Does MACD work on weekly charts and on indices?

The arithmetic runs on any consistent series of closes — weekly bars, the Nifty, a commodity. The meaning shifts with the timeframe: a weekly signal-line crossover summarises months of behaviour and prints rarely, while a daily one is routine. The lag scales up too — a weekly centre-line cross can arrive quarters after the turn it confirms. Comparing readings across timeframes as if they were interchangeable is the same error it is with RSI.

What to weigh

MACD is one subtraction and two smoothings: the distance between a fast and a slow average of price, averaged again. That construction makes it a clean summary of whether a trend is stretching or tiring, and it makes every reading late — the indicator cannot be early, only progressively less behind. The crossings that deserve attention arrive with context: a centre-line cross confirmed by turnover, in a stock whose chart structure has already broken a tested level, reads differently from the fifth whipsaw of a sideways month. Weigh the regime before the crossover, the volume behind it, and the reason for the move — which lives in the company’s disclosures, not in the spread between two averages of its price. The panel describes; the homework decides.

Gale is not a SEBI-registered investment adviser or research analyst; this chapter is education about how an indicator is built and read, not a recommendation to buy or sell any security.

MACD IndicatorMoving Average Convergence DivergenceMomentumTechnical AnalysisStock Charts