MACD explained: what the 2 lines and the bars really show
MACD looks busy: two lines, a zero line and a row of bars. Underneath, it's one simple idea. Once you see it, you'll know exactly what it can and can't tell you.
The one idea behind MACD
MACD stands for Moving Average Convergence Divergence. Gerald Appel created it in the late 1970s.
The name is long. The idea is short.
MACD measures the gap between a fast average and a slow average of price.
- When the fast average pulls above the slow one, recent prices are rising faster. The gap is positive.
- When the fast one drops below the slow one, recent prices are falling faster. The gap is negative.
Everything else on the MACD panel is built from that gap. If moving averages are new to you, start with moving averages explained.
The 3 parts, one at a time
The default settings are 12, 26, 9. Each number has one job.
| Part | How it's made | What it shows |
|---|---|---|
| MACD line | 12-period EMA minus 26-period EMA | The gap between fast and slow |
| Signal line | 9-period EMA of the MACD line | A smoothed, slower copy of that gap |
| Histogram (the bars) | MACD line minus signal line | Whether the gap is growing or shrinking |
(EMA means exponential moving average: an average where recent candles count more.)
A simple worked example
Say on today's candle:
- The 12-period EMA is 105.
- The 26-period EMA is 102.
MACD line = 105 − 102 = 3. The fast average is 3 points above the slow one.
Now say the signal line (the 9-period average of recent MACD values) is 2.5.
Histogram = 3 − 2.5 = 0.5. A small bar above zero.
If tomorrow the MACD line rises to 3.4 and the signal to 2.7, the bar grows to 0.7. The gap is widening. If instead the MACD line slips to 2.6 and the signal sits at 2.6, the bar shrinks to 0. That's a "cross".
Notice the MACD number is in price points, not a 0–100 scale like RSI. So you can't compare MACD values between a $20 stock and a $500 one.
How traders use MACD
- Signal-line cross. MACD line crosses above the signal line: some read it as upward momentum building. Crossing below: the reverse.
- Zero-line cross. MACD crossing above zero simply means the 12 EMA crossed above the 26 EMA. Below zero, the reverse.
- Histogram shrinking. Bars getting shorter mean the gap is narrowing. The push is slowing, even if price is still moving the same way.
- Divergence. Price makes a new high, but MACD makes a lower high. The push behind the move is weaker. It's a warning, not a timer.
What MACD can't do
Here's the honest part.
- It's late by design. It's built from averages of averages. A signal-line cross is an average (9) of a gap between two averages (12 and 26). By the time it crosses, a lot of the move can be done.
- It whipsaws in sideways markets. When price chops, the lines cross back and forth. Each cross looks like a signal. Many go nowhere.
- It can't predict. It only uses past closing prices.
- Tuning it to fit the past is a trap. You can always find settings like 8/21/5 that fit last year's chart. That's overfitting. It rarely holds on new charts.
A MACD cross tells you what the averages already did. It's a summary of the move, not a forecast of the next one.
Where it fits with our method
We start with the chart's turning points: the last places price turned around.
Higher highs and higher lows mean an uptrend. Lower highs and lower lows mean a downtrend. You can read that straight off the candles, with nothing added. See higher highs and higher lows.
MACD often "confirms" a trend you could already see. That's fine as a second opinion:
- The turning points say "uptrend" and MACD is above zero. They agree.
- The turning points say "uptrend" but the bars are shrinking. Maybe the push is tiring. Watch the next turning point. The chart, not the bars, decides.
When the chart and MACD disagree, the chart wins. A candle body closing past the last turning point is the real change. (A wick poking through doesn't count.)
One clean read beats six indicators.
Common mistakes
- Trading every cross. In a sideways market, that's a lot of small losses in a row.
- Reading MACD before the chart. If you look at the panel first, you'll stop seeing price.
- Comparing MACD values across markets. It's in price points, so a reading of 5 means very different things on different charts.
- Treating divergence as a "sell now". It says the push is weaker. It doesn't say when price turns, or if it will.
- Stacking MACD with RSI and more. They're all built from the same closing prices. Three of them agreeing is often one idea counted three times.
Try it today on TradingView
About 15 minutes.
- Open a daily chart. Add "MACD" from Indicators. Keep 12, 26, 9.
- Mark the last 3 turning points by hand first. Uptrend, downtrend or neither?
- Now look at the MACD panel. Does it agree with your read?
- Find the last 5 signal-line crosses. For each one, note how far price had already moved before the cross.
- Use TradingView bar replay on a sideways stretch and count the crosses as they appear, without peeking ahead.
Step 4 is the eye-opener. Seeing how late a cross arrives is the best way to learn what MACD is really for.
Questions
What do the MACD settings 12, 26, 9 mean?
The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of that MACD line. The bars show the gap between the two lines.
What does it mean when MACD crosses above the signal line?
The gap between the fast and slow averages has started growing faster than its own recent average. Many read it as upward momentum. It often comes after the move has started, and it fails a lot in sideways markets.
What does the MACD histogram show?
Each bar is the MACD line minus the signal line. Taller bars mean the gap is growing; shrinking bars mean the push is slowing.
Is MACD better than RSI?
They measure similar things in different ways. MACD tracks the gap between two averages; RSI compares recent up moves to down moves on a 0–100 scale. Both lag, and neither predicts.
What is the best MACD setting for day trading?
There's no proven best. Many day traders keep 12, 26, 9 because it's the default everyone sees. Changing it to fit past charts usually doesn't carry over to new ones.
Want the next step? We'll walk you through it.
Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.
Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytimeOr see the whole method, step by step:
See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)One chart idea a day, in plain English. Follow along: