What Is the MACD Indicator?

Intermediate
Updated Oct 27, 2022
7m

Key Takeaways

  • The MACD (Moving Average Convergence Divergence) is a momentum oscillator used in technical analysis to identify trend direction, strength, and potential reversal points.

  • It consists of three components: the MACD line (12-period EMA minus 26-period EMA), the signal line (9-period EMA of the MACD line), and the histogram (difference between the two lines).

  • Crossovers between the MACD line and the signal line, or between the MACD line and the zero line, are the indicator's primary trading signals, though both types can produce false signals in choppy markets.

  • Regular MACD divergences may suggest a trend reversal; hidden divergences may suggest trend continuation.

  • Because MACD is a lagging indicator, most traders use it alongside complementary tools such as the RSI or Bollinger Bands rather than in isolation.

Binance Academy courses banner

Introduction

The Moving Average Convergence Divergence (MACD) is one of the most widely used indicators in technical analysis. Developed by Gerald Appel in the late 1970s, it tracks pricing events that have already occurred, placing it in the category of lagging indicators. The MACD is used across traditional financial markets and cryptocurrency trading to assess momentum and identify potential entry and exit points.

Understanding Moving Averages

The MACD is built from exponential moving averages (EMAs), so understanding moving averages is a prerequisite. A moving average is a line representing the average closing price of an asset over a set number of periods. There are two main types used in trading:

  • Simple moving averages (SMAs): SMAs weight each price data point equally across the specified period.

  • Exponential moving averages (EMAs): EMAs assign greater weight to more recent price data, making them more responsive to short-term price changes than SMAs of the same length.

Because EMAs react more quickly to recent price movements, they are better suited for capturing momentum, which is why the MACD relies on them exclusively.

How the MACD Indicator Works

The MACD indicator has three components that all fluctuate around a zero line (also called the centerline):

how the MACD indicator works

1. The MACD line

The MACD line is the foundation of the indicator. It is calculated by subtracting the slower 26-period EMA from the faster 12-period EMA. A positive result means the 12-period EMA is above the 26-period EMA, which is generally associated with upward price momentum. A negative result indicates that the longer-term average is dominant, suggesting downward momentum.

2. The signal line

The signal line is a 9-period EMA applied to the MACD line itself. Because it is a smoothed version of the MACD line, the signal line moves more slowly. Traders watch for the MACD line crossing above or below the signal line as potential trade signals.

3. The MACD histogram

The histogram is a bar chart showing the difference between the MACD line and the signal line at each point in time. When the MACD line is above the signal line, histogram bars are positive; when below, they are negative. The histogram makes it visually straightforward to see whether the gap between the two lines is widening or narrowing. Note that the histogram bars reflect the relationship between the two lines and are not related to the asset's trading volume.

MACD line

12-period EMA − 26-period EMA

Signal line

9-period EMA of MACD line

Histogram

MACD line − Signal line

MACD Settings

The default MACD configuration is (12, 26, 9), referring to the 12-period EMA, the 26-period EMA, and the 9-period signal line EMA. These settings are typically applied to daily charts. Some traders in traditional markets use (5, 35, 5) for longer-term weekly or monthly charts.

In cryptocurrency markets, adjusting to shorter periods to create a more sensitive indicator generally increases noise rather than clarity. Crypto assets trade continuously without the overnight and weekend gaps found in traditional markets, and their higher volatility means shorter EMA settings tend to produce more false signals. Most crypto traders retain the default (12, 26, 9) settings and adjust the chart timeframe instead, choosing between a 4-hour, daily, or weekly view based on their trading horizon.

How to Read MACD Charts

Centerline crossovers

A centerline crossover occurs when the MACD line crosses the zero line. When the MACD line moves above zero, the 12-period EMA has crossed above the 26-period EMA. This is generally associated with strengthening upward momentum. When the MACD line falls below zero, downward momentum may be building. Centerline crossovers help confirm trend direction but tend to lag noticeably behind actual price turns.

Signal line crossovers

Signal line crossovers occur when the MACD line crosses the signal line. A crossover to the upside is often interpreted as a potential entry signal, while a crossover to the downside may be read as a potential exit signal.

The position of the crossover relative to the centerline adds context. A bullish signal line crossover occurring while the MACD line is still below zero suggests the broader trend may still be bearish. A bearish crossover occurring while the MACD line is above zero may represent a short-term pullback within a broader uptrend rather than a full reversal. Signal line crossovers are less reliable during sideways or range-bound markets, where frequent crossovers can generate a high volume of misleading signals.

MACD Divergence

A divergence occurs when the direction of the MACD and the direction of the asset's price move differently. There are two categories of MACD divergence, each with different implications:

Regular divergences

Regular divergences may suggest that the current trend is losing momentum and a reversal is possible.

  • Regular bearish divergence: price makes a higher high while the MACD makes a lower high. This can indicate that upward buying pressure is weakening despite continued price gains.

  • Regular bullish divergence: price makes a lower low while the MACD makes a higher low. This can suggest that downward momentum is fading even as price continues to fall.

Hidden divergences

Hidden divergences tend to signal that the prevailing trend may continue rather than reverse.

  • Hidden bullish divergence: price makes a higher low while the MACD makes a lower low. This may indicate that the underlying uptrend remains intact despite a temporary pullback.

  • Hidden bearish divergence: price makes a lower high while the MACD makes a higher high. This may suggest the broader downtrend is continuing even as the indicator briefly rises.

Type

Price action

MACD line

Interpretation

Regular bullish

Lower low

Higher low

Possible reversal upward

Regular bearish

Higher high

Lower high

Possible reversal downward

Hidden bullish

Higher low

Lower low

Possible trend continuation upward

Hidden bearish

Lower high

Higher high

Possible trend continuation downward

All four divergence types carry some probability of false signals, particularly in fast-moving or highly volatile markets. Divergences are generally considered more significant when they develop over longer timeframes or align with key support and resistance levels identified through other tools such as candlestick patterns or classical chart patterns.

Limitations of the MACD Indicator

As a lagging indicator built on historical price data, the MACD always trails current market conditions. In fast-moving markets, signals can arrive after a significant portion of a move has already occurred.

The indicator also performs poorly in ranging or sideways markets, where the MACD and signal lines may cross frequently without confirming any meaningful trend. In cryptocurrency markets specifically, the around-the-clock trading environment and relatively higher volatility can amplify noise in the MACD signal, particularly on shorter timeframes.

For these reasons, the MACD is most often used alongside complementary indicators. Combining it with the RSI can help confirm whether momentum aligns with overbought or oversold conditions, while Bollinger Bands provide useful context about the volatility environment in which a crossover is occurring. The Stochastic RSI is another commonly paired tool for cross-confirming momentum signals.

FAQ

What does MACD stand for?

MACD stands for Moving Average Convergence Divergence. The name refers to the relationship between a faster 12-period EMA and a slower 26-period EMA, which converge and diverge as market momentum shifts.

What is a MACD crossover?

A MACD crossover refers to either a signal line crossover (the MACD line crossing above or below the signal line) or a centerline crossover (the MACD line crossing above or below zero). Both are used as potential directional signals but can produce false readings in volatile or sideways markets.

What is the difference between MACD and RSI?

The MACD measures the relationship between two EMAs to track trend direction and momentum. The RSI measures the speed and magnitude of recent price changes to assess whether an asset may be overbought or oversold. Both are momentum indicators but measure different aspects of price behavior. Using them together can help filter signals that one indicator alone might not clearly identify.

What is a good MACD setting for crypto?

The default (12, 26, 9) setting is the most widely used in cryptocurrency markets. Shorter periods increase sensitivity but tend to generate more false signals given crypto's higher volatility. Most traders keep the default settings and instead vary the chart timeframe (4-hour, daily, or weekly) to match their trading horizon.

What does MACD divergence mean?

MACD divergence occurs when the MACD line and the asset's price action move in different directions. Regular divergences (price makes a new extreme that the MACD does not confirm) may indicate a potential trend reversal. Hidden divergences (MACD makes a new extreme that price does not confirm) may suggest the existing trend is likely to continue.

Closing Thoughts

The MACD is a practical and widely used momentum indicator that can help traders visualize both trend direction and momentum in a relatively simple format. By combining the MACD line, signal line, and histogram, it offers multiple ways to interpret market behavior, from crossovers to divergences to centerline shifts.

That said, the MACD is not a standalone decision-making tool. Because it is based on moving averages, it reacts to price rather than predicting it, which means signals can lag and false readings can appear during choppy or low-conviction market conditions.

Further Reading

Disclaimer: This content is presented to you on an "as is" basis for general information and or educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Where the content is contributed by a third party contributor, please note that those views expressed belong to the third party contributor, and do not necessarily reflect those of Binance Academy. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. For more information, see our Terms of Use, Risk Warning and Binance Academy Terms.