MACD Indicator Explained: Trend and Momentum in One Tool
The MACD combines trend-following and momentum in a single indicator. Learn the MACD formula, the signal line, and what the histogram really shows.
MACD Indicator Explained: Trend and Momentum in One Tool
Most indicators do one thing. The MACD does two: it follows the trend and measures momentum at the same time.
The Moving Average Convergence Divergence (MACD), created by Gerald Appel in the late 1970s, is a trend-following momentum indicator. It shows the relationship between two EMAs and turns that gap into a momentum reading.
The MACD components
The default MACD uses three numbers: 12, 26, 9.
- MACD line = 12 EMA − 26 EMA
- Signal line = 9 EMA of the MACD line
- Histogram = MACD line − Signal line
When the fast EMA is above the slow EMA, the MACD line is positive (uptrend). When it's below, the MACD line is negative (downtrend). The histogram simply visualises how fast that gap is widening or narrowing.
The math, made simple
MACD line = EMA(12) − EMA(26)
Signal line = EMA(9) of the MACD line
Histogram = MACD line − Signal line
Worked example:
| Value | EMA(12) | EMA(26) | MACD line | Signal | Histogram |
|---|---|---|---|---|---|
| Day A | 102.0 | 101.0 | +1.0 | +0.6 | +0.4 |
| Day B | 103.0 | 101.4 | +1.6 | +0.9 | +0.7 |
The histogram grows from +0.4 to +0.7 — momentum is accelerating to the upside.
How to read MACD
| Signal | What it means | Action |
|---|---|---|
| MACD above zero | Fast EMA above slow EMA | Bullish trend |
| MACD below zero | Fast EMA below slow EMA | Bearish trend |
| MACD crosses above signal | Momentum turning up | Buy / add long |
| MACD crosses below signal | Momentum turning down | Sell / short |
| Histogram shrinking | Momentum fading | Tighten stops |
Two ways to use it
- Trend filter — is the MACD line above or below zero? Trade only longs above zero, shorts below.
- Momentum trigger — wait for the MACD line to cross the signal line in the trend's direction for entries.
The zero-line cross
A cross of the zero line is a slower but more reliable signal than the signal-line cross:
- MACD crosses above 0 → long-term momentum turned bullish
- MACD crosses below 0 → long-term momentum turned bearish
Common mistakes
- Trading every signal-line cross — in a ranging market they whipsaw constantly
- Ignoring the zero line — a bearish cross above zero is weak; a bullish cross below zero is weak
- Using MACD alone — pair it with the RSI or price structure
- Wrong timeframe — MACD on a 1-minute chart is mostly noise
How to start
- Add the default 12/26/9 MACD to a 1-hour or daily chart
- Use the zero line as the trend filter
- Use the signal-line cross as the entry trigger (only in the zero-line direction)
- Always define risk first — the stop loss calculator and position size calculator keep the math honest
Summary
The MACD gives you trend (the zero line) and momentum (the signal-line cross and histogram) in one view. Filter by the zero line, trigger on the cross, and confirm with another indicator. For three concrete ways to trade it, see MACD trading strategies.