What you will learn

Learn with charts how the MACD line, signal line and histogram are calculated and what to watch out for.

MACD examples — lower paneSample data · not a real stock

What to look forAs the trend turns from down to up, follow the order: the histogram goes from negative to positive, then the MACD line moves above zero.

CautionMACD goes through moving averages twice, so it reacts late.

1260 bars · 2018-11-12 – 2023-09-08
On price
Lower panes
Auto

Sample (synthetic) data: not a real stock or real prices, but prices generated to explain the idea. Drag the chart to move through time and use the wheel or two fingers to zoom.

Concept

MACD (Moving Average Convergence Divergence), devised by Gerald Appel, measures — as its name says — how two moving averages come together (converge) and move apart (diverge). Three things are drawn together in the lower pane.

How it is calculated

MACDₜ = EMA(12)ₜ − EMA(26)ₜ Signalₜ = EMA(9) of MACDₜ Histogramₜ = MACDₜ − Signalₜ

Cautions when reading it

Chart shapes and indicators summarize past prices. The same shape is sometimes right and sometimes wrong depending on the market, and this page does not tell you when to buy or sell any stock. To practice yourself, try the chart lab or mock trading.

Quick quiz 3 questions

  1. How is the MACD line calculated?
  2. What does the MACD histogram show as bars?
  3. What does it mean when MACD is above zero?
0 / 3 answered

All learning steps · Glossary · Stock textbook (Korean)