Quick Definition

You added an indicator called MACD to a Reliance chart on Zerodha Kite, a second panel popped up below the price with two wiggly lines and a row of little bars — and none of it meant a thing.

That confusion is completely normal. It clears up faster than you would expect, once you see what those lines are actually made of — and by the end of this guide, that bottom panel will read like a plain sentence.

So here is the one-line version first. MACD (pronounced "Mac-Dee," short for Moving Average Convergence Divergence) is a momentum indicator — it compares a fast and a slow average of a stock's recent price to answer one question: is the current move gaining steam, or running out of it?

It is one of the most popular indicators on Indian charts, and also one of the most misused. Most beginners learn a single rule — "lines cross, place a trade" — and then lose money in sideways markets, wondering why it stopped working.

i

One-line answer. MACD measures the gap between a fast and a slow moving average of price. When that gap is widening, momentum is building; when it is shrinking, momentum is fading. It is a momentum gauge, not a price-target tool — and it works far better in a trending stock than a flat one.

Plain-English glossary

Words you will meet in this article, explained once.

Moving average
The average price over the last N days, recalculated each day so the line moves along with price. A 26-day moving average smooths out daily noise to show the slower underlying drift.
EMA (Exponential Moving Average)
A moving average that gives more weight to recent prices than to older ones, so it turns faster when price changes. MACD is built entirely from EMAs.
Momentum
The speed and strength of a price move — not where price is, but how forcefully it is travelling. MACD is a momentum gauge.
MACD line
The main line: the 12-day EMA minus the 26-day EMA. It rises when the fast average pulls above the slow one and falls when it drops below.
Signal line
A 9-day EMA of the MACD line — a smoothed, slower version of it. Crossings between the two lines are the classic MACD signal.
Histogram
The row of bars showing the gap between the MACD line and the signal line. Tall bars mean strong momentum; shrinking bars mean it is fading.
Crossover
The moment one line crosses another. A MACD-above-signal crossover is read as bullish; below as bearish.
Divergence
When price and MACD disagree — price makes a new high but MACD does not. A warning that the move is running on weaker momentum.
Whipsaw
A false signal that reverses almost immediately, handing you a small loss. MACD whipsaws most in flat, choppy markets.
The honest answer

What MACD actually shows

Start with the name, because it tells you everything. Convergence means two moving averages coming together. Divergence means them moving apart.

Picture two cars on a highway — a fast one and a slow one. When the fast car pulls ahead, the gap between them grows. When it eases off, the gap shrinks and the slow car catches up.

MACD is simply a live measurement of that gap. The fast car is a 12-day average of price; the slow car is a 26-day average. When the fast one races ahead, momentum is strong. When it falls back toward the slow one, momentum is dying.

That is the whole idea. Everything else — the lines, the bars, the crossovers — is just a way of drawing that one gap on a chart.

And here is the key point a beginner needs early: MACD does not tell you the price of the stock. It tells you about the force behind the latest move. A stock at ₹500 and a stock at ₹2,000 can show the exact same MACD picture.

Because it measures force rather than price level, MACD is brilliant at one job — spotting when a trend is speeding up or slowing down — and poor at another, telling you an exact level to buy or sell.

!

Short answer. MACD = the 12-day EMA minus the 26-day EMA, plus a 9-day signal line and a histogram. Read it for one question only: is momentum building or fading? It is a momentum tool, not a price target, and it shines in trends and struggles in flat markets.

The mechanics

How MACD is built — the three parts

You will never calculate MACD by hand. Kite, TradingView and every other charting app do it for you in real time. But knowing what is inside the box makes the bottom panel stop being mysterious.

The whole indicator is built from EMAs — exponential moving averages, the kind that weight recent prices more heavily so they react faster than a plain average. MACD stacks three pieces on top of each other.

The MACD line comes first. Take the 12-day EMA of the closing price and subtract the 26-day EMA. When the fast 12-day average is above the slow 26-day one, this line is positive. When it is below, the line is negative.

The signal line comes second. It is just a 9-day EMA of the MACD line — a smoothed, slightly delayed copy that trails behind it. Its only job is to give the MACD line something to cross.

The histogram comes third. It is the gap between the MACD line and the signal line, drawn as bars. When the MACD line is above its signal, the bars sit above zero; when below, the bars hang below zero.

The recipe, on one card

Three pieces, all built from exponential moving averages of the closing price. The defaults are 12, 26 and 9.

MACD line 12-day EMA − 26-day EMA
Signal line 9-day EMA of the MACD line
Histogram MACD line − Signal line
Zero line Where the 12-day and 26-day EMAs are equal

Those three numbers — 12, 26, 9 — are the defaults Gerald Appel chose when he created MACD in the late 1970s, and almost every platform still ships with them. The histogram was added later, by Thomas Aspray in 1986, to make the momentum shift easier to see at a glance.

So the bottom panel has three things in it. Two lines that cross each other, and bars that grow and shrink. Here is what each one is telling you.

MACD line

The fast-minus-slow gap. Rising means momentum building, falling means it fading.

Signal line

A slower copy of the MACD line. The two crossing is the classic signal.

Histogram

The gap between the two lines. Bars grow with momentum and shrink as it dies.

The single most useful habit is to watch the histogram bars. When they are getting taller, the move is accelerating. When they start shrinking — even while still above zero — momentum is already easing, often before the lines themselves cross.

The framework

The three signals MACD gives you

Most beginners use MACD for one signal and ignore the other two. That is like buying a Swiss army knife and only ever using the bottle opener.

MACD actually offers three distinct readings, and each says something different about the move.

1. The signal-line crossover

This is the famous one. When the MACD line crosses above the signal line, momentum is turning up — a bullish crossover. When it crosses below, momentum is turning down — a bearish crossover.

It is the earliest of the three signals, which also makes it the noisiest. In a flat market these crossovers fire constantly and most of them lead nowhere.

2. The zero-line crossover

The zero line is the level where the 12-day and 26-day averages are exactly equal. When the MACD line climbs above zero, the fast average has overtaken the slow one — the broader trend has tipped upward.

This is a slower, stronger signal than the line crossover. Fewer of them happen, and they tend to mark more meaningful shifts in trend.

3. Divergence

This is the most advanced reading, and the most valuable. Divergence is when price and MACD disagree about a move.

Bearish divergence
New high, weaker engine

Price pushes to a higher high, but MACD makes a lower high. The new peak happened on less momentum than the last one — like a car still climbing but with the engine straining. A warning the uptrend may be tiring.

Caution momentum fading on the way up
vs
Bullish divergence
New low, softer fall

Price drops to a lower low, but MACD makes a higher low. The sellers are running out of force even as price slips. Like a ball bouncing less hard each time — a hint the downtrend is losing its grip.

Watch selling pressure easing

Divergence is a heads-up, not a stopwatch. A trend can keep running long after divergence first appears, so it is best used as a reason to tighten your guard — never as a standalone "reverse now" button.

The case study

MACD on Indian charts

The fastest way to learn MACD is to pull up a familiar Indian chart, switch the indicator on at the default 12, 26, 9 setting, and read the bottom panel against what price was doing. Treat the windows below as starting points — open each one on TradingView or Kite and check it with your own eyes.

Pull up the Nifty 50 daily chart through the Covid crash in early 2020. As the market fell apart in late February and March, the MACD line plunged far below its signal line and deep below zero, and the histogram bars stretched long and red. That is momentum screaming "strong downtrend," not a buy signal.

Now look at the recovery from late March into April 2020. The histogram bars began shrinking first — the fall was losing force — and then the MACD line crossed back above the signal. The crossover came after the low, not before it. That lag is MACD's nature, not a flaw.

For a trending example, pull up a large-cap that had a long, clean run — say Reliance or an index heavyweight over a strong rally. Through the trend, the MACD line stayed above zero and the crossovers mostly pointed the same way as the move. MACD rewards you when a stock actually trends.

Then find a stock stuck in a sideways box for a couple of months — flat, choppy, going nowhere. The MACD lines cross back and forth across each other and across zero again and again. Almost every one of those crossovers is a whipsaw. This is exactly where beginners get chopped up.

The lesson from the charts is consistent: the same MACD signal that prints gold in a trend prints noise in a range. The indicator did not change — the market did.

⚙ From the toolkit

Screener filters the two thousand-plus NSE stocks for fresh MACD signals — bullish and bearish crossovers, zero-line crosses, and price-versus-MACD divergences — and lets you demand a clear trend alongside them, so you are not handed a list of sideways whipsaws. Run it after the close and the few names worth watching tomorrow land on one screen.

The reality check

The lag-and-whipsaw trap

If MACD is so useful, why does it lose money for so many retail traders? The answer is built into how it works.

MACD is a lagging indicator. It is made from averages of past prices, so it can only confirm a move that has already begun — it never predicts one in advance. That delay is the price you pay for filtering out random noise.

In a strong trend, the lag is fine. You give up a little at the start and end and still capture the bulk of the move.

In a flat, sideways market, the lag turns toxic. Price drifts up and down with no real direction, the two lines cross constantly, and each crossover is a whipsaw — a signal that reverses before you can profit from it.

This is not a small problem. Most retail trading ends in losses — a SEBI study found that 93% of individual F&O traders lost money between FY22 and FY24, together giving up more than ₹1.8 lakh crore. No indicator, MACD included, rescues a trader who keeps taking signals the market never gave. Discipline does.

MACD is not a button. It is a question: is momentum strong enough to trust this trade? VRD Rao

The fix is not a smaller setting. Shortening the numbers to catch faster signals just makes the indicator noisier and the whipsaws worse. The fix is to stop taking MACD signals in markets that are not trending.

Two filters do most of the work. The first: only act on MACD signals when the stock is clearly trending — when price is making a series of higher highs and higher lows, or lower highs and lower lows. In a flat box, stand aside.

The second: prefer signals that agree with the bigger picture. A bullish crossover while the MACD line is already above zero, in a stock trending up on the higher timeframe, is worth far more than a crossover fired in the middle of a range.

MACD Decision Trainer

Crossover, divergence or whipsaw — what is this signal worth?

Three short scenarios. Pick what you would actually do. Each answer comes with a one-line explanation.

Quiz loads in the typed widget at runtime.
The playbook

How to actually use MACD

Once the framework is clear, the rules get simple. MACD is not a standalone system. It is a momentum filter that improves trades you would already consider from the price chart itself.

Use it for three jobs, in this order. Read the trend first. Time the entry with the crossover. Use divergence and the histogram as an early warning.

For the trend, look at price and the zero line on the higher timeframe. MACD line above zero with price making higher highs is an uptrend; below zero with lower lows is a downtrend. If neither is true, the stock is ranging and MACD has little to say.

For the entry, use the signal-line crossover — but only in the direction of that established trend. A bullish crossover in an uptrend is a pullback ending; a bullish crossover in a downtrend is usually a trap.

For the early warning, watch the histogram and divergence. Shrinking histogram bars and a fresh divergence tell you the move is tiring — a cue to tighten a stop or take some profit, not to flip your whole position.

MACD as a checklist, not a button

How disciplined traders read MACD on Nifty, Bank Nifty and Indian large-caps. Trend before signal, every time.

Step 1 · Trend
Is price trending? Check higher highs/lows and the zero line
Bias
Step 2 · Signal
Take the crossover only in the trend's direction
Trigger
Step 3 · Warning
Watch the histogram shrink and divergence for fading momentum
Manage
Step 4 · Risk
Every trade gets a stop before you take the signal
Discipline

One practical note on settings. The 12, 26, 9 default is the right place to start, and you should resist tuning it for a long time. Most beginners shorten it to catch faster signals and end up with an indicator that fires on every wiggle.

Another temptation is to stack MACD with three other momentum tools — RSI, the Stochastic, the rate of change — and wait for all of them to agree. They all measure roughly the same thing, so stacking them just gives you four versions of one opinion. One momentum tool, read well, is enough. Pair MACD with something that measures a different thing, like trend or volatility, instead.

Before you trade a MACD signal

Five questions to answer in your head before you act on any crossover.

  • Is the stock actually trending, or stuck in a flat range where MACD whipsaws?
  • Does the signal point the same way as the bigger trend on the higher timeframe?
  • Is the MACD line above or below the zero line — and does that agree with the trade?
  • Are the histogram bars growing (momentum building) or shrinking (momentum fading)?
  • Where does the stop go, and is the trade worth that risk? No stop, no trade.

The honest take

MACD is one of the clearest momentum gauges on any chart. It measures the gap between a fast and a slow moving average, and tells you whether the current move is gaining force or running out of it. It does not tell you the price to buy at.

Read it as a standalone buy-and-sell machine and a sideways market will hand you a long ladder of whipsaw losses. Read the trend first, take crossovers only in the trend's direction, and use the histogram and divergence as an early warning — and MACD earns its place on the panel.

The deepest signal is divergence: when price and momentum quietly disagree. It will not time the turn for you, but it tells you when a strong-looking move is running on a tiring engine — and that is worth knowing before everyone else does.