16.2 Moving Average Convergence Divergence (MACD) Construction and Signals
Key Takeaways
Gerald Appel's standard MACD Line equals in raw price units, whereas the Percentage Price Oscillator (PPO) divides by for cross-asset comparison.
The Signal Line is a 9-period EMA of the MACD Line, and Thomas Aspray's MACD Histogram equals the MACD Line minus the Signal Line.
Signal-line crossovers can occur earlier than zero-line crossovers (which mirror the 12-period EMA crossing the 26-period EMA), while changes in histogram slope warn of momentum shifts ahead of either crossover.
Because MACD layers three exponential moving averages, it lags fast V-shaped price reversals and generates frequent whipsaws during sideways consolidations.
Developed by Gerald Appel in the late 1970s, Moving Average Convergence Divergence (MACD) transforms two trend-following moving averages into an unbounded momentum oscillator. By tracking whether a faster exponential moving average is pulling away from (diverging) or moving back toward (converging) a slower exponential moving average, MACD helps technicians assess trend direction, momentum acceleration, and potential exhaustion.
MACD Components and Exact Formulas
Standard MACD uses the parameter set (12, 26, 9) applied to closing prices and consists of three distinct series:
- MACD Line: The difference between a 12-period exponential moving average (EMA) and a 26-period EMA of closing prices:
- Signal Line (Trigger Line): A 9-period EMA smoothed over the MACD Line itself:
- MACD Histogram: Introduced by Thomas Aspray in 1986, the histogram measures the vertical spread between the MACD Line and its Signal Line:
Because the MACD Line subtracts two raw moving averages, it is unbounded and expressed in price units (dollars or index points). Consequently, a $500 stock naturally produces much larger MACD values than a $20 stock for the exact same percentage move, and a multi-decade index chart will show far wider MACD swings today than 30 years ago.
The Percentage Price Oscillator (PPO)
To compare momentum across securities at different price levels—or across long historical spans—analysts replace the raw MACD Line with the Percentage Price Oscillator (PPO), which divides the EMA spread by the slower 26-period EMA:
PPO has the same zero-line crossing times as MACD when the slower EMA is positive and nonzero. Its own signal line is the 9-period EMA of PPO; because normalization changes over time, signal-line crossings and histogram values need not match MACD.
Worked Numerical Illustration
Suppose a stock has , , and yesterday's Signal Line stood at $3.60. Using the standard 9-period EMA smoothing factor :
- MACD Line: .
- PPO: .
- Signal Line: .
- MACD Histogram: .
| Component | Formula | Role in Analysis | Centerline |
|---|---|---|---|
| MACD Line | Tracks raw spread between fast and slow EMAs | (price units) | |
| PPO | Percentage-normalized EMA spread for cross-asset comparison | ||
| Signal Line | Smooths the MACD Line to generate crossover triggers | ||
| MACD Histogram | Visualizes acceleration/deceleration ahead of crossovers |
Core MACD Trading Signals
MACD offers several distinct signals. They may occur in different orders; no fixed hierarchy guarantees a trend transition:
1. Histogram Slope and Direction (Earliest Warning)
Because the histogram plots the distance between the MACD Line and the Signal Line, a narrowing spread can precede a crossover. When positive histogram bars peak and begin printing shorter bars toward zero, the MACD Line is still above the Signal Line, yet upside momentum is decelerating—often warning of an approaching bearish crossover. Conversely, shrinking negative histogram bars (sloping upward toward zero) suggest weakening downward momentum and a possible bullish crossover.
2. Signal-Line Crossovers (Timing Trigger)
A bullish signal-line crossover occurs when the MACD Line rises above the Signal Line (the histogram flips from negative to positive). A bearish signal-line crossover occurs when the MACD Line drops below the Signal Line (the histogram flips from positive to negative). Crossovers occurring well below zero carry greater upside mean-reversion potential in range-bound conditions, while crossovers near or above zero often mark resumed impulse waves in an established uptrend.
3. Zero-Line Crossovers (Trend Confirmation)
A zero-line (centerline) crossover happens when the MACD Line crosses zero:
- MACD > 0 means , confirming bullish intermediate-term trend structure.
- MACD < 0 means , confirming bearish intermediate-term trend structure.
A centerline crossing reflects the underlying two-price-EMA crossing, while the signal-line crossing reflects the MACD-to-its-average relationship. Centerline confirmation often occurs later but the order is not guaranteed.
Overbought/Oversold Stretches vs. Trend Confirmation
Unlike RSI or Stochastics, MACD has no fixed overbought or oversold boundaries such as 70/30. An unusually high MACD reading simply shows that the 12-EMA has stretched far above the 26-EMA—which reflects strong trend conviction rather than an automatic sell signal. Technicians judge extremes only against the security's own historical MACD (or PPO) distribution, and wait for a histogram peak, signal-line crossover, or divergence before treating an extreme reading as exhaustion. Furthermore, histogram divergences often appear earlier than MACD-line divergences: for instance, price may push to a new high while the MACD Histogram fails to exceed its prior peak, signaling waning short-term acceleration even before the MACD Line itself rolls over.
Lag, Sensitivity, and Whipsaw Risk
Every moving-average indicator trades responsiveness for noise reduction. In MACD, the 12-period EMA () and 26-period EMA () smooth price fluctuations, and the 9-period Signal Line adds a third layer of smoothing:
- Sharp price spikes and V-reversals: Because EMAs react incrementally to new closes, MACD lags sudden reversals. Waiting for a zero-line crossover after a violent V-bottom frequently forfeits a substantial portion of the initial rally.
- Sideways consolidations: When price drifts horizontally in a narrow range, and repeatedly intertwine around zero, causing frequent whipsaws (rapid sequences of false bullish and bearish crossovers).
- Parameter sensitivity and timeframe selection: Shortening the EMA parameters (such as 5, 13, 5) increases sensitivity and captures turning points earlier at the cost of additional false signals, whereas lengthening them—or applying standard (12, 26, 9) settings to weekly charts—filters short-term market noise in favor of primary trend shifts. Gerald Appel himself noted that practitioners sometimes use a faster setting for buy signals than for sell signals because market tops often develop more gradually than sharp panic bottoms.
Tip
Filter MACD with Market Structure: In CMT Level I practice, MACD performs best in trending environments. Pairing MACD crossovers with a trend-strength gauge (such as ADX above 20–25) or clear price support/resistance breakouts may filter some whipsaws, but must be tested during consolidations.
An analyst wants to rank momentum across 20 stocks ranging in price from $12 to $680 using a 12- and 26-period EMA spread. Why is the Percentage Price Oscillator (PPO) better suited than the standard MACD Line?
PPO replaces exponential moving averages with simple moving averages to remove lag
PPO divides the 12-period EMA minus 26-period EMA spread by the 26-period EMA, expressing momentum in comparable percentage terms
PPO adds a 9-period Signal Line that standard MACD omits
PPO bounds oscillator readings strictly between 0 and 100
During an uptrend, a stock's MACD Line stands at +3.40 and its Signal Line stands at +2.80, down from a MACD Histogram peak of +1.10 three bars earlier. What does the declining MACD Histogram indicate?
The 12-period EMA has already crossed below the 26-period EMA, confirming a new downtrend
A bearish signal-line crossover has already triggered
Upside momentum is decelerating as the MACD Line converges toward the Signal Line ahead of a potential crossover
The security has reached an automatic overbought cap of 100
What moving-average event corresponds exactly to the MACD Line crossing above the zero line?
The 12-period EMA crosses above the 26-period EMA of closing prices
The 9-period EMA of closing prices crosses above the 26-period EMA
The MACD Line crosses above the 9-period Signal Line
The MACD Histogram shifts from +100 to 0
Sections you finish are checked off in the contents.