Moving Average Convergence/Divergence (MACD)
What is MACD?
MACD is a momentum and trend-following technical indicator that helps traders identify changes in a security’s price direction, strength, and potential entry/exit points. Developed in the 1970s, it remains widely used and is a standard tool on most charting platforms.
How it’s calculated
- MACD line = 12-period EMA − 26-period EMA
- Signal line = 9-period EMA of the MACD line
- Histogram = MACD − Signal line
Default settings are 12/26/9 (short EMA, long EMA, signal EMA). EMAs weight recent prices more heavily than simple moving averages, so MACD reacts relatively quickly to price shifts.
Explore More Resources
How to read MACD
- Crossovers
- Bullish: MACD line crosses above the signal line → potential buy signal or rising momentum.
- Bearish: MACD line crosses below the signal line → potential sell signal or weakening momentum.
-
Crossovers that align with the prevailing trend are generally more reliable.
-
Divergence
- Bullish divergence: Price makes lower lows while MACD makes higher lows → possible trend reversal to the upside.
- Bearish divergence: Price makes higher highs while MACD makes lower highs → potential reversal to the downside.
-
Divergences can signal weakening momentum but often produce false positives; treat them as warning signs rather than guarantees.
-
Histogram
- Plots the distance between MACD and its signal line.
- Growing positive bars indicate strengthening bullish momentum; growing negative bars indicate strengthening bearish momentum.
-
A shrinking histogram can precede a crossover and is sometimes used as an early warning of a trend change.
-
Rapid rises/falls
- When the short EMA pulls far from the long EMA quickly, the security may be overbought or oversold and could retrace. Traders often confirm with oscillators like RSI.
Practical use and tips
- Best used with daily data and the 12/26/9 default, though timeframes can be adjusted to match your trading style.
- Combine MACD with other indicators:
- RSI for overbought/oversold context.
- ADX (Average Directional Index) to confirm whether a trend exists (ADX > 25 suggests a trend).
- Treat MACD as a lagging indicator—derived from past prices—so wait for confirmation from price action or other indicators before acting.
- Use the histogram for earlier cues, but be aware timing differences between signals on the MACD line and the histogram.
Limitations and common pitfalls
- False signals: MACD often generates false crossovers and divergences in sideways or consolidating markets.
- Lag: Because it’s based on moving averages, MACD will typically confirm moves after they’ve begun.
- Overreliance: No single indicator is foolproof. Confirm MACD signals with trend strength indicators and price structure (support/resistance, candlestick patterns).
Quick checklist for using MACD
- Identify the dominant trend (use ADX, moving averages, or price structure).
- Look for MACD crossovers that align with the trend.
- Use the histogram and RSI for momentum and overbought/oversold confirmation.
- Watch for divergences as early warning signs, not sole trade triggers.
- Apply risk management: define stops and position sizes before entering trades.
Summary
MACD is a versatile, widely available tool for detecting momentum shifts and trend changes. Its default 12/26/9 setup and histogram visualization make it useful for spotting crossovers, divergences, and rapid momentum changes. Because it is lagging and susceptible to false signals in non-trending markets, MACD is most effective when combined with trend confirmation and complementary indicators.