EducationStrategy

MACD Explained: How to Trade Moving Average Convergence Divergence

Indicator Hub

The MACD (Moving Average Convergence Divergence) is one of the most widely used indicators in trading. It measures the relationship between two moving averages to identify trend direction, momentum shifts, and potential entry signals. Despite its name sounding complicated, the MACD is straightforward once you understand its three components.

How the MACD Is Calculated

The MACD has three parts:

MACD line: The difference between the 12-period EMA and the 26-period EMA. When the faster average is above the slower one, the MACD line is positive (bullish momentum). When below, it is negative (bearish momentum).

Signal line: A 9-period EMA of the MACD line. It smooths the MACD and provides crossover signals.

Histogram: The difference between the MACD line and the signal line. When the histogram is growing, momentum is increasing. When shrinking, momentum is fading.

These three components give you a complete picture of trend direction and momentum strength in one indicator.

Reading the MACD

MACD above zero: The 12 EMA is above the 26 EMA. The short-term trend is bullish. This is a simple trend filter — when MACD is positive, favor long trades.

MACD below zero: The 12 EMA is below the 26 EMA. The short-term trend is bearish. Favor short trades.

The MACD tells you two things at once: the direction of the trend (above or below zero) and the momentum behind it (histogram growing or shrinking). This dual information makes it one of the most efficient indicators available.

Histogram expanding: Momentum is accelerating in the current direction. The trend has strength behind it.

Histogram contracting: Momentum is decelerating. The trend may be weakening, and a reversal or consolidation could follow.

MACD Crossover Signals

The most common MACD signal is the crossover between the MACD line and the signal line.

Bullish crossover: The MACD line crosses above the signal line. This suggests upward momentum is building. It is a potential buy signal, especially when it occurs below the zero line (the beginning of a new uptrend).

Bearish crossover: The MACD line crosses below the signal line. Downward momentum is building. A potential sell signal, especially when it occurs above the zero line.

Crossovers work best in trending markets. In sideways, choppy markets, the MACD line and signal line cross frequently, generating false signals. Filter crossovers by only taking them in the direction of the higher timeframe trend.

MACD Divergence

Divergence between the MACD and price is one of the most powerful signals the indicator provides.

Bullish divergence: Price makes a lower low, but the MACD makes a higher low. This shows that selling momentum is weakening even though price is still dropping. It warns of a potential bottom and reversal.

Bearish divergence: Price makes a higher high, but the MACD makes a lower high. Buying momentum is fading despite price continuing upward. A potential top and reversal warning.

Divergence is not a timing signal — it tells you momentum is shifting, not exactly when the reversal will happen. Use it as an alert to watch for other confirmation signals like a candlestick pattern or a break of structure.

MACD Settings

The default settings (12, 26, 9) work for most instruments and timeframes. These have been the standard since Gerald Appel developed the indicator in the 1970s, and they remain effective.

Some traders use faster settings (8, 17, 9) for more sensitive signals on lower timeframes. Others use slower settings (19, 39, 9) for fewer but more reliable signals. Test any changes against the defaults before adopting them.

MACD Limitations

The MACD is a lagging indicator because it is based on moving averages. Crossover signals come after the move has started, not before. This lag means you will never catch the exact top or bottom.

In range-bound markets, MACD generates whipsaw signals — frequent crossovers that go nowhere. Combine MACD with trend analysis to avoid taking crossover signals during choppy periods.

MACD works best as a confirmation tool rather than a standalone entry signal. Use it alongside price action, support and resistance, and volume for the most reliable results.

Practical MACD Tips

Use MACD divergence to anticipate trend changes before they happen. Use MACD crossovers to confirm trend direction. Use the histogram to gauge momentum strength.

The zero line is your trend filter. Above zero, look for longs. Below zero, look for shorts. This simple rule eliminates half of the low-quality signals that MACD produces.


Featured Indicator

Browse the Indicator Library

Professional EasyLanguage indicators for TradeStation — from Smart Money Concepts to volatility and momentum tools.

View Indicator

Join the Community

Got questions about this topic? Join our Discord to chat with other traders.

Join Discord

Looking for more trading tools and indicators?

Browse Trading Systems