Moving Average Convergence Divergence (MACD)

Technical Indicators
intermediate
4 min read
Updated Jan 1, 2025

What Is Moving Average Convergence Divergence (MACD)?

MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price, used to spot buy and sell signals.

Moving Average Convergence Divergence (MACD) is a trading indicator used in technical analysis of stock prices. It is designed to reveal changes in the strength, direction, momentum, and duration of a trend in a stock's price. The MACD indicator is special because it brings together momentum and trend in one indicator. This unique blend of trend and momentum can be applied to daily, weekly, or monthly charts. The MACD is calculated by subtracting the 26-period Exponential Moving Average (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, which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell - or short - the security when the MACD crosses below the signal line.

Key Takeaways

  • MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
  • The speed of crossovers is also taken as a signal of a market is overbought or oversold.
  • MACD helps investors understand whether the bullish or bearish movement in the price is strengthening or weakening.
  • It is one of the simplest and most effective momentum indicators available.
  • Divergence between the MACD and price action is a key reversal signal.

How MACD Works

The MACD indicator works by using three components: 1. **The MACD Line:** The difference between the 12-day EMA and the 26-day EMA. 2. **The Signal Line:** The 9-day EMA of the MACD Line. 3. **The Histogram:** The difference between the MACD Line and the Signal Line. As the two moving averages (12 and 26) move away from each other, the MACD line moves away from the zero line (Divergence). This indicates momentum is increasing. As they move closer together, the MACD line moves toward zero (Convergence), indicating momentum is slowing. The crossover of the MACD line and the Signal line is the primary trading signal. When the MACD line crosses *up* through the signal line, it is a bullish signal (buy). When it crosses *down* through the signal line, it is a bearish signal (sell).

Signal Line Crossovers

Signal line crossovers are the most common MACD signals. The signal line is a 9-day EMA of the MACD line. As a moving average of the indicator, it trails the MACD line and makes it easier to spot MACD turns. * **Bullish Crossover:** Occurs when the MACD turns up and crosses above the signal line. This indicates that the momentum has shifted to the upside. * **Bearish Crossover:** Occurs when the MACD turns down and crosses below the signal line. This indicates that the momentum has shifted to the downside. Traders often wait for a confirmed crossover to avoid being "faked out" or entering a trade too early.

Important Considerations

While effective, MACD is not infallible. One of the main problems with divergence is that it can often signal a possible reversal but then no actual reversal really happens—it produces a false positive. The other problem is that divergence doesn't forecast all reversals. In other words, it predicts too many reversals that don't occur and not enough real price reversals. Another issue is that MACD is a lagging indicator. Since it is based on historical price data (moving averages), it will always trail the actual price action. In very fast-moving markets, the signal may come too late to be profitable.

Real-World Example: MACD Histogram

The MACD Histogram offers a visual representation of the difference between the MACD and the signal line. * When the MACD is above the signal line, the histogram is positive. * When the MACD is below the signal line, the histogram is negative. * The height of the bar represents the distance between the MACD and signal line. **Scenario:** A stock is rallying. The MACD is above the signal line, so the histogram is positive. However, the bars on the histogram start to get shorter (shrink). **Interpretation:** This means the MACD is moving closer to the signal line. Momentum is slowing down. Even though the price is still rising, the histogram warns that a bearish crossover might be approaching.

1Step 1: Observe positive histogram bars.
2Step 2: Note the peak bar height.
3Step 3: Watch subsequent bars decrease in height (Converging).
4Step 4: Prepare for potential trend change.
Result: Histogram contraction is an early warning system for crossovers.

MACD vs. Moving Averages

Difference between the indicator and its components.

FeatureMACD IndicatorMoving Averages (Price Chart)
LocationSub-window (Oscillator)Main Chart (Overlay)
MeasurementMomentum (Difference)Trend Direction (Average)
Zero LineCenters on ZeroFollows Price
SignalsCrossovers & DivergenceSupport/Resistance & Crossovers

Common Beginner Mistakes

Pitfalls to avoid:

  • Ignoring the timeframe (MACD on a 1-minute chart is very noisy).
  • Confusing the MACD line with the Signal line.
  • Using MACD in isolation without checking volume or price patterns.
  • Failing to adjust position size based on the strength of the signal.

FAQs

The standard 12, 26, 9 setting is widely used and effective for many traders. Short-term traders might speed it up (e.g., 5, 35, 5), while long-term investors might slow it down to reduce noise. Testing is required to find what works for a specific asset.

Yes, MACD is very popular in crypto trading because crypto markets trend strongly. The momentum signals are highly relevant for volatile assets like Bitcoin and Ethereum.

A centerline crossover happens when the MACD line moves across the zero line. This indicates that the 12-day EMA has crossed the 26-day EMA. It is a confirmation of a trend change but is slower than a signal line crossover.

Unlike RSI which goes from 0-100, MACD has no limits. This is because the price difference between two moving averages can theoretically grow infinitely large if the price moves exponentially.

No indicator predicts the future. MACD interprets the past to give a probability of current momentum continuing or reversing. It is a tool for probability, not prediction.

The Bottom Line

Moving Average Convergence Divergence (MACD) is a powerhouse indicator that serves as a cornerstone for many technical trading strategies. Its ability to simultaneously track trend direction and momentum makes it incredibly efficient. While traders must be wary of false signals in sideways markets, the MACD remains one of the most reliable tools for identifying profitable entry and exit points in trending conditions.

At a Glance

Difficultyintermediate
Reading Time4 min

Key Takeaways

  • MACD triggers technical signals when it crosses above (to buy) or below (to sell) its signal line.
  • The speed of crossovers is also taken as a signal of a market is overbought or oversold.
  • MACD helps investors understand whether the bullish or bearish movement in the price is strengthening or weakening.
  • It is one of the simplest and most effective momentum indicators available.