Moving Average Convergence Divergence (MACD)
You’ll be able to interpret MACD crossovers and the histogram.
- 8 animated cards
- A worked example, step by step
- A common myth, busted
Part of Module 2.6 · Technical Analysis II: Indicators · Level 2 · Core Trading Skills · See the full course
What is MACD?
Moving Average Convergence Divergence: an indicator built from a fast and a slow moving average (often 12 and 26 periods) to show momentum shifts.
MACD · GlossaryKey takeaway
- Now you can read a MACD panel.
- The MACD line is the 12-period exponential average minus the 26-period one.
- Above zero, the short average leads.
- The signal line is its slower average.
- Growing bars mean speeding up, and shrinking bars mean slowing down.
Lesson notesRead the whole lesson as text
The lesson in full
Two cars drive down the same road. The fast one is ahead. If the gap between them grows, the fast car is speeding up. If the gap shrinks, it's slowing down. One popular indicator reads charts the same way, with two moving averages as the cars. By the end of this lesson, you'll be able to read it at a glance.
Remember the exponential moving average from the last lesson? A short one follows recent prices closely. A long one moves slowly. When prices rise faster, the gap between the short and long average grows. When the rise slows, the gap shrinks. The speed of a move is called momentum. So the gap between two averages measures momentum.
The usual pair is a 12-period and a 26-period exponential moving average.
- Say the 12-period average is 105.
- The 26-period average is 102.
- Gap: 105 − 102 = 3.
This gap is the MACD line. Above zero, the short average is above the long one. Below zero, it's under it. Gerald Appel created MACD in the late 1970s.
MACD adds a slower second line: a 9-period exponential average of the MACD line. It's called the signal line. When the MACD line crosses above it, momentum is turning up. When it crosses below, momentum is turning down. Many traders watch these crossovers. They describe a change in speed. They don't promise a direction.
Most apps also draw bars around a zero line. Each bar is the gap between the MACD line and the signal line. These bars are called the histogram.
- MACD line 3, signal line 2: bar = 3 − 2 = 1.
- Next day, MACD 4, signal 2.5: bar = 4 − 2.5 = 1.5.
Growing bars mean the move is speeding up. Shrinking bars mean it's slowing.
Remember the sideways range from Module 1.8? There, MACD struggles. From March 2015 to October 2016, EUR/USD moved sideways, mostly between 1.05 and 1.15. It started and ended near 1.09. On a weekly chart, the MACD line crossed its signal line about a dozen times. Each cross looked like a signal. The price went nowhere.
- Common mistake
Myth: “A MACD crossover tells you to buy.” Truth: MACD is built from moving averages, so it reacts late. By the time the lines cross, part of the move is already over. In sideways markets, crossovers flip again and again. A crossover is one clue about speed. The trend and the price come first.
- Key takeaway
Now you can read a MACD panel. The MACD line is the 12-period exponential average minus the 26-period one. Above zero, the short average leads. The signal line is its slower average. Growing bars mean speeding up, and shrinking bars mean slowing down. Today, add MACD to a demo chart. Is it above zero, and are the bars growing or shrinking?
Quick check
- On Lee’s chart, the 12-day exponential average is 48 and the 26-day one is 50. What is the MACD line, and what does it say?
- −2, so the short average is below the long one
- +2, so the short average is above the long one
- −2, so the price will keep falling from here
- MACD is above zero, but the histogram bars have shrunk for five days in a row. What is the best reading?
- The rise is still there, but it’s slowing
- The rise is speeding up more and more
- A new downtrend has already started
- Lina sees the MACD line cross above its signal line in a sideways market. She plans to buy with most of her money. What should she know?
- In sideways markets, crossovers often flip back
- Nothing, a crossover is a clear sign to buy
- Crossovers fail only in very strong trends
- Max builds MACD from two simple moving averages instead of exponential ones. What changes?
- It turns later, as recent closes count less
- It turns sooner, as every close counts the same
- Nothing, since both kinds of average are equal