What is the MACD Indicator?
The MACD (Moving Average Convergence Divergence) is a momentum indicator that tracks the spread between a fast exponential moving average (EMA) and a slow EMA, plotted around a zero line in its own panel below price.
It involves three components on the chart: the MACD line, the signal line, and a histogram.
Above zero means the fast EMA is sitting above the slow EMA — bullish momentum. Below zero means the opposite — bearish momentum.
How is the MACD Indicator Calculated?
The MACD formula uses three exponential moving average calculations, with standard settings of 12, 26, and 9 periods.
MACD line = 12-period EMA − 26-period EMA
Signal line = 9-period EMA of the MACD line
Histogram = MACD line − Signal line
Tweaking the defaults to make backtest charts look prettier is curve-fitting, and curve-fitting doesn't survive live markets.
How to Use the MACD Indicator in Trading?
Use the MACD to confirm momentum. It doesn't work as a standalone signal generator. Focus on three things: signal-line crossovers for momentum shifts, the zero line for trend context, and divergences for fading follow-through at key levels.
Signal-line crossover entry: Go long when the MACD line crosses above the signal line. Go short when it crosses below. The spread between the EMAs is expanding in that direction — momentum is accelerating.
Zero-line filter: Take longs when MACD is above zero, shorts when it's below. This keeps you trading with the underlying EMA structure instead of fighting it.
Divergence warning: Price higher high + MACD lower high = bearish divergence — upside momentum is fading. Price lower low + MACD higher low = bullish divergence — downside momentum is fading.
Histogram as momentum gauge: Growing bars mean acceleration. Shrinking bars mean momentum is dying. Use it to tighten stops, scale out, or skip a late entry.
Stops and confirmation: Place stops beyond the swing high or low that invalidates the setup. Confirm the signal at support/resistance or on a clean break-and-retest. Don't trust crossovers in chop — they fire constantly and stop you out fast.
⚠️ Warning: MACD crossovers lag by design. Every crossover you take blindly, with no context, is a late entry waiting to get chopped. Use the indicator to confirm what price is already showing. Don't let it replace your read of price.