Reading Charts. Lesson 11 of 12 · 11 min read
MACD
Learn how MACD is built from two exponential moving averages, how to read its crossovers, zero line and histogram in the original illustrations, and why every signal needs price to agree.
Written by the StockEducation Editorial Team · Reviewed by Associate Professor Charles Lo, CPA, PhD · Updated · How we check lessons
What is MACD?
MACD is a momentum indicator: the 12 day exponential moving average minus the 26 day, plotted with a 9 day signal line and a histogram of the gap between them. A cross above the signal line is often read as bullish and a cross below as bearish, with zero line crosses as slower confirmation. Check every signal against price, support, resistance and volume.
Key takeaways
- MACD is the 12 day EMA minus the 26 day EMA; the signal line is a 9 day EMA of MACD, and the histogram is the gap between them.
- A cross above the signal line is often read as bullish, a cross below as bearish; zero line crosses confirm more slowly.
- Shrinking histogram bars can warn that momentum is fading before the lines cross.
- Crossovers lag price and can repeatedly reverse in a sideways market.
- Keep the default 12, 26, 9 settings and confirm every signal with price.

Start the lessonTake the quick checkRead the FAQSee the sources
Part 1 of 6 · Three components
What is MACD, and how is it built?
MACD stands for moving average convergence divergence.1 Gerald Appel developed it in the late 1970s to track changes in a trend's momentum. The idea is simple: MACD shows when momentum is turning from weak to strong, or from strong to weak.
It is built in three steps from closing prices.2
- MACD line. The 12 day exponential moving average (EMA) minus the 26 day EMA. An EMA is an average that gives more weight to recent prices.
- Signal line. A 9 day EMA of the MACD line itself, a smoother, slower copy of it.
- Histogram. The MACD line minus the signal line, drawn as bars. Thomas Aspray added it later.3
When the fast 12 day average pulls away from the slow 26 day average, the lines diverge and MACD grows. When they come back together, they converge and MACD shrinks toward zero. That is where the name comes from.

MACD is the gap between a fast and a slow average, so it grows as they diverge and shrinks as they converge.
Part 2 of 6 · Crossover basics
What does a MACD crossover tell you?
The signals most traders learn first are crossovers. When the MACD line crosses above the signal line, short term momentum is improving compared with the smoother line, and many traders read it as bullish. When it crosses below, momentum is weakening, and it is read as bearish.
| MACD signal | What it means | Common reading |
|---|---|---|
| MACD crosses above signal | Momentum may be turning up. | Often read as bullish |
| MACD crosses below signal | Momentum may be turning down. | Often read as bearish |
| MACD crosses above zero | Momentum shifts into bullish territory. | Bullish confirmation |
| MACD crosses below zero | Momentum shifts into bearish territory. | Bearish confirmation |
The bullish crossover
A bullish crossover carries more weight when price agrees: it is bouncing from support, breaking above resistance or making a higher low. The weak version is MACD crossing up while price is still stuck below resistance or in a clear downtrend.

The bearish crossover
A bearish crossover is a stronger warning when price is rejecting resistance, breaking below support or making a lower high. Many traders read it as a sign that a rally is losing steam, especially if the histogram is also weakening.

Read a MACD cross as a change in momentum, then check price, trend and volume before acting.
Part 3 of 6 · Timing and false signals
Why can MACD signals lag or fail?
MACD is calculated from exponential moving averages of past closing prices. A crossover can confirm improving or weakening momentum only after the underlying prices have changed.
In a clear trend, a signal-line cross followed by price confirmation can provide useful context. In a sideways market, the two lines can cross repeatedly without a lasting move. These false starts are called whipsaws.
Shorter settings respond more quickly but can produce more noise; slower settings respond later. Keep settings consistent when comparing charts. Trading costs and taxes affect the outcome of acting repeatedly on signals.
Expect lag and false starts, and check MACD against price and trend.
Part 4 of 6 · Zero line and histogram
How do the zero line and the histogram help?
The zero line sits in the middle of the MACD panel. When MACD is above zero, the 12 day average is above the 26 day, and momentum is generally bullish. When MACD is below zero, it is generally bearish.2 A cross of zero is slower than a signal line cross, but it gives you a cleaner trend filter.
The histogram is the gap between the MACD line and the signal line. Green bars usually mean MACD is above the signal line; red bars mean it is below. Because the bars shrink as the lines converge, they often warn of a crossover before it happens.
When negative histogram bars shrink toward zero, MACD is approaching its signal line from below. This can happen before a bullish crossover, but it does not identify a guaranteed price bottom.
| Histogram | What it suggests |
|---|---|
| Green bars growing | Buyers are gaining momentum. |
| Green bars shrinking | Upside momentum may be fading. |
| Red bars growing | Sellers are gaining momentum. |
| Red bars shrinking | Downside pressure may be easing. |

Shrinking histogram bars mean the lines are converging, so they often warn of a crossover before it happens.
Part 5 of 6 · Divergence
What is MACD divergence?
Divergence is a more advanced signal that many traders watch as a warning. It happens when price and MACD point in different directions.
Bullish divergence is when price makes a lower low but MACD makes a higher low. Selling pressure may be weakening even though price is still falling. Bearish divergence is when price makes a higher high but MACD makes a lower high. The rally may be losing momentum even while price still looks strong.
Divergence can last a long time before price turns, and sometimes price never does. So treat it as a reason to watch more closely, then look for price to confirm with a bounce from support or a break of a recent low.

Treat divergence as an early warning that momentum disagrees with price, and wait for price to confirm it.
Part 6 of 6 · Settings and confirmation
Which settings should you use, and how do you confirm a signal?
The typical MACD settings are 12, 26 and 9. Keeping them makes your chart comparable with most guides; changing them changes both the values and the timing of signals.1 Many traders also filter MACD with the larger trend, giving bullish crossovers more weight in an uptrend and bearish ones more weight in a downtrend.
| Bullish reading | What to look for | Best confirmation |
|---|---|---|
| Bullish crossover | MACD crosses above the signal line. | Support bounce or breakout |
| Zero line cross up | MACD crosses above zero. | Price above a key moving average |
| Histogram turns green | Red bars shrink, then the first green bar appears. | Price starts making higher lows |
| Bullish divergence | Price makes a lower low, MACD a higher low. | Price turns up from support |
Bearish readings
- Bearish crossover. MACD crosses below the signal line.
- Zero line cross down. MACD crosses below zero.
- Histogram fades. Green bars shrink during a rally, warning that momentum is weakening.
- Bearish divergence. Price makes a higher high, MACD a lower high.
- Bearish cross near resistance. Momentum turns down while price rejects a known ceiling.
A common sequence is shrinking negative histogram bars, a signal-line cross and then a zero-line cross. Price and trend must still confirm the interpretation, and the sequence can fail. The sell version is the mirror image: green bars shrink, MACD crosses below the signal and price fails at resistance. In both versions MACD and price agree before anyone acts.
Keep the default 12, 26, 9 settings and pair every MACD clue with price evidence.
Quick check
Quick quiz: test what you just read
Pick an answer to see why it is right. 5 questions, no account needed.
1. What is the MACD line?
2. What does the MACD histogram display?
3. If negative histogram bars become smaller while price is still falling, what can that suggest?
4. What does a MACD cross above zero mean?
5. What is a whipsaw in a sideways market?
Questions people ask
MACD FAQ
Who created MACD?
What is the difference between MACD and RSI?
MACD is built from moving averages, so it follows trends and has no fixed upper or lower limit. RSI compares the size of recent gains and losses on a fixed 0 to 100 scale, with set zones for overbought and oversold readings. MACD is often used for trend direction and momentum shifts, RSI for moves that look stretched, and many traders use both.
Why does MACD give false signals?
MACD is calculated from past prices, so its signals arrive after a move has started. In sideways, choppy markets the two lines cross back and forth, producing whipsaws that reverse quickly.2 That is why crossovers work better as prompts to check price, trend, support and resistance than as automatic instructions.
Should I change the settings for faster signals?
Not at first. Faster settings, such as shorter averages, cross more often and so give more false signals. Learn how the default 12, 26, 9 version behaves on the stocks you follow before you experiment.
You finished this lesson.
You now have the main ideas from this lesson. Next, practice where mistakes cost nothing: a free account saves your progress and unlocks the practice simulator with virtual money.
Free, no card. Lessons stay free to read without an account.
Your notes on one card, and what comes next
- Step 1 · DoneMACD
See your notes on one card
- MACD is the 12 day EMA minus the 26 day EMA; the signal line is a 9 day EMA of MACD, and the histogram is the gap between them.
- A cross above the signal line is often read as bullish, a cross below as bearish; zero line crosses confirm more slowly.
- Shrinking histogram bars can warn that momentum is fading before the lines cross.
- Crossovers lag price and can repeatedly reverse in a sideways market.
- Keep the default 12, 26, 9 settings and confirm every signal with price.
- 2Step 2 · NowSave your progress with a free account
Keep your course progress and practice on real U.S. stocks with virtual cash.
Create your free account No card needed. Lessons stay free to read. - 3Step 3Follow the learning pathThe learning pathFree
Learn the rest in the right order
Ten modules of lessons, videos, tools and quizzes, ordered so each step builds on the last, from market basics to company analysis and risk.
Start the learning path
Want the full sequence? See the course outline →
Sources and assumptions
- StockCharts ChartSchool: MACD (Moving Average Convergence/Divergence Oscillator)
- Fidelity: MACD
- chartschool.stockcharts.com: Macd histogram
- FRED: S&P 500 (SP500), daily close
- FINRA: market timing and buy and hold strategies
- FINRA: Stocks
- SEC Investor.gov: Introduction to Investing
Use these references to check the definitions, methods and risks discussed in this guide. Examples are for learning and do not predict investment results.
StockEducation provides general education, not personal financial, tax or legal advice. Companies and funds named here are teaching examples only. Nothing here recommends buying or selling any security. Investing involves risk, including the loss of money you invest.
