MACD Indicator.
MACD (Moving Average Convergence Divergence) combines trend-following and momentum analysis. Developed by Gerald Appel in the 1970s, it shows the relationship between two exponential moving averages and is among the most popular indicators for identifying trend changes.
What is MACD?
MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two exponential moving averages of price. Developed by Gerald Appel in the late 1970s, it has become one of the most widely used technical indicators globally.
MACD combines two analytical perspectives in one indicator: (1) trend-following through the moving averages, and (2) momentum through the histogram showing acceleration/deceleration. This dual nature makes it useful across multiple trading styles.
MACD components
The MACD indicator has three main components, all displayed below or above the price chart:
1. MACD Line
This is the difference between two exponential moving averages. When the 12-EMA is above the 26-EMA, MACD is positive (uptrend bias). When below, MACD is negative (downtrend bias).
2. Signal Line
A 9-period EMA smoothing of the MACD line itself. The signal line is slower than the MACD line and used to generate trade signals through crossovers.
3. Histogram
Visual representation of the difference between MACD and Signal lines. Growing histogram = accelerating momentum. Shrinking histogram = decelerating momentum.
Default settings (12, 26, 9)
Standard MACD settings are 12, 26, 9 – representing:
- 12 = fast EMA period
- 26 = slow EMA period
- 9 = signal line smoothing period
These values originated from working days in two-week and four-week trading cycles (12 days = 2.5 weeks, 26 days = ~5 weeks). Despite being arbitrary historical choices, they remain standard because virtually all traders use them – changing creates miscommunication with other traders’ analysis.
Day traders sometimes use faster settings like (5, 35, 5) for more sensitivity. Position traders may use (19, 39, 9) for slower signals. For most retail traders, default 12-26-9 is appropriate.
Signal line crossovers
The most basic MACD signal is the signal line crossover:
Bullish crossover
MACD line crosses ABOVE signal line. Momentum is shifting bullish. Often used as buy signal in uptrends or as exit signal for short positions.
Bearish crossover
MACD line crosses BELOW signal line. Momentum is shifting bearish. Often used as sell signal in downtrends or as exit signal for long positions.
MACD is a lagging indicator. Crossovers happen AFTER price has already moved. In choppy/sideways markets, crossovers produce many false signals. Always combine with trend identification.
Zero line crossovers
When MACD line crosses the zero line (centerline), it indicates the underlying moving averages have crossed:
- MACD crosses ABOVE zero: 12-EMA is now above 26-EMA – bullish trend confirmation
- MACD crosses BELOW zero: 12-EMA is now below 26-EMA – bearish trend confirmation
Zero line crossovers are more significant but less frequent than signal line crossovers. They confirm meaningful trend shifts but offer fewer trading opportunities.
MACD histogram analysis
The histogram is often underutilized but provides valuable information:
Histogram patterns
- Growing positive bars: Bullish momentum accelerating
- Shrinking positive bars: Bullish momentum decelerating – potential reversal warning
- Growing negative bars: Bearish momentum accelerating
- Shrinking negative bars: Bearish momentum decelerating – potential reversal warning
Histogram divergence
When price makes new highs but histogram makes lower highs: bullish momentum is weakening even though prices haven’t fallen. Early warning of potential trend exhaustion.
MACD divergence
Like RSI, MACD can show divergence with price – often one of its most powerful signals:
Bullish divergence
Price makes lower lows, but MACD makes higher lows. Selling momentum weakening – potential bottom.
Bearish divergence
Price makes higher highs, but MACD makes lower highs. Buying momentum weakening – potential top.
For practical application, see our divergence strategy guide.
Common MACD mistakes
Mistake 1: Trading every crossover
Many traders enter on every signal line crossover. In ranging markets, this produces consistent losses. Crossovers work best in trending markets – identify trend first.
Mistake 2: Ignoring the histogram
The histogram contains valuable information about momentum strength. Most retail traders focus only on MACD line and signal line, missing the histogram’s nuance.
Mistake 3: Using MACD on low timeframes
MACD generates excessive noise on M1, M5, and M15 charts. The indicator works best on H1 and higher timeframes where each bar represents meaningful price action.
Mistake 4: Standalone use
MACD is lagging by nature. Combining with price action, support/resistance, or volume analysis significantly improves results.
MACD vs RSI – when to use which
| Situation | Better choice | Why |
|---|---|---|
| Trending markets | MACD | Captures trend shifts better |
| Ranging markets | RSI | Overbought/oversold more meaningful |
| Momentum strength | MACD histogram | Direct momentum visualization |
| Extreme conditions | RSI | Bounded 0-100 scale |
| Divergence signals | Both work | Combine for confirmation |
For RSI specifically: RSI complete guide.
Learn trading strategies
Now apply MACD systematically. Our strategy guides combine indicators with price action for higher-probability setups.
More learning resources → Compare brokers