The MACD looks complicated: two lines, some bars and a zero line, all in one panel. But it's built entirely from something you already know, exponential moving averages. By the end of this lesson, you'll know what each part is and how it's worked out.
1 of 7
What you'll learn
- Build the MACD line. Take the 26-candle EMA away from the 12-candle EMA.
- Add the signal line. It is a 9-candle EMA of the MACD line.
- Read the histogram. Tall bars show the lines far apart. Short bars show them close.
- Compare with its own past. It is in price points with no top or bottom.
- Check it by hand. The MACD line should equal the 12 EMA minus the 26 EMA.
Exercise
- On a 5-minute MES1! chart, on TradingView or any platform, add a 12 and a 26 EMA on the price and the MACD below.
- Point at one candle and check that the MACD line equals the 12 minus the 26.
Quick check
1. What is the MACD line?
2. The MACD line is at 3 and the signal line at 5. What is the histogram?
3. Why can't you say a MACD of 6 is high?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
The MACD line is a 12-candle EMA minus a 26-candle EMA; the signal line is a 9-candle EMA of the MACD line; the histogram is the MACD line minus the signal line.
- Moving average convergence divergence: the gap between a faster and a slower exponential moving average of price.More in the glossary line = 12-candle A moving average that gives the newest closes more weight, so it reacts sooner than a simple one of the same length.More in the glossary − 26-candle EMA of the closes. Above zero, the fast average is above the slow one.
- Signal line = a 9-candle EMA of the MACD line.
- Histogram = MACD line − signal line. Tall bars: the two lines are far apart. Shrinking bars: they're coming together.
- It's measured in price points, with no top or bottom, so compare it with the same market's own past.
- More: MACD indicator.
Worked example
Made-up numbersOne candle's MACD
Made-up numbers · EMA 12 at 5,030 · EMA 26 at 5,024 · signal line 4.5
- MACD line: 5,030 − 5,024 = +6
- Histogram: 6 − 4.5 = +1.5
The fast average is 6 points above the slow one, and the gap is wider than its recent average.
Your turn
DrillEMA 12: 5,041 · EMA 26: 5,035 · Signal line: 4
Trading is risky. You can lose money. This lesson explains how trading works. It isn't advice.