Quick Answer: What Is MACD and How Do You Read It?
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator built from the relationship between two moving averages. These terms cover most of what a beginner needs to know:
- MACD line
- The 12-period EMA minus the 26-period EMA, showing the gap between a faster and a slower average.
- Signal line
- A 9-period EMA of the MACD line itself, used as a smoothed trigger reference.
- Histogram
- The MACD line minus the signal line; growing bars mean momentum is accelerating and shrinking bars mean it is fading, often before a crossover.
- Signal line crossover
- When the MACD line crosses above or below the signal line, a bullish or bearish momentum signal.
- Zero line crossover
- When the MACD line crosses the zero line, a stronger but slower signal than the signal line crossover.
- Divergence
- When price and MACD move in opposite directions at swing extremes, a warning that momentum may be weakening.
- MACD vs RSI
- MACD focuses on trend and momentum shifts and has no fixed 0 to 100 range, while RSI focuses on momentum extremes.
What you will learn
- What MACD is and how its three parts work together
- How the 12, 26 and 9 settings are calculated
- How to read the histogram, signal line and zero line crossovers
- How MACD divergence works and how MACD compares with RSI
- The crossover mistakes to avoid in sideways markets
What Is MACD and What Are Its Three Parts?
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator built from the relationship between two moving averages. Unlike RSI, which is bounded between 0 and 100, MACD has no fixed ceiling or floor — it oscillates around a zero line, which itself carries meaning, as this guide covers shortly.
Every MACD panel is made of three distinct parts working together:
- The MACD Line — the difference between a faster and a slower exponential moving average, reacting quickly to price changes.
- The Signal Line — a smoothed moving average of the MACD line itself, reacting more slowly and acting as a trigger reference.
- The Histogram — vertical bars showing the gap between the MACD line and the signal line, visualising momentum at a glance.
Visualising It: The Three Parts of MACD
The MACD line (gold) and signal line (dark) plotted together, with the histogram below showing the gap between them.
How MACD Is Actually Calculated
The default, most widely used settings are 12, 26 and 9:
- MACD Line = 12-period EMA minus 26-period EMA — the gap between a faster and slower average.
- Signal Line = 9-period EMA of the MACD line itself — a smoothed trigger reference.
- Histogram = MACD Line minus Signal Line — the visual gap between the two.
You don't need to calculate this by hand — every charting platform plots it automatically — but understanding what's actually happening underneath makes every signal in this guide easier to trust and interpret correctly, rather than memorised as an arbitrary rule.
Reading the Histogram — Momentum at a Glance
The histogram is often the most underused part of MACD, even though it's arguably the fastest read available. Because it plots the gap between the MACD line and signal line directly, growing bars mean the gap is widening — momentum accelerating — while shrinking bars, even while still positive, mean momentum is decelerating, often before a crossover even happens.
Shrinking histogram bars, while the MACD line is still above the signal line, are often an earlier warning of weakening momentum than waiting for the actual crossover — by the time the lines cross, some of the move has usually already happened.
Signal Line Crossovers
Visualising It: Bullish and Bearish Signal Line Crossovers
A bullish crossover when the MACD line crosses above the signal line, and a bearish crossover when it crosses below.
This is the most commonly cited MACD signal: when the faster MACD line crosses above the slower signal line, it's read as bullish; crossing below is read as bearish. It's a genuinely useful timing tool, but it's also the fastest and noisiest of MACD's signals, which is exactly why it deserves the caution covered in the mistakes section ahead.
Zero Line Crossovers — A Stronger, Slower Signal
Visualising It: The MACD Line Crossing Zero
A move above zero suggests the shorter average has overtaken the longer one — a broader shift toward bullish momentum.
When the MACD line itself crosses above zero, it means the faster moving average has overtaken the slower one — a broader, slower-forming signal than a signal-line crossover, and generally read as stronger confirmation that the dominant trend has genuinely shifted, not just paused.
MACD Divergence
Just like RSI, MACD can diverge from price — and the read works the same way: price and MACD disagreeing at swing extremes is a warning sign the current move may be running out of steam.
Visualising It: MACD Bullish Divergence
Price makes a lower low while MACD makes a higher low — downward momentum quietly weakening even as price prints a fresh low.
Bearish divergence works the same way in reverse: price makes a higher high while MACD makes a lower high — upward momentum quietly fading even as price prints a fresh high.
Just like RSI divergence, treat MACD divergence as a caution flag worth combining with support/resistance or a confirming candle, never as a standalone entry trigger on its own.
MACD vs RSI: When to Use Which
| Aspect | MACD | RSI |
|---|---|---|
| Core focus | Trend and momentum shifts | Momentum extremes (overbought/oversold) |
| Scale | Unbounded, oscillates around zero | Bounded, 0 to 100 |
| Signal style | Crossovers (signal line, zero line) | Threshold levels (70/30) and divergence |
| Best suited for | Trending markets | Both trending and range-bound reads |
The two aren't competitors — they measure related but genuinely different things, which is exactly why many traders run both side by side rather than treating it as a choice between one or the other.
Combining MACD With Price Action
MACD is derived entirely from price, so — just like every other indicator in this series — it works best as a confirming layer, not a replacement for reading the chart itself. A bullish signal line crossover happening right as price breaks above a known resistance zone carries meaningfully more weight than the identical crossover appearing in the middle of a directionless range.
Common MACD Mistakes
Trading every crossover in a sideways market
MACD whipsaws constantly in range-bound conditions, producing a string of false signal line crossovers.
Ignoring the histogram entirely
Waiting for the full crossover while ignoring shrinking histogram bars, which often warn earlier.
Treating every crossover as equal weight
Not distinguishing a fast, noisy signal line crossover from a slower, stronger zero line crossover.
Trading MACD completely alone
Acting on crossovers or divergence without any support/resistance or trend context to confirm them.
Forgetting MACD is a lagging indicator
Expecting MACD to predict a move, when it's mathematically built from moving averages that always lag price.
No stop-loss on crossover trades
Entering on a crossover without a predefined invalidation point turns a manageable loss into an open-ended one.
Your MACD Reading Checklist
Before acting on any MACD signal, run through this five-point check:
Trend Context
Is the market genuinely trending, or is this a sideways range where crossovers are more likely to whipsaw?
Which Signal Type?
Are you reacting to a fast signal line crossover or a stronger zero line crossover — and are you weighting it accordingly?
Histogram Confirms
Do the histogram bars support the same read, growing or shrinking in the expected direction?
Price Structure Agrees
Does a nearby support/resistance zone or chart pattern support the same signal as MACD?
Defined Risk
Do you know exactly where this signal would be proven wrong, and have you placed a stop-loss there?
Learn the Stock Market with Deepak Kevadia: Boisar, Dahanu, Palghar & Online
This guide is part of the free learning library from Chart Code, founded and mentored by Deepak Kevadia (BSE NISM Certified). Understanding the three parts of MACD is step one; reading crossovers and divergence on live charts with a mentor is step two. Chart Code's trading course is taught in person at Boisar and live online, so students from Boisar, Dahanu and Palghar, and anywhere in India, can join.
- In person: 208, Yash Padma Arcade, Boisar Tarapur Road, Boisar, Palghar, Maharashtra 401501
- Online: live sessions from anywhere in India
- Contact: +91 95121 00588 (call or WhatsApp) · chartcode.in@gmail.com
Explore the trading course · Meet Deepak Kevadia · More free guides