
MACD Explained: The Line, the Signal and the Histogram
Picture two runners on a track. One is fast and jumpy. The other is slow and steady. When the fast runner pulls ahead, something is picking up speed. When the fast runner drifts back toward the slow one, the push is fading. MACD draws that race on a stock chart.
The name is a mouthful (Moving Average Convergence Divergence), but the idea is simple. The MACD panel has three parts: the line, the signal line and the histogram. Below: how to read each one, the trap to watch for, how to try it in Rapunzl, and a 15-minute activity for teachers.
One rule first. MACD is a research clue, not a prediction and not advice. It describes how momentum has been behaving. It does not say what a stock will do next.
What MACD shows
MACD shows whether short-term momentum is pulling ahead of, or falling behind, the longer-term trend. Rapunzl's indicator library describes it as one panel that bundles trend and momentum into a line, a signal line and a histogram.
If you have read about moving averages, you already have the building blocks. A moving average smooths a stock's recent prices into one line. MACD uses two exponential moving averages (EMAs), which give recent days more weight than old ones.
How the three parts are built
Each part comes from the one before it.
- The MACD line is a fast EMA minus a slow EMA. In Rapunzl's Stock Scanner the line uses the standard 12-day and 26-day averages. When the fast average sits well above the slow one, the line is high. When the two are close, the line is near zero.
- The signal line is a smoothed copy of the MACD line. By default it is the 9-day EMA of the MACD line, so it reacts more slowly.
- The histogram is the gap between the two: MACD line minus signal line. Above zero, the MACD line is on top. Below zero, the signal line is on top.
Think of the signal line as the MACD line's shadow, always a step behind. The histogram measures how far ahead of its shadow the line has run.
How to read the panel
Four readings cover most of what a beginner needs.
| What you see | What it suggests |
|---|---|
| MACD line crosses above the signal line | Momentum is turning up |
| MACD line crosses below the signal line | Momentum is turning down |
| Histogram bars shrink toward zero | The current move is losing steam |
| MACD line crosses the zero line | The fast and slow averages have swapped places |
The histogram tells the timing story. Bars that grow taller above zero mean the MACD line is pulling further from its signal line. Bars that stay above zero but get shorter mean the gap is closing, even though the line is still on top. Because the bars shrink as the gap closes, they can show the push fading before the crossover itself.
Here is a made-up example, and every figure in it is an illustration, not real market data. Suppose on Monday the MACD line is 0.40 and the signal line is 0.25, so the histogram is 0.15. On Tuesday the MACD line slips to 0.34 while the signal line is 0.27, and the histogram is 0.07. The line is still above its signal, but the gap has fallen by more than half. A student who only watched for crossovers would notice nothing yet. A student watching the bars would see the push fading.
The trap: crossovers fire all the time
MACD is built from moving averages, so it lags. By the time a cross appears, the move it describes has already started. In a sideways market the problem gets worse, because the two lines keep weaving across each other and every weave looks like news.
Rapunzl's library says it directly: MACD fires many crossovers in sideways markets and works best alongside a read on the trend. The scanner idea below carries the same warning, that MACD crosses happen often and many fizzle.
So the question to teach is not "Did the lines cross?" It is "What else agrees?" Is the stock above its long-term average? Did the cross follow a calm stretch or a choppy one? Does RSI tell a similar story? The RSI guide in this series shows how to read that second opinion, and the post on golden crosses and death crosses covers a slower crossover built from simple averages.
For a wider look at introducing chart reading without turning it into guesswork, see teaching technical analysis to students. This post stays on one indicator.
A Stock Scanner setup to try
Rapunzl's Stock Scanner (see the Stock Scanner page, or open it in Rapunzl Web) lets students filter a long list of stocks down to a short one using plain-language conditions. If this is your first time with the idea, the walkthrough on how to use a stock screener covers the basics.
For MACD, start with the ready-made idea "MACD turning up in an uptrend". It includes company stocks that:
- are worth $2 billion or more,
- trade above their 200-day average, and
- had a MACD cross up in the last 3 days.
Results are sorted by company size. The idea highlights two things on each row, the MACD cross and the price compared with the 200-day average, so students can see why each stock appeared.
The pairing is what to teach. The cross says momentum may be turning up. The 200-day condition checks that the longer-term trend already leans the same way. One clue backed by another is stronger evidence than either alone, though still not a promise.
To go further, open the filter editor and look for these fields:
- MACD line (the 12-day EMA minus the 26-day EMA).
- MACD histogram (the line minus its signal; above 0 means momentum is building).
- MACD crosses its signal, which sits in one picker row. Choose a direction, "Crosses above" or "Crosses below", and how many trading sessions to look back.
To extend it, switch the direction to "Crosses below" and compare the two lists. Then ask what the downward list says about stocks that were gaining a few weeks ago.
The same stock on a customized chart
Pick any stock from the results and open its chart. Then use the chart customization button to add a study.
- Choose a chart type with the Customize Chart button (it reads Edit Indicators once a study is on the chart). Candlestick, OHLC and Line all work with MACD, because MACD uses only closing prices.
- On the Chart Indicators tab, open Basic Indicators and add MACD. It is one of the basic studies, so it is available without Rapunzl Premium.
- Keep the default settings: fast 12, slow 26, signal 9. These match what the scanner uses, so the cross students saw in the list should show up on the chart.
- If you change a number, use the study's Update button to apply it.
MACD opens in its own panel under the price chart, with a guide line at zero. The MACD line and the signal line are drawn as two lines, and the histogram is drawn as bars. Bars above zero mean the MACD line is above its signal. Bars below zero mean the reverse.
Build two reading habits. First, find the most recent crossover and ask what the price did over the next several days, including the times it went nowhere. Second, watch the bars before the cross, not only the cross. Students who get stuck can use the Ask the AI Tutor option on the study.
A 15-minute classroom activity
Run this as a "Prove it, then doubt it" exercise in pairs. Each pair needs a device with the Stock Scanner open. If devices are scarce, use the practice chart in the scanner's MACD learning sheet. Its price history is made up and seeded for teaching, so students should treat it as an illustration, not real data.
- Set up (3 minutes). Each pair opens "MACD turning up in an uptrend" and picks one stock from the list.
- Read (6 minutes). Pairs add MACD to that stock's chart with the default settings. They write down the date of the most recent cross, whether the histogram bars were growing or shrinking just before it, and what the price did afterward.
- Doubt (4 minutes). Each pair writes one sentence that begins "This cross could be misleading because..." and names at least one other clue, such as the 200-day average or how choppy the price has been.
- Share (2 minutes). Two or three pairs read their doubt sentence aloud. Listen for answers that name a second source of evidence.
Collect the sentences as an exit ticket. A pair that can explain why a cross might fail understands the indicator better than a pair that can only spot one. Remind students that a stock on the list is a place to start asking questions. It is never a pick.
Frequently Asked
Questions
MACD stands for Moving Average Convergence Divergence. It compares a fast exponential moving average with a slow one to show whether momentum is pulling ahead of, or falling behind, the longer-term trend.
The standard settings are 12, 26 and 9: a 12-day fast average, a 26-day slow average and a 9-day signal line. Rapunzl's charts open MACD with those defaults.
The histogram is the MACD line minus its signal line. Above zero, the MACD line is on top; bars that shrink toward zero show the gap closing.
No. MACD is built from moving averages, so it lags, and it fires many crossovers in sideways markets. Rapunzl's library recommends using it alongside a read on the trend, not alone.
Yes. The ready-made idea MACD turning up in an uptrend lists company stocks worth $2B or more that are above their 200-day average and had a MACD cross up in the last 3 days. A "MACD crosses its signal" filter lets you build your own.
Bring MACD into your classroom
MACD rewards slow reading: three parts, one panel and a built-in reason for doubt. Request a demo to see the curriculum modules, the simulator and the educator tools that sit alongside the Stock Scanner.
Families can read about Rapunzl at home on the parents page.
By Nate Thomas, School Partnerships Lead at Rapunzl.
Get the free Stock Market teaching pack
Slide deck + 2 ready-to-teach worksheets — Stocks in Everyday Life and Choose a Stock — plus both answer keys. Free.











