Technical Analysis · Education Hub
MACD Indicator Explained: How Indian Traders Use Moving Average Convergence Divergence
A complete educational guide to the MACD — its mathematical construction, the three components every chartist sees on screen, crossover and divergence concepts with historical Indian market context, timeframe and parameter choices, and the limitations that every analyst should understand. All examples reference past data only. This article is educational and does not constitute investment advice.
What is the MACD indicator?
The Moving Average Convergence Divergence — universally abbreviated as MACD and pronounced "Mac-Dee" — is one of the most widely used technical indicators in equity analysis. It was developed by American analyst Gerald Appel in the late 1970s and was later popularised through his books and trading newsletters. The histogram form of the indicator was added by Thomas Aspray in 1986 to help visualise the gap between the MACD line and its signal line.
The MACD belongs to the family of oscillators, but unlike pure oscillators such as RSI or Stochastics, it is unbounded — it has no fixed upper or lower limit. It is also a hybrid indicator: it combines characteristics of trend-following indicators (because it is built from moving averages) and momentum indicators (because it measures the rate of change between those moving averages).
The name itself describes what the indicator measures. When the shorter-period moving average converges with — moves toward — the longer-period moving average, momentum is decelerating. When the shorter-period moving average diverges from — moves away from — the longer-period moving average, momentum is accelerating. The MACD quantifies this relationship as a single value plotted below the price chart.
For the underlying mathematical building blocks, see our moving averages guide.
The three components of MACD
Every standard MACD plot contains three distinct elements. They are calculated sequentially — each one depends on the previous.
1. The MACD line
The MACD line is the difference between two exponential moving averages of closing price:
MACD line = EMA(12) − EMA(26)
When the 12-period EMA is above the 26-period EMA, the MACD line is positive. When it is below, the MACD line is negative. The further apart the two EMAs are, the larger the absolute value of the MACD line — which historically has been interpreted as stronger momentum in the direction of the spread.
2. The signal line
The signal line is a 9-period exponential moving average of the MACD line itself:
Signal line = EMA(9) of MACD line
Because it is an EMA of the MACD line, the signal line lags slightly behind the MACD line. This lag is intentional — it is what allows the MACD to generate crossover signals when the faster MACD line changes direction relative to the slower signal line.
3. The histogram
The histogram is the visual gap between the MACD line and the signal line:
Histogram = MACD line − Signal line
It is plotted as vertical bars above or below a zero baseline. When the MACD line is above the signal line, the histogram bars rise above zero; when below, the bars fall below zero. The height of each bar reflects the size of the gap. As a crossover approaches, the histogram bars contract toward zero, then flip sign at the moment of the crossover. Many chartists watch the histogram more closely than the lines themselves because it makes momentum changes visually obvious.
How to read MACD crossovers
The MACD generates two distinct types of crossover, each with its own historical interpretation.
Signal line crossover. This is the more frequent of the two. A bullish signal line crossover occurs when the MACD line crosses above the signal line — historically observed as a shift toward upward momentum. A bearish signal line crossover occurs when the MACD line crosses below the signal line — historically observed as a shift toward downward momentum. Because it is based on the relationship between two relatively short EMAs, the signal line crossover is a shorter-term momentum trigger.
Zero line crossover. This is the less frequent and historically more significant crossover. A bullish zero line cross occurs when the MACD line itself crosses from below zero to above zero — meaning the 12-period EMA has just crossed above the 26-period EMA. A bearish zero line cross occurs in reverse. Because the zero line crossover requires the underlying EMAs to switch relative position, it has been historically interpreted as a longer-term trend confirmation rather than a short-term momentum shift.
The most discussed combinations involve sequencing. A signal line cross that occurs while the MACD is already above zero is treated differently from a signal line cross that happens deep below zero. Position relative to zero adds context to every crossover.
Bullish and bearish divergences
Divergence is a pattern that compares the swings on the price chart with the swings on the MACD chart. When the two disagree about the direction of momentum, a divergence is said to exist.
Bullish divergence. Price prints a lower low, but the MACD prints a higher low. This has historically been observed when downward momentum is fading even as price continues to drift lower. It does not by itself indicate that price will reverse — it simply records that the rate of decline has slowed. Many historical reversals have been preceded by bullish divergences, but many divergences have also failed to resolve into reversals.
Bearish divergence. Price prints a higher high, but the MACD prints a lower high. This has historically been observed when upward momentum is fading even as price continues to inch higher. Like bullish divergence, it is a pattern observation rather than a forecast.
Hidden divergences are a less commonly discussed variant where the MACD makes a more extreme reading than price. A hidden bullish divergence forms when price prints a higher low but the MACD prints a lower low — historically observed during pullbacks inside an existing uptrend. A hidden bearish divergence is the mirror image inside an existing downtrend.
Historical examples on Indian large-caps
The MACD has been observed on virtually every actively traded Indian equity. The patterns described below are illustrative — they describe what has been recorded on historical charts and are not forecasts.
TCS — long-trend behaviour. Tata Consultancy Services has historically been a steady-trending large-cap. On the daily timeframe, the MACD line on TCS spent extended stretches above the zero line during sustained upward phases and below zero during extended pullbacks. Signal line crossovers during these phases were frequent but often shallow, while zero line crossovers were rarer and historically aligned with longer trend transitions.
HDFC Bank — divergence history. During multi-month consolidations, HDFC Bank has historically produced both bullish and bearish MACD divergences on the daily and weekly charts. Some of those divergences preceded direction changes; others persisted while price continued in the original direction. The pattern is a reminder that divergence is a context indicator, not a trigger.
Reliance Industries — volatility regimes. Reliance has historically alternated between trending and consolidating regimes. In trending regimes, the MACD histogram on Reliance historically expanded markedly in the direction of the trend; in consolidating regimes, the histogram stayed compressed near zero and crossovers were frequent and short-lived — a textbook example of why MACD signals are weaker in range-bound conditions.
Timeframes: daily, hourly, and weekly MACD
The MACD is timeframe-agnostic. The same calculation applies to a 5-minute chart, a daily chart, or a monthly chart. What changes is the interpretation horizon.
- Daily MACD — The default for swing-style analysis on Indian equities. Signal line crossovers on the daily MACD historically generated a handful of shifts per quarter on actively-traded large-caps.
- Hourly MACD — Used by intraday and very short-term participants. Signals occur far more frequently and include far more noise. Many participants apply additional filters (such as zero line position or higher-timeframe alignment) to reduce the noise.
- Weekly MACD — Used for positional analysis. The indicator updates only at the end of each week, so signals are rare but historically more durable. The weekly MACD on the Nifty 50 has historically produced only a small number of zero line crossovers per decade.
A widely discussed approach is the multi-timeframe MACD — examining the indicator on a higher timeframe to define the dominant context, and using the lower timeframe MACD for finer observations within that context. This is a layering technique, not a guarantee.
Combining MACD with price action and volume
The MACD is rarely used in isolation. Most analytical frameworks combine it with at least one other lens.
- Price action confluence. A MACD signal that coincides with a break of a horizontal support or resistance level, a trendline, or a chart pattern boundary has historically been considered a higher-context observation than a MACD signal that fires in the middle of a featureless range.
- Volume confirmation. A MACD zero line crossover accompanied by a notable expansion in trading volume has historically been interpreted as more meaningful than the same crossover on declining or average volume. Volume measures participation; without participation, momentum readings can be misleading.
- Higher timeframe alignment. When the daily MACD and the weekly MACD both occupy the same side of the zero line, historical analyses have considered the directional context to be stronger than when the two timeframes disagree.
Limitations of the MACD
The MACD inherits the limitations of its underlying moving averages and adds a few of its own:
- Lagging by construction. The MACD is built from EMAs, which are themselves lagging. By the time a crossover is confirmed, the underlying move has already started.
- Whipsaws in sideways markets. When a security is range-bound, the MACD line and signal line cross repeatedly, generating signals that are quickly reversed. The histogram oscillates tightly around zero with no durable direction.
- Parameter sensitivity. The default 12, 26, 9 parameters were selected by Appel for a specific market and era. They are not universally optimal. Changing the parameters changes the signals — there is no fixed answer to which set is correct.
- No absolute scale. Unlike RSI or Stochastics, the MACD is unbounded. A reading of 5 on one stock means something entirely different from a reading of 5 on another stock with a different price level. Cross-stock comparison of raw MACD values is not meaningful without normalisation.
- Persistent divergences. Divergences can stretch over months without resolving into a reversal. Acting on every divergence as if it were a reliable signal has historically resulted in many incorrect calls.
Parameter settings: 12/26/9, 5/13/8, 19/39/9
The default MACD setting of 12, 26, 9 is the most widely used and is the configuration that virtually every charting platform — including those used on Indian markets — applies by default. The 12 represents two trading weeks of an EMA, the 26 represents about a month of trading sessions, and the 9 represents the smoothing period for the signal line.
Some shorter-term participants use 5, 13, 8or similar "fast" MACD settings to detect momentum shifts earlier. The trade-off is increased noise — fast MACDs flip more often, and a higher proportion of those flips are whipsaws.
Conversely, longer-term participants sometimes use 19, 39, 9or similar "slow" MACD settings to filter out shorter-term noise and focus on more enduring shifts. The trade-off is greater lag — slow MACDs confirm changes well after they have begun.
There is no single correct setting. The right configuration depends on the analysis horizon, the volatility profile of the security, and the style of analysis being performed.
Practical considerations for Indian markets
- Gap handling. Indian equities frequently open with overnight gaps because of global cues from US markets that close after Indian markets close. These gaps can produce short-term distortions in the MACD that may resolve within a few sessions.
- Result-day effects. Quarterly results in India often produce sharp single-day moves that reset the short-term MACD picture. Analysing MACD signals immediately around result-day events requires more caution than during normal market sessions.
- F&O expiry. Monthly and weekly expiry days in Indian derivatives markets often produce concentrated volatility that can generate short-lived MACD crossovers historically reversed within days.
- Liquidity differences. The MACD has historically been more interpretable on highly liquid Nifty 50 and Nifty Next 50 stocks than on thinly traded smallcaps, where price moves are often driven by single trades rather than continuous order flow.
Related reading
The MACD is most informative when combined with other lenses. To deepen the foundation, see our guides on moving averages and the RSI indicator. For interactive Indian-stock charting with MACD overlays, see our TradingView review.
Charting platform
For interactive charting with 100+ technical indicators, many Indian traders and analysts have used TradingView — a web-based platform that works across NSE and BSE data with real-time and historical charts.
Affiliate link — we may earn a commission at no cost to you.
This article is educational only and does not constitute investment advice, a trading signal, or a solicitation to transact in any security. The MACD is a lagging indicator derived from historical price data; it does not predict future price movement. Past market behaviour is not indicative of future results. Please consult a SEBI-registered investment adviser before making any trading or investment decision.