Glossary

MACD (Moving Average Convergence Divergence)

By Rohan Fernandes, Founder, Optionscanner · Updated 2026-10-26 · Educational reference, not investment advice

MACD measures trend momentum as the difference between a fast and a slow exponential moving average (classically 12 and 26 periods), compared against its own 9-period smoothed signal line. A positive and rising histogram reads as accelerating trend; crossings mark momentum shifts. Because it is built from moving averages it lags, and it has no fixed scale.

MACD measures trend momentum as the difference between a fast and a slow exponential moving average of price, classically 12 and 26 periods, and then compares that difference against its own 9-period smoothed signal line. A positive and rising histogram reads as accelerating trend; a crossing of the line and its signal marks a shift in momentum. The three numbers in the standard setting, 12, 26 and 9, are those three lookbacks.

The formula

An exponential moving average updates as EMA today = EMA yesterday + k x (close minus EMA yesterday), with k = 2 / (N + 1): about 0.154 for 12 periods, 0.074 for 26 and 0.200 for 9. MACD is measured in price units, so a reading of $1.20 on a $100 stock is not comparable with $1.20 on a $20 stock; some charts divide by price to make it a percentage.

A worked example

Suppose on day 1 the 12-day EMA of a stock near $100 is 102.40 and the 26-day EMA is 101.20, and the signal line stands at 0.90. Over the next two days the stock rises and the averages follow.

DayEMA 12EMA 26MACD lineSignalHistogram
1102.40101.201.200.90+0.30
2102.90101.401.501.02+0.48
3103.00101.551.451.11+0.34

Day 2's signal is 0.90 + 0.2 x (1.50 minus 0.90) = 1.02, and day 3's is 1.02 + 0.2 x (1.45 minus 1.02) = 1.11, rounded. On day 3 the MACD line is still positive, the fast average is still above the slow one, and price is still rising, yet the histogram shrank from +0.48 to +0.34. The gap between the averages stopped widening. That is the distinction the histogram exists to make: the line reads direction, the histogram reads whether the move is accelerating or fading.

What it means and does not mean

A positive MACD line says the recent average is above the longer one, a trend by that definition. The histogram's sign says whether the line is above or below its own smoothed history, so a crossing is the moment momentum changed relative to its recent norm. Because MACD is built from moving averages, it lags by construction and whipsaws in range-bound tape, generating crossing after crossing with no trend behind them. A crossing is a statement about averages that have already happened, not a forecast. MACD also has no bounds, so there is no overbought level; that is the job of a bounded oscillator such as RSI.

How it is used in screening

Pairing it with a trend-strength filter like ADX is the standard remedy: MACD reads direction and acceleration, ADX certifies a trend exists for it to describe. Inside the composite signal score, MACD contributes a bounded vote on direction and acceleration next to RSI, Bollinger Bands and ADX, and the tape fit methodology weighs that vote against the regime the tape is in. For strategy selection the reading informs the directional lean of a vertical spread, a put side versus a call side, rather than whether an entry exists at all; the volatility gate and the liquidity screen decide that.

Frequently asked questions

What do the MACD numbers 12, 26 and 9 mean?

They are the three lookbacks in the standard setting: a 12-period fast EMA, a 26-period slow EMA, and a 9-period EMA of their difference, which is the signal line. The histogram is the difference between the MACD line and the signal line.

What does a MACD crossover mean?

The MACD line has crossed its 9-period signal line, so momentum has changed relative to its own recent norm. It describes averages that have already moved, and in range-bound markets crossings occur repeatedly with no trend behind them.

Is MACD a leading or lagging indicator?

Lagging, by construction. It is built from exponential moving averages, so every reading reflects price changes that have already happened, smoothed over 12 and 26 periods.

Sources

Optionscanner is an options scanner and screener that works from the data in your own brokerage account.

Educational reference. Optionscanner is a software tool. It is not a broker-dealer, an investment adviser, or a fiduciary, and nothing on this page is investment advice or a recommendation to buy or sell any security. Options involve risk and are not suitable for every investor; read the Characteristics and Risks of Standardized Options before trading. Examples use hypothetical numbers for illustration only.