Skip to main content
← Back to M Definitions

Moving average convergence divergence

What Is Moving Average Convergence Divergence?

Moving average convergence divergence (MACD) is a popular technical analysis tool that uses moving averages to identify shifts in an asset's price momentum indicator and trend. It is classified as a trend-following indicator, designed to reveal changes in the strength, direction, momentum, and duration of a trend. The Moving Average Convergence Divergence indicator comprises three key components: the MACD line, the signal line, and a histogram. These components oscillate around a zero line, providing visual insights into market dynamics133, 134, 135.

History and Origin

The Moving Average Convergence Divergence indicator was developed in the late 1970s by Gerald Appel, a renowned technical analyst and money manager126, 127, 128, 129, 130, 131, 132. Appel sought to create an indicator that was easy to interpret and could quickly identify significant changes in market behavior without being overly noisy124, 125. His rigorous quantitative and systematic approach led to the creation of MACD, which quickly became a staple in the toolkit of traders and investors worldwide122, 123. The histogram component, which provides a visual representation of the difference between the MACD line and the signal line, was later added by Thomas Aspray in 1986 to help anticipate oscillator crossovers121. Gerald Appel's contribution to financial analysis continues to be widely recognized decades later. https://cmtassociation.org/person/gerald-appel/

Key Takeaways

  • The Moving Average Convergence Divergence (MACD) is a versatile indicator that combines aspects of both trend-following and momentum, helping to identify shifts in market sentiment.
  • It consists of three main components: the MACD line, the signal line, and the histogram, each providing unique insights into price action.
  • Key interpretations include crossovers between the MACD and signal lines, the MACD crossing the zero line, and divergence between the indicator and price119, 120.
  • While powerful, MACD is a lagging indicator and can produce false signals in choppy markets, emphasizing the need for confirmation from other analytical tools116, 117, 118.
  • Traders utilize MACD to generate potential buy signals and sell signals, assess trend strength, and determine entry and exit points for trades114, 115.

Formula and Calculation

The calculation of the Moving Average Convergence Divergence involves three steps to derive its three main components:

  1. MACD Line: This is calculated by subtracting the 26-period exponential moving average (EMA) of a security's closing price from its 12-period EMA. MACD Line=EMA12 periods(Closing Price)EMA26 periods(Closing Price)\text{MACD Line} = \text{EMA}_{\text{12 periods}} (\text{Closing Price}) - \text{EMA}_{\text{26 periods}} (\text{Closing Price})
  2. Signal Line: This is a 9-period EMA of the MACD Line itself. Signal Line=EMA9 periods(MACD Line)\text{Signal Line} = \text{EMA}_{\text{9 periods}} (\text{MACD Line})
  3. MACD Histogram: This represents the difference between the MACD Line and the Signal Line. Histogram=MACD LineSignal Line\text{Histogram} = \text{MACD Line} - \text{Signal Line} Where:
    • (\text{EMA}) refers to the Exponential Moving Average, which gives more weight to recent prices113.
    • (\text{Closing Price}) is the last price at which an asset traded during a given period.
    • (\text{12 periods}) and (\text{26 periods}) are typically used for the fast and slow EMAs, respectively, though these can be adjusted109, 110, 111, 112.
    • (\text{9 periods}) is the standard setting for the EMA used to create the signal line107, 108.

This construction allows the Moving Average Convergence Divergence to reflect both trend direction and momentum, as the MACD line responds faster to price changes than the signal line.104, 105, 106

Interpreting the Moving Average Convergence Divergence

Interpreting the Moving Average Convergence Divergence primarily involves observing three types of signals: crossovers, zero line crossovers, and divergences103.

  • Signal Line Crossovers: The most common way to interpret MACD is through crossovers of the MACD line and the signal line. A bullish crossover occurs when the MACD line crosses above the signal line, suggesting upward momentum and a potential buy opportunity. Conversely, a bearish crossover happens when the MACD line crosses below the signal line, indicating downward momentum and a potential sell opportunity99, 100, 101, 102.
  • Zero Line Crossovers: The zero line acts as a crucial benchmark for trend strength. When the MACD line crosses above the zero line, it signals that the short-term EMA has moved above the long-term EMA, indicating increasing bullish momentum. When it crosses below the zero line, it suggests increasing bearish momentum95, 96, 97, 98. The further the MACD line is from the zero line, the stronger the momentum92, 93, 94.
  • Divergence: This occurs when the price of an asset moves in one direction while the MACD indicator moves in the opposite direction. For example, if an asset's price makes higher highs, but the MACD makes lower highs, it's a bearish divergence, potentially signaling a reversal89, 90, 91. Conversely, a bullish divergence appears when the price makes lower lows, but the MACD makes higher lows, suggesting a potential shift to an uptrend87, 88. Divergences are considered strong signals for potential trend reversals85, 86.

Traders often combine these interpretations with other support and resistance levels and price action analysis to confirm signals before making trading decisions82, 83, 84.

Hypothetical Example

Consider a hypothetical stock, "GrowthCo Inc.," trading at $100 per share. To illustrate the Moving Average Convergence Divergence, we'll use simplified, made-up values.

Suppose the 12-period EMA for GrowthCo Inc. is currently $102, and its 26-period EMA is $99.

Step 1: Calculate the MACD Line
Using the formula:
MACD Line = EMA(12) - EMA(26)
MACD Line = $102 - $99 = $3

Now, let's assume the 9-period EMA of the MACD Line (our signal line) is currently $2.50.

Step 2: Calculate the MACD Histogram
Using the formula:
Histogram = MACD Line - Signal Line
Histogram = $3 - $2.50 = $0.50

In this scenario, the MACD Line ($3) is above the Signal Line ($2.50), and the histogram is positive ($0.50). This indicates bullish momentum for GrowthCo Inc., suggesting that the shorter-term average is moving away from the longer-term average in a positive direction. A trader observing this might interpret it as a strengthening uptrend, potentially confirming a bullish trading strategy.

If, in the next few periods, the 12-period EMA started to converge with and then cross below the 26-period EMA, the MACD line would fall, eventually crossing below the signal line, indicating a shift in momentum.

Practical Applications

The Moving Average Convergence Divergence is widely applied across various financial markets, including stocks, forex, and commodities, due to its ability to provide insights into market trends and momentum. Professional traders and investors use MACD for:

  • Trend Identification: By observing the position of the MACD line relative to the zero line, traders can quickly ascertain whether an asset is in a bullish (above zero) or bearish (below zero) trend80, 81. The slope of the MACD line also indicates the strength of the trend78, 79.
  • Signal Generation: Crossovers between the MACD line and the signal line are frequently used to generate buy and sell signals. A cross above is bullish, while a cross below is bearish77. These signals are often combined with other indicators or chart patterns for confirmation.
  • Momentum Assessment: The histogram provides a visual representation of momentum. Expanding bars suggest increasing momentum in the direction of the trend, while contracting bars indicate fading momentum, which can precede a reversal75, 76.
  • Divergence Analysis: Identifying divergence between price and the MACD indicator can alert traders to potential trend reversals or corrections, offering early warnings even if the MACD is considered a lagging indicator71, 72, 73, 74.
  • Risk Management: While not directly providing stop-loss or take-profit levels, MACD helps in assessing the strength and direction of a trend, which can inform decisions related to position sizing and trade management. Understanding when momentum is waning can assist in managing risk by signaling potential exits70.

The effectiveness of such technical indicators in various trading strategy designs has been a subject of extensive academic research. For example, studies on the effectiveness of technical trading strategies in equity markets investigate whether these tools can generate profitable signals under different market conditions. https://papers.ssrn.com/sol3/papers.cfm?abstract_id=441772668, 69 Additionally, major financial news sources often provide real-time market data that can be analyzed using MACD. https://www.ft.com/markets67 Large exchanges also provide educational resources on technical indicators like MACD. https://www.cmegroup.com/education/courses/technical-analysis/oscillators-macd-rsi-stochastics.html66

Limitations and Criticisms

While the Moving Average Convergence Divergence is a widely used and powerful tool in technical analysis, it has several limitations and criticisms that traders should consider:

  • Lagging Indicator: MACD is based on past price data through moving averages, meaning its signals are generated after price movements have already occurred. This inherent lag can sometimes result in delayed signals, potentially leading to missed early entry or exit opportunities, especially in fast-moving markets60, 61, 62, 63, 64, 65.
  • False Signals in Choppy Markets: In ranging or sideways markets, where there is no clear trend, the MACD can generate numerous false signals or "whipsaws." This can lead to frequent, unprofitable trades if signals are acted upon prematurely without additional confirmation54, 55, 56, 57, 58, 59.
  • Not Designed for Overbought/Oversold Conditions: Unlike oscillators such as the Relative Strength Index (RSI) or Stochastic Oscillator, MACD does not have defined overbought or oversold levels52, 53. Its values are relative to the asset's price, making it difficult to gauge absolute extremes.
  • Subjectivity in Settings: The default periods (12, 26, 9) are common, but traders can adjust these parameters. Different settings can significantly alter the sensitivity of the indicator, affecting the frequency and reliability of signals, which introduces subjectivity into its application48, 49, 50, 51.
  • Confirmation Needed: Due to its limitations, the Moving Average Convergence Divergence is generally more effective when used in conjunction with other technical indicators or chart patterns. Relying solely on MACD signals can lead to poor trading outcomes42, 43, 44, 45, 46, 47. For instance, a bearish MACD crossover might be less reliable if other indicators still confirm an uptrend.

Moving Average Convergence Divergence vs. Relative Strength Index

Moving Average Convergence Divergence (MACD) and Relative Strength Index (RSI) are both popular momentum indicators used in technical analysis, but they measure different aspects of price action and are best applied in distinct market conditions.

FeatureMoving Average Convergence Divergence (MACD)Relative Strength Index (RSI)
Primary FocusMeasures the relationship between two exponential moving averages of a security's price, indicating trend direction and momentum strength40, 41.Measures the speed and change of price movements, identifying overbought or oversold conditions37, 38, 39.
ComponentsConsists of the MACD line, a signal line (an EMA of the MACD line), and a histogram representing the difference between the two lines34, 35, 36.A single line that oscillates between 0 and 100, typically using a 14-period calculation32, 33.
Signal GenerationPrimarily generates signals through crossovers of the MACD line and its signal line, as well as divergences from price30, 31.Generates signals when the indicator crosses specific threshold levels (e.g., above 70 for overbought, below 30 for oversold)27, 28, 29.
Best Used InGenerally considered more effective in trending markets, as it helps identify new trends and their strength23, 24, 25, 26.Better suited for range-bound or choppy markets, where it can identify potential reversals from extreme conditions20, 21, 22.

While both indicators aim to provide foresight into potential price movements, they often offer complementary insights. Traders frequently use them in combination to gain a more comprehensive view of market conditions and to confirm signals, thereby enhancing their overall trading strategy17, 18, 19.

FAQs

How does Moving Average Convergence Divergence identify trends?

Moving Average Convergence Divergence helps identify trends by comparing a shorter-term exponential moving average (typically 12 periods) to a longer-term one (typically 26 periods). When the shorter-term average is above the longer-term average, it indicates a bullish trend, and the MACD line will be above the zero line. Conversely, if the shorter-term average is below the longer-term one, it suggests a bearish trend, and the MACD line will be below zero14, 15, 16. The momentum of these trends is visualized by how far the MACD line moves from the zero line and the direction of its histogram11, 12, 13.

Can Moving Average Convergence Divergence predict market tops and bottoms?

While the Moving Average Convergence Divergence can signal potential turning points, especially through divergence with price, it is a lagging indicator and does not predict future price movements with certainty9, 10. Instead, it reacts to current and past price action. It's more effective at confirming established trends or shifts in momentum rather than pinpointing exact market tops or bottoms. For better predictive insights, traders often combine MACD with other tools like candlestick patterns or volume analysis7, 8.

Is Moving Average Convergence Divergence a good standalone indicator?

The Moving Average Convergence Divergence is a powerful tool, but it is generally not recommended as a standalone indicator. Like many technical analysis tools, MACD can generate false signals, especially in volatile or non-trending markets4, 5, 6. Its effectiveness is significantly enhanced when used in conjunction with other indicators or analytical methods. For example, combining it with support and resistance levels, chart patterns, or other momentum oscillators like the Relative Strength Index can help confirm signals and reduce the likelihood of acting on misleading information1, 2, 3.