Here is the good news: MACD is not a brand new idea. It is built entirely from the EMAs you met in the moving averages guide. The name says so. MACD stands for Moving Average Convergence Divergence, which just means "watch two moving averages move apart and come together."

Put two EMAs on NABIL at once:

  • A fast EMA (12-day) that reacts quickly and hugs the price.
  • A slow EMA (26-day) that lags behind and moves lazily.

In the moving averages guide you learned a shorter EMA turns faster than a longer one. MACD squeezes a whole momentum signal out of that single fact.

The analogy to remember: think of a sprinter and a jogger running together. The fast 12-day EMA is the sprinter, the slow 26-day EMA is the jogger. When a rally hits, the sprinter pulls ahead and the gap between them grows. The MACD line is simply the distance between the sprinter and the jogger. Here are both runners drawn on the price at once:

the gap= MACD line
Fast EMA 12Slow EMA 26Price
The two lines start together, then the fast EMA pulls away as the rally builds. That widening gap is the MACD line. Illustrative data.
Pause and think

NABIL is drifting sideways and the fast 12-day EMA and slow 26-day EMA sit right on top of each other. Then a strong rally begins and price shoots up for two weeks. What happens to the gap between the two lines, and why?

Reveal the answer

The gap widens. The fast 12-day EMA reacts quickly and shoots up, while the slow 26-day EMA lags behind. The faster line pulls away from the slower one, exactly like the right-hand side of the chart above. That growing gap is the heart of MACD.

What is the MACD line?

Because that gap is the whole point, it gets a name:

The whole idea of MACD

The MACD line = fast EMA (12) minus slow EMA (26). It is simply the size of the gap between them, drawn as a line.

A quick number makes it concrete. Say NABIL's 12-day EMA sits at 1,020 and its 26-day EMA at 1,000. The MACD line is 1,020 − 1,000 = +20. A week later the rally has pushed the 12-day EMA to 1,055 while the slow 26-day EMA has only crept up to 1,010, so the MACD line is now +45. That jump from +20 to +45 is the gap widening, the sprinter pulling away from the jogger, momentum accelerating.

That gives you a zero line to read against:

  • MACD line above zero: the fast EMA is above the slow one, so the short-term trend is stronger than the longer-term trend. Bullish.
  • MACD line below zero: the fast EMA has dropped below the slow one. Bearish.
  • The gap widening means momentum is accelerating; the gap shrinking means momentum is fading, even while the two lines are still apart.

The signal line and the histogram

The MACD line alone shows momentum, but two more pieces turn it into a usable trigger:

  • Signal line: a 9-day EMA of the MACD line itself. It is a smoothed, slower version that trails behind the MACD line.
  • Histogram: bars showing the MACD line minus the signal line. Tall bars mean strong momentum; bars shrinking toward zero warn that a crossover is near. It is just a picture of the distance between the two lines.

The actual trigger is the crossover:

What happensWhat it means
MACD line crosses above the signal lineBullish trigger. Momentum turning up.
MACD line crosses below the signal lineBearish trigger. Momentum turning down.
MACD line above the zero lineThe bigger short-term trend is up.

So the zero line tells you the bigger trend, and the signal-line crossover tells you the timing. Here is what all three pieces look like together:

zero linebullish crossoverhistogram flips green hereMACD line (solid)signal line (dashed)
Where the solid MACD line crosses above the dashed signal line, the histogram bars flip from red to green. That is a bullish crossover. Illustrative data.

See how the histogram bars flip from red to green exactly where the solid MACD line crosses above the dashed signal line? That single spot is the crossover. The bars are tallest when the two lines are far apart and shrink to nothing right at the cross.

Play with it

Tap New scenario and hunt for the crossovers. Watch how the histogram turns green when the MACD line crosses above its signal line, and red when it crosses below:

Interactive — try itBullish
PriceMACD (12, 26, 9)
MACD lineSignal lineHistogram

Bullish. MACD line is above its signal line and above zero, so short-term momentum is turning up.

Tap New scenario and find the crossovers, marked with rings. At each ring the MACD line crosses the dashed signal line and the histogram flips colour at the same spot: green when it crosses up, red when it crosses down. That alignment is the whole signal. Illustrative data, not live NEPSE prices.

Notice that the histogram often starts shrinking before the lines actually cross. That early warning is one of the most useful things MACD gives you.

Leveling up: divergence

Here is your first taste of an intermediate idea, and you may already sense it from the histogram.

The analogy: divergence is a ball tossed in the air. Right near the top, the ball is still rising, but it is slowing down, and you already know the fall is coming. Bearish divergence is the same picture: price still inching to new highs, but momentum quietly slowing underneath.

Pause and think

Suppose NABIL keeps grinding to new highs, the price chart still climbing, but the gap between the two EMAs starts shrinking instead of widening. Price up, momentum gap narrowing. What might that be telling you?

Reveal the answer

Momentum is fading even though price is still rising. The rally is running out of fuel, which often comes before a pullback or a sideways drift. When price makes a higher high but MACD makes a lower high, that mismatch is called bearish divergence.

Divergence is when price and MACD disagree. Price makes a new high but MACD makes a lower high (bearish divergence, momentum fading under a rising price), or price makes a new low but MACD makes a higher low (bullish divergence, selling losing steam). It is a powerful early warning, but it is an intermediate signal: it asks you to read price and the indicator at the same time, and it works best confirmed with trend and volume. We use it for real in the final article.

Take a breath

That was a lot, and that is completely fine. Here is all you actually need to start: MACD shows momentum, a crossover is the trigger, and the histogram is the picture of it. Divergence is a bonus you grow into later, not a requirement. If your head feels full, reread the moving averages guide and the RSI guide first, then come back to this one. There is no rush.

How to use MACD

  1. Check the zero line first for the bigger trend: above zero leans bullish, below zero leans bearish.
  2. Use the crossover for timing: MACD crossing above its signal line is a bullish trigger, below is bearish.
  3. Watch the histogram shrink toward zero as an early warning that momentum is cooling before the cross.
  4. Treat divergence (price and MACD disagreeing) as a caution flag, then confirm with other tools.

Key takeaways

  1. MACD is built from two EMAs: the MACD line is the fast 12-day EMA minus the slow 26-day EMA.
  2. The signal line is a 9-day EMA of the MACD line, and a crossover between them is the timing trigger.
  3. The histogram pictures the gap between the two lines and shrinks early when momentum is fading.
  4. Divergence, where price and MACD disagree, is an intermediate warning best confirmed with trend and volume.

Common questions

What is MACD in simple terms? A momentum tool built from two moving averages. It shows whether the short-term trend is pulling away from the longer-term trend, and in which direction.

What is a MACD crossover? When the MACD line crosses its signal line. Above is bullish, below is bearish.

What is divergence? When price makes a new high but MACD does not, warning that momentum is fading. The opposite at a bottom is bullish divergence.

Next we cover Bollinger Bands and volume, the tools that measure volatility and confirm whether a move has real participation behind it.

Educational content only. This is not investment advice. Prices shown are illustrative, not live NEPSE data.