Moving Average Convergence Divergence
What Is Moving Average Convergence Divergence?
Moving Average Convergence Divergence (MACD) is a trend-following momentum indicator that shows the relationship between two moving averages of a security's price.
Moving Average Convergence Divergence (MACD) is one of the most popular and versatile tools in technical analysis. Developed by Gerald Appel in the late 1970s, it is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price. The MACD is an oscillator that fluctuates above and below a zero line (the centerline). Unlike other oscillators like the RSI, the MACD is unbounded, meaning it does not have fixed overbought or oversold limits. It is derived from moving averages, which makes it a trend-following indicator, but because it measures the *difference* between two moving averages, it also acts as a momentum indicator. This dual nature allows traders to use it for multiple purposes, from spotting the start of a new trend to identifying the exhaustion of an existing one.
Key Takeaways
- MACD is calculated by subtracting the 26-period EMA from the 12-period EMA.
- The result of that calculation is the MACD line.
- A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line.
- Traders use it to identify buy and sell signals based on crossovers, divergence, and rapid rises/falls.
- It combines elements of both trend following and momentum.
The Components of MACD
The standard MACD indicator consists of three main elements: 1. **The MACD Line:** This is the heart of the indicator. It is calculated by subtracting the 26-period Exponential Moving Average (EMA) from the 12-period EMA. When the 12-period (fast) EMA is above the 26-period (slow) EMA, the MACD line is positive. When the 12 is below the 26, the MACD line is negative. 2. **The Signal Line:** This is a 9-period EMA of the MACD line itself. It acts as a trigger for buy and sell signals. Because it is an average of the MACD, it trails behind it (lags). 3. **The Histogram:** This represents the difference between the MACD line and the Signal line. When the MACD is above the Signal line, the histogram is positive (green). When the MACD is below the Signal line, the histogram is negative (red). The histogram helps visualize the momentum of the crossover.
How It Works: Convergence and Divergence
The name of the indicator describes the behavior of the two moving averages (the 12 and 26 EMA). * **Convergence:** When the two moving averages move towards each other, momentum is slowing down. The MACD line moves closer to zero. * **Divergence:** When the moving averages move away from each other, momentum is increasing. The MACD line moves further away from zero. This expansion and contraction provide the signals. A rapid divergence indicates a strong trend, while convergence suggests the trend may be ending or reversing.
Important Considerations for Traders
MACD is most effective in trending markets. In a strong uptrend or downtrend, the crossover signals can catch the bulk of the move. However, in a sideways or "ranging" market, the MACD can produce many false signals (whipsaws), leading to small losses that accumulate. Traders should also look for "Divergence" between price and the MACD. * **Bullish Divergence:** Price makes a lower low, but MACD makes a higher low. This suggests downward momentum is waning and a reversal is imminent. * **Bearish Divergence:** Price makes a higher high, but MACD makes a lower high. This signals upward momentum is fading.
Real-World Example: Trading a Crossover
Consider a stock that has been falling. The 12-day EMA is below the 26-day EMA, so the MACD line is negative. **The Setup:** The stock price stabilizes and starts to rise. The 12-day EMA turns up faster than the 26-day EMA. **The Signal:** The MACD line crosses *above* the Signal line. The histogram flips from negative to positive. **The Trade:** A trader buys the stock. **The Exit:** Weeks later, the rally stalls. The MACD line crosses *below* the Signal line, prompting the trader to sell and lock in profits.
MACD vs. RSI
Comparing two momentum giants.
| Feature | MACD | RSI |
|---|---|---|
| Type | Trend-Following Momentum | Momentum Oscillator |
| Boundaries | Unbounded (No limit) | Bounded (0 to 100) |
| Best Use | Trend reversals & strength | Overbought/Oversold levels |
| Basis | Moving Averages | Gains vs. Losses |
Common Beginner Mistakes
Pitfalls to avoid:
- Buying immediately when the histogram turns green (wait for the line crossover confirmation).
- Ignoring the overall trend (buying a crossover in a strong bear market).
- Thinking MACD predicts price (it lags price).
- Using default settings (12, 26, 9) without testing if they fit the specific asset.
FAQs
They refer to the number of periods (usually days) used in the calculation. 12 is the fast EMA, 26 is the slow EMA, and 9 is the smoothing period for the signal line. These are the default settings created by Gerald Appel, but they can be adjusted.
MACD is primarily a lagging indicator because it is based on moving averages of past prices. However, the *histogram* component can sometimes act as a leading indicator, showing momentum changes before the price fully reverses.
Yes, MACD works on any timeframe, including 1-minute or 5-minute charts. However, on very short timeframes, it produces more "noise" and false signals, so it is often combined with other indicators like VWAP or RSI.
This occurs when the MACD line crosses the zero line. It means the 12-period EMA has crossed the 26-period EMA. A cross from below to above zero is a bullish confirmation of the longer-term trend.
The histogram visually represents the distance between the MACD and the Signal line. It helps traders see if the gap is widening (momentum increasing) or narrowing (momentum decreasing) at a glance.
The Bottom Line
Moving Average Convergence Divergence is a staple of technical analysis for a reason: it works. By condensing complex price data into a simple visual signal, it helps traders filter out noise and focus on the strength of the trend. While no indicator is perfect, mastering the nuances of MACD—especially divergence patterns—can significantly improve a trader's ability to spot reversals and stay on the right side of the market.
Related Terms
More in Technical Indicators
At a Glance
Key Takeaways
- MACD is calculated by subtracting the 26-period EMA from the 12-period EMA.
- The result of that calculation is the MACD line.
- A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line.
- Traders use it to identify buy and sell signals based on crossovers, divergence, and rapid rises/falls.