What is MACD?
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs) of a stock's price. Developed by Gerald Appel in the 1970s, it remains one of the most widely used technical analysis tools today.
MACD appears on charts as three components:
- MACD Line: The difference between the 12-period EMA and the 26-period EMA
- Signal Line: A 9-period EMA of the MACD line
- Histogram: The difference between the MACD line and the Signal line
How MACD is calculated
MACD Line = 12-period EMA − 26-period EMA
Signal Line = 9-period EMA of MACD Line
Histogram = MACD Line − Signal Line
When the 12-period EMA is above the 26-period EMA, the MACD line is positive (bullish momentum). When it's below, the MACD line is negative (bearish momentum). The further the MACD line is from zero, the stronger the momentum in either direction.
Reading MACD crossovers
The most common MACD signal is the crossover — when the MACD line crosses the signal line:
- Bullish crossover: MACD line crosses above the signal line. Indicates momentum is shifting upward. Many traders use this as a buy trigger.
- Bearish crossover: MACD line crosses below the signal line. Indicates momentum is shifting downward — potential sell signal.
Crossovers that happen well above or below the zero line are considered stronger signals than crossovers that happen near zero.
The MACD histogram
The histogram visualizes the gap between the MACD line and the signal line. When the bars are growing taller (in either direction), momentum is accelerating. When they're shrinking, momentum is fading.
Many traders watch for the histogram to start shrinking before a crossover happens — this gives an early warning that a trend reversal may be coming before the crossover is confirmed.
Zero line crossovers
A second type of MACD signal is the zero line crossover:
- MACD crossing above zero: The 12-period EMA has crossed above the 26-period EMA — a longer-term bullish signal.
- MACD crossing below zero: The 12-period EMA has crossed below the 26-period EMA — a longer-term bearish signal.
Zero line crossovers are slower but more reliable than signal line crossovers. They confirm that the trend has changed, not just that momentum has shifted temporarily.
MACD divergence
Like RSI, MACD divergence is one of its most powerful signals:
Bullish divergence: Price makes a new low, but the MACD histogram or MACD line makes a higher low. Selling pressure is fading even as price falls — potential reversal ahead.
Bearish divergence: Price makes a new high, but MACD makes a lower high. The rally is losing momentum — potential top forming.
Divergence on MACD is most useful on daily and weekly charts. On short-term charts, it produces too many false signals.
MACD strengths and weaknesses
Strengths:
- Works well in trending markets — excellent at catching the middle of strong moves
- Combines both trend direction and momentum in one indicator
- Visual and easy to interpret
Weaknesses:
- Lagging indicator — both EMAs are based on past price data
- Poor performance in choppy, sideways markets — generates many false crossovers
- Default settings (12, 26, 9) may not suit all stocks or timeframes
How to use MACD with other indicators
- MACD + RSI: MACD bullish crossover + RSI rising from below 40 = stronger buy signal than either alone
- MACD + price action: MACD crossover at a known support level carries more conviction
- MACD + volume: A bullish MACD crossover accompanied by rising volume adds confirmation
- MACD + trend: Only act on bullish MACD crossovers when the stock is above its 200-day moving average
MACD settings for different traders
- Default (12, 26, 9): Best for daily charts and swing trading
- Fast (5, 13, 6): Used by short-term traders on hourly charts
- Slow (19, 39, 9): Used by position traders who want fewer, more reliable signals on weekly charts
MACD is most effective as a trend confirmation tool rather than a standalone entry signal. When MACD aligns with the broader trend, key price levels, and volume patterns, it becomes one of the most reliable momentum signals available to retail traders.