MACD: how it is calculated and how to read it
Last updated: 10/15/2026
MACD (Moving Average Convergence Divergence) was created by Gerald Appel in the 1970s. It compares two exponential moving averages to measure the strength and direction of price momentum.
How it is calculated
In the default setup, MACD(12,26,9), the main line is the 12-period EMA minus the 26-period EMA. A 9-period EMA of that line gives the signal line. The histogram shows the distance between the two.
The names used in Cryptogenin
The chart shows three values: DIF (the main line, EMA 12 minus EMA 26), DEA (the signal line) and MACD (the histogram bars). Here, each bar is the difference between DIF and DEA multiplied by 2, a common convention on charting platforms. It only changes the scale of the bars, not the shape of the indicator.
How to read it
- Crossovers: DIF crossing above DEA suggests bullish momentum gaining strength; crossing below suggests bearish momentum.
- Zero line: DIF above zero means the fast average is above the slow one (uptrend); below zero, the opposite.
- Histogram: growing bars show momentum strengthening; shrinking bars show it fading, even if price is still rising or falling.
- Divergence: if price makes a new high but MACD makes a lower high, the move may be running out of steam. The reverse applies to lows.
Limits
Because it is built from moving averages, MACD lags and gives many false signals in sideways markets. Divergences can last a long time without a reversal. It is usually combined with RSI and moving averages to confirm context.