Moving average convergence divergence
Also called MACD
Gerald Appel's indicator: the difference between a 12-period and a 26-period EMA, shown with a 9-period EMA signal line and a histogram of the gap. Crossovers and divergences are read as momentum signals.

- Level
- Intermediate
- Reading
- 2 min
- Sources
- 5BookCentral bankReferenceEncyclopedia
- Updated
On this page· 5 sections
Two moving averages of the same price, one fast and one slow, drift apart when a move speeds up and close in when it slows. MACD turns that gap into a line of its own. As the name says, it is about the convergence and divergence of the two averages[3].
Gerald Appel developed it in the late 1970s[3][5]. His 2005 book builds several of its strategies on the indicator[1].
How it works
MACD has three parts, with Appel’s standard settings[3][4][5]:
- MACD line = 12-period EMA − 26-period EMA
- signal line = 9-period EMA of the MACD line
- histogram = MACD line − signal line
The MACD line is positive when the 12-period EMA is above the 26-period EMA and negative when it is below[3]. A cross of the zero line means the two averages themselves have crossed.
Traders watch three kinds of event[3][5]:
- the MACD line crossing its signal line;
- the MACD line crossing zero;
- divergences, where price makes a new high or low that MACD does not confirm.
The values are in price units, not percentages. MACD depends on the price of the market it is drawn on, so readings cannot be compared across markets with different prices[3]. It also has no upper or lower bound, which makes it of little use for marking overbought and oversold levels[3].
Economists know MACD as one of the newer rules that technicians favor. Neely and Weller note that such rules are less well tested than classic moving-average and filter rules[2].
Example
Say a stock’s 12-period EMA is $101.50 and its 26-period EMA is $100.00. The MACD line is $1.50. The signal line stood at $1.00, and its multiplier is 2 ÷ (9 + 1) = 0.2.
- Signal = $1.00 + ($1.50 − $1.00) × 0.2 = $1.10. Histogram = $1.50 − $1.10 = $0.40.
- Next bar the MACD line slips to $1.20. Signal = $1.10 + ($1.20 − $1.10) × 0.2 = $1.12. Histogram = $0.08.
- The bar after, the MACD line is $1.00. Signal = $1.12 + ($1.00 − $1.12) × 0.2 = $1.096. Histogram = −$0.096.
The MACD line has crossed below its signal line while still above zero. The 12-period EMA is still above the 26-period EMA, but the gap between them is closing. The histogram showed the slowdown a bar early, when it shrank from $0.40 to $0.08.
Watch out
MACD is built from moving averages of past prices, so it lags and can fall behind a fast market[5].
In a sideways market the MACD line crosses its signal line back and forth, and those crossings produce whipsaws[3][5].
Divergences need care. StockCharts notes that bearish divergences are common in a strong uptrend and bullish ones in a strong downtrend[3].
The settings are conventions. 12, 26 and 9 are the standard values[3][4]; change them and every line and signal changes too.
Sources
- BookOpen Library (Internet Archive)Technical Analysis: Power Tools for Active Investors (Appel, FT Prentice Hall, 2005)Checked November 9, 2026
- Central bankFederal Reserve Bank of St. LouisTechnical Analysis in the Foreign Exchange Market (Working Paper 2011-001B, Neely & Weller)Checked November 9, 2026
- ReferenceStockCharts ChartSchoolMACD (Moving Average Convergence/Divergence Oscillator)Checked November 9, 2026
- ReferenceStockCharts ChartSchoolGlossary - MChecked November 9, 2026
- EncyclopediaEncyclopædia Britannica (Britannica Money)Navigating the markets with moving average convergence/divergence (MACD)Checked November 9, 2026
