QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Options glossary

What is MACD (Moving Average Convergence Divergence)?

MACD (Moving Average Convergence Divergence) is a momentum indicator equal to the 12-period EMA minus the 26-period EMA of price. A 9-period EMA of MACD, called the signal line, and the gap between the two, called the histogram, are plotted with it.

Also called: MACD, MACD indicator, MACD 12 26 9, MACD crossover

Live example25 Nov 2026

MACD (12, 26, 9) of NIFTY futures

NIFTY futures closed at 26,077.10. The MACD line is 654.83 and the signal line 580.63, so the histogram is +74.20. The last crossover was bullish (MACD crossed above the signal) on 13 Oct 2026.

SessionCloseMACDSignalHistogram
25 Nov26,077.10654.83580.63+74.20
23 Nov25,369.50624.26562.08+62.19
20 Nov25,775.30648.22546.53+101.69
19 Nov25,533.00628.05521.11+106.94
18 Nov25,239.30617.84494.38+123.46
17 Nov25,415.30625.72463.51+162.21

MACD = 12-day EMA − 26-day EMA; signal = 9-day EMA of MACD; histogram = MACD − signal. Daily closes of continuous NIFTY futures.

NIFTY futures chart →
ChartMACD (12, 26, 9) of NIFTY futures, last six months
-500-2500250500750Zero line20 May26 Jun3 Aug10 Sep18 Oct25 Nov
-500-2500250500750Zero line20 May22 Jul23 Sep25 Nov
MACD lineSignal line
How to read this chart: MACD is the gap between the 12-day and 26-day exponential averages. When the solid MACD line crosses above the dashed signal line momentum is turning up; below it, down. Above the zero line the short-term average is above the long-term one.

How it works

Gerald Appel developed MACD in the late 1970s. MACD line = 12-period EMA of closing prices minus the 26-period EMA. An EMA, or exponential moving average, is an average that gives more weight to recent prices. When the faster 12-period average pulls away from the slower 26-period one, the averages diverge and MACD grows. When they come together, they converge and MACD moves toward zero. MACD above zero means the short average is above the long one, which happens after prices have been rising.

Signal line = 9-period EMA of the MACD line. Histogram = MACD line minus signal line. A crossover is when MACD moves from below the signal line to above it, or the reverse; at that moment the histogram changes sign. MACD is measured in price points, not on a fixed 0 to 100 scale like RSI, so its size depends on the price level of the instrument.

Worked example. suppose NIFTY futures' 12-day EMA is 24,300 and the 26-day EMA is 24,180. MACD = 24,300 - 24,180 = 120 points. If the signal line, the 9-day EMA of MACD, is 90, the histogram = 120 - 90 = 30, so MACD is above its signal line. A few days later the 12-day EMA is 24,250 and the 26-day EMA is 24,190, so MACD = 60. If the signal line has risen to 80, the histogram = 60 - 80 = -20. MACD has crossed below its signal line, which traders call a bearish crossover.

Reading today's live example

The live example above computes MACD(12,26,9) on NIFTY futures daily closes. It shows the MACD line, the signal line, the histogram and the date of the last crossover, with a chart. Start with the sign of MACD: above zero, the 12-day EMA is above the 26-day EMA; below zero, the reverse. Then compare MACD with its signal line. MACD above the signal line with a growing histogram means upward momentum has been building; a shrinking histogram means it is slowing, even if MACD is still positive. The last crossover date shows how long the current state has lasted. Because these are futures closes, values can differ slightly from MACD on the cash index.

How traders use it

Traders use MACD to judge the direction and strength of a trend before taking an F&O view, for example whether momentum supports a bullish or bearish stance on NIFTY. Some watch zero-line crosses, when MACD turns positive or negative, as a slower confirmation of a trend change. Others look for divergence: NIFTY makes a higher high while MACD makes a lower high, a hint that the rise is losing force. Option traders apply MACD to the underlying, not to option premiums, because premiums also move with time decay and implied volatility. MACD is a tool, not a signal.

Common mistakes

MACD is built from moving averages, so it lags price. By the time a crossover appears, much of the move may already be over. In sideways markets MACD crosses its signal line again and again, giving many whipsaws. Comparing MACD values across instruments is another error: a reading of 100 means something very different on BANKNIFTY than on a stock trading at ₹500. Finally, tuning the 12, 26 and 9 settings until they fit past NIFTY data rarely holds up on new data.

Frequently asked questions

What is MACD in simple words?

MACD shows the gap between a fast and a slow average of price. When the gap widens upward, prices have been rising faster lately; when it narrows or turns negative, upward momentum has faded. It is a momentum and trend tool, not a forecast.

What is the MACD 12 26 9 setting?

12 and 26 are the periods of the fast and slow exponential moving averages, and MACD is the 12-period EMA minus the 26-period EMA. 9 is the period of the signal line, an EMA of MACD itself. These are the defaults on most charts.

What is a MACD crossover?

A bullish crossover is when the MACD line rises above its signal line; a bearish crossover is when it falls below. At that point the histogram changes sign. Crossovers describe a change in momentum that has already happened; they do not predict the next move.

Is MACD better than RSI?

They measure different things. RSI compares average gains with average losses on a 0 to 100 scale; MACD measures the distance between two averages in price points. Many traders look at both, along with price levels, rather than relying on one.

← All glossary terms

For education only; not investment advice. Live figures from NSE via Quantsapp. Derivatives trading carries substantial risk. Disclaimer

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

Have a password?

By continuing you agree to the Terms of Use and Privacy Policy.