MACD (Moving Average Convergence Divergence), created by Gerald Appel, combines trend and momentum in one indicator.
The three components
| Component | Calculation | What it shows |
|---|---|---|
| MACD line | 12 EMA − 26 EMA | Momentum and direction |
| Signal line | 9 EMA of the MACD line | Smoothed trigger line |
| Histogram | MACD line − signal line | Acceleration of momentum |
How to use MACD
Signal line crossovers
A bullish signal occurs when the MACD line crosses above the signal line; bearish when it crosses below. Take crossovers only in the direction of the trend — for example, only bullish crossovers when price is above the 200-period moving average.
Zero-line tests
The MACD line above zero means the 12 EMA is above the 26 EMA — an uptrend. In a strong trend, MACD often pulls back to the zero line and turns up again, offering a continuation entry.
Histogram divergence
When price makes a new high but the histogram peaks lower, momentum is fading. This is often an early warning to tighten stops rather than an immediate reversal signal.
A worked calculation
Suppose on EUR/USD the 12-period EMA is 1.0875 and the 26-period EMA is 1.0860.
- MACD line = 1.0875 − 1.0860 = 0.0015
- If the 9-period EMA of the MACD line (the signal line) is 0.0010,
- the histogram = 0.0015 − 0.0010 = 0.0005 — positive, so momentum is to the upside.
Because MACD is measured in price units, values are not comparable across instruments. Compare a market only with its own history.
Settings
| Settings | Character | Notes |
|---|---|---|
| 12, 26, 9 | Standard | The default on almost every platform |
| 8, 17, 9 | Faster | More signals, more noise |
| 5, 35, 5 | Wider spread | Emphasizes longer swings with a quick trigger |
The zero-line pullback strategy
This setup uses MACD to join an existing trend rather than catch a reversal.
- Trend: price above the 200-period moving average and the MACD line above zero.
- Pullback: the MACD line falls back toward the zero line without crossing far below it.
- Trigger: the histogram turns positive again (the MACD line crosses back above the signal line).
- Stop: below the pullback’s swing low.
- Target: 2R, then trail the rest under higher lows.
Example. A stock trading above its 200-day average pulls back for a week; MACD dips to just above zero. The histogram flips positive and the stock is bought at $142.30. The pullback low is $138.90, so the risk is $3.40 per share. The 2R target is $142.30 + $6.80 = $149.10. Risking $300, the position is 88 shares ($299.20).
Common mistakes
- Trading every crossover in a sideways market.
- Treating divergence as an entry. Divergence warns; price structure confirms.
- Comparing MACD values across markets. A MACD of 2.5 on a stock and 0.0015 on EUR/USD are not comparable.
Limitations
MACD is built from moving averages, so it lags. In choppy, sideways markets the lines cross constantly. Pair it with a trend filter and clear price levels.
Frequently asked questions
What are the standard MACD settings?
12, 26, 9 — a 12-period and 26-period exponential moving average, with a 9-period EMA of the MACD line as the signal line.
Is a MACD crossover a good entry signal?
Crossovers alone generate many false signals in ranging markets. They work better in the direction of the higher-timeframe trend or combined with support and resistance.
What does the MACD histogram show?
The histogram is the gap between the MACD line and the signal line. Growing bars mean momentum is accelerating in that direction; shrinking bars mean it is slowing, often before a crossover happens.
What timeframe is best for MACD?
MACD works on any timeframe, but its signals are more reliable on the 1-hour chart and above. On very short timeframes the lag and frequent crossovers reduce its value.
Should I use MACD or RSI?
They answer different questions. MACD is a trend-and-momentum tool built from moving averages; RSI measures the speed of recent gains and losses on a fixed 0–100 scale. Many traders use MACD for direction and RSI for timing.