MACD (Moving Average Convergence Divergence)
How MACD Works
Created by Gerald Appel in the late 1970s, the MACD is built from three components that work together:
MACD Line: The 12-period EMA minus the 26-period EMA. When the shorter average is above the longer average, the MACD line is positive — meaning short-term momentum is bullish relative to the longer-term trend.
Signal Line: A 9-period EMA of the MACD line itself. This acts as a trigger for buy and sell signals.
Histogram: The visual difference between the MACD line and the signal line. When the histogram is growing, momentum is accelerating. When it’s shrinking, momentum is fading — even if the trend hasn’t reversed yet.
Signal Line = 9-period EMA of the MACD Line
Histogram = MACD Line − Signal Line
MACD Signals
| Signal | What Happens | Interpretation |
|---|---|---|
| Bullish crossover | MACD line crosses above the signal line | Momentum shifting upward — potential buy signal |
| Bearish crossover | MACD line crosses below the signal line | Momentum shifting downward — potential sell signal |
| Zero-line crossover (up) | MACD line crosses above zero | Short-term EMA is now above long-term EMA — trend is turning bullish |
| Zero-line crossover (down) | MACD line crosses below zero | Short-term EMA has fallen below long-term EMA — trend is turning bearish |
| Histogram expansion | Bars growing taller (positive or negative) | Momentum is accelerating in the current direction |
| Histogram contraction | Bars shrinking toward zero | Momentum is fading — watch for a potential crossover |
MACD Divergence
Like the RSI, the MACD can produce divergence signals that warn of weakening trends before price reverses:
Bullish divergence: Price makes a lower low while the MACD makes a higher low. Selling pressure is exhausting itself — the downtrend may be losing steam.
Bearish divergence: Price makes a higher high while the MACD makes a lower high. Buying momentum is fading even as price pushes to new highs — a warning that the rally is weakening.
Divergence signals are most reliable at extremes and when confirmed by a subsequent crossover or a bounce off a key support or resistance level.
MACD vs. RSI
Both are momentum indicators, but they measure different things. The RSI is an oscillator bounded between 0 and 100 that flags overbought/oversold conditions. The MACD is unbounded and focuses on the relationship between two moving averages — it’s better at identifying trend direction and momentum shifts than pinpointing extremes.
Many traders use both together: the MACD to confirm trend direction and the RSI to time entries within that trend. When both align — say, a bullish MACD crossover while the RSI bounces off 30 — the signal carries more weight.
Common MACD Settings
| Setting | Parameters (Fast, Slow, Signal) | Use Case |
|---|---|---|
| Standard | 12, 26, 9 | Default for most charting platforms; good all-purpose setting |
| Short-term | 8, 17, 9 | More sensitive; suited for day trading and short-term swing trades |
| Long-term | 19, 39, 9 | Smoother, fewer false signals; better for weekly charts and position trades |
Limitations
The MACD is a lagging indicator — it’s derived from moving averages, so it inherently reacts to price rather than predicting it. In sideways, range-bound markets, it generates frequent false crossovers that whipsaw traders. It also lacks defined overbought/oversold boundaries, making it less useful for identifying extremes compared to the RSI.
Key Takeaways
- MACD tracks the gap between the 12-period and 26-period EMAs to reveal trend direction and momentum.
- The three components — MACD line, signal line, and histogram — each provide distinct information.
- Bullish/bearish crossovers and zero-line crosses are the primary trading signals.
- MACD divergence warns of weakening trends before price reverses.
- Works best in trending markets; generates false signals in choppy, range-bound conditions.
Frequently Asked Questions
What does it mean when the MACD is above zero?
When the MACD line is above zero, the 12-period EMA is above the 26-period EMA — short-term momentum is outpacing the longer-term trend. This is generally considered a bullish signal. Below zero indicates the opposite: the shorter-term average has fallen below the longer-term one.
Is MACD good for beginners?
Yes. The MACD is one of the most intuitive technical indicators because its signals — crossovers and histogram direction — are visually clear. Start with the standard 12/26/9 settings and focus on signal-line crossovers combined with volume confirmation before adding more complexity.
Can MACD be used on any time frame?
Absolutely. Day traders apply it to 5-minute or 15-minute charts. Swing traders use daily charts. Long-term investors analyze weekly charts. The standard 12/26/9 parameters work across time frames, though shorter-term traders often tighten the settings for faster signals.