Definition
MACD (Moving Average Convergence Divergence) is a trend-and-momentum indicator developed by Gerald Appel in the late 1970s. It has three parts:
- The MACD line: the 12-day exponential moving average of the close minus the 26-day EMA. When the fast average is above the slow one, the line is positive.
- The signal line: a 9-day EMA of the MACD line itself.
- The histogram: the MACD line minus the signal line, drawn as bars above or below zero.
The name describes what the line tracks: the two moving averages converging (moving toward each other, the line heading toward zero) and diverging (moving apart, the line moving away from zero). The standard settings are written 12, 26, 9.
Unlike RSI, MACD has no fixed scale. It is measured in dollars per share, so a $600 index fund's MACD swings far wider than a $20 fund's, and readings cannot be compared across securities.
How It's Calculated
MACD line = EMA(12) of Close β EMA(26) of Close
Signal line = EMA(9) of the MACD line
Histogram = MACD line β Signal line
EMA(N) uses the weight k = 2 / (N + 1):
k = 0.154 for 12 days, 0.074 for 26 days, 0.200 for 9 days.
Because the slow EMA needs 26 closes and the signal line needs 9 MACD values, a full reading needs about 34 sessions of history.
Why It Matters
MACD combines two questions in one chart: which way is the trend (is the MACD line above or below zero), and is it speeding up or slowing down (is the histogram growing or shrinking).
The common readings:
- Signal-line crossover. The MACD line crossing above its signal line is read as momentum turning up; crossing below as momentum turning down. This is the most frequent signal and the noisiest.
- Zero-line crossover. The MACD line crossing above zero means the 12-day EMA has moved above the 26-day: the short-term trend has turned up. Slower and less frequent than the signal-line cross.
- Histogram shrinking. When the bars get shorter while the price is still rising, the rise is losing momentum. This often shows up before a signal-line crossover.
- Divergence. A new price high with a lower MACD high suggests a weakening move, as with RSI.
Because each part of MACD is built on moving averages, it lags. It is better at confirming that a trend has changed than at catching the turn.
Example
An illustrative fund falls from about $59.70 to $54.40 over five weeks, then recovers to about $60.40. Selected days from the recovery, with the standard 12, 26, 9 settings:
| Day | Close | EMA 12 | EMA 26 | MACD | Signal | Histogram |
|---|---|---|---|---|---|---|
| 26 | $54.90 | 55.14 | 56.48 | β1.33 | ||
| 30 | $56.00 | 55.37 | 56.24 | β0.87 | ||
| 34 | $57.30 | 56.22 | 56.46 | β0.24 | β0.83 | +0.58 |
| 36 | $58.20 | 56.73 | 56.68 | +0.05 | β0.54 | +0.58 |
| 38 | $59.10 | 57.36 | 57.01 | +0.36 | β0.24 | +0.59 |
| 40 | $59.30 | 57.85 | 57.30 | +0.55 | +0.03 | +0.52 |
| 43 | $60.50 | 58.73 | 57.87 | +0.86 | +0.39 | +0.47 |
| 45 | $60.40 | 59.16 | 58.21 | +0.96 | +0.59 | +0.37 |
Reading it in order:
- The low in price came on days 22 and 24 at $54.40. MACD was still deeply negative on day 26, and only crossed zero on day 36, by which point the price had already recovered about $3.80. That is the lag.
- The histogram peaked around days 37 and 38 and then shrank steadily from +0.59 to +0.37, even though the price kept making higher closes. The recovery was still going, but each day's push was smaller than the one before. A shrinking histogram during a rise is the textbook early sign of fading momentum.
For an income fund, the same caution as other price indicators applies. An ex-dividend drop pulls the 12-day EMA down faster than the 26-day, nudging MACD lower for reasons that cost the holder nothing. A large monthly payment can produce a small bearish signal-line crossover by itself. Read the chart on a total-return basis if your platform offers one; see distributions and price charts.
Common Mistakes
- Trading each signal-line crossover. In a sideways market the lines cross back and forth repeatedly, and each round trip costs a spread.
- Comparing MACD values across funds. The line is in dollars, so a high-priced fund shows a larger MACD for the same percentage move.
- Expecting it to call the bottom. MACD is built from averages of past prices; a zero-line cross confirms a turn that has already happened.
- Counting MACD and RSI as two independent votes. Both come from the same closing prices.
- Ignoring ex-dividend dates. A crossover on the day a fund goes ex can be the payout, not selling pressure.
FAQ
What do the MACD settings 12, 26, 9 mean?
The MACD line is the 12-day EMA minus the 26-day EMA, and the signal line is a 9-day EMA of the MACD line. They are Appel's original choices and the default on most platforms.
What is a bullish MACD crossover?
The MACD line crossing above its signal line, read as momentum turning up. A cross above the zero line is the slower confirmation that the 12-day average has moved above the 26-day.
What does the MACD histogram show?
The gap between the MACD line and its signal line. Growing bars mean momentum is building in that direction; shrinking bars mean it is fading, which often happens before a crossover.
Is MACD better than RSI?
They answer different questions. MACD follows trend direction and its acceleration; RSI measures how one-sided recent moves have been on a fixed 0 to 100 scale. Both lag and both use the same closes, so neither adds much independent information to the other.
Can MACD be used on dividend ETFs?
Yes, with care. Distributions lower the share price on each ex-date, which the EMAs read as selling. On frequent, large payers, use a dividend-adjusted price series where possible.