What is MACD? Moving Average Convergence Divergence

Written by Subhasish Mandal

Published on May 13, 2026 | 7 min read

MACD
illustration

Key Takeaways:

  • The MACD is a momentum-based technical indicator used to identify trends, price reversals and strength in price.

  • The MACD consists of a primary line, signal line and a histogram. They are derived from the exponential moving average (EMA).

  • MACD’s primary line is the difference between the 12-day and 26-day EMAs. The signal line is the 9-day EMA.

  • When the MACD’s signal line crosses above the primary line, it indicates bullish sentiment.

  • When the MACD’s signal line crosses the primary line downward, it indicates bearish sentiment.

The Moving Average Convergence Divergence (MACD) is an indicator and a technical analysis tool used in the share market. Traders and investors use MACD to identify trends, momentum and potential buy or sell signals in stocks, indices, commodities and currencies.

Open FREE Demat Account within minutes!
Join now

The MACD indicator combines moving averages with momentum analysis, making it useful for beginners and experienced traders. It is popular among swing traders and trend following traders because it provides signals related to trend reversals and momentum.

What is MACD?

MACD stands for Moving Average Convergence Divergence. It is a momentum-based technical indicator developed by Gerald Appel in the late 1970s. The MACD indicator measures the relationship between two exponential moving averages (EMAs) of an asset price.

The indicator consists of three main components:

  • Primary Line: The MACD line represents the difference between the 12-day EMA and 26-day EMA.

  • Signal Line: The signal line is the 9-day EMA of the MACD line.

  • Histogram: The histogram shows the difference between the MACD line and the signal line.

The MACD indicator helps traders identify trend direction, momentum strength, bullish signals, bearish signals, and possible reversals.

How does MACD work?

The MACD indicator works by comparing two exponential moving averages. When the short-term moving average moves away from the long-term moving average, momentum increases. When both averages move closer together, momentum weakens.

A bullish signal occurs when the MACD line crosses above the signal line. This indicates rising momentum and possible upward price movement.

A bearish signal occurs when the MACD line crosses below the signal line. This indicates weakening momentum and possible downward price movement.

The histogram visually represents the difference between the MACD line and signal line. Larger histogram bars indicate stronger momentum, while smaller bars suggest weakening momentum.

Traders also monitor whether the MACD indicator is above or below the zero line. A MACD above zero generally indicates bullish momentum, while a MACD below zero indicates bearish momentum.

How is MACD calculated?

The MACD calculation is based on exponential moving averages. The standard settings used by the traders are 12, 26 and 9 EMAs.

Formula:

MACD line = The value of 12 EMA - value of 26 EMA.

Here,

  • 12 EMA represents the short-term exponential moving average.
  • 26 EMA represents the long-term exponential moving average.

Signal line = The 9-period EMA of the MACD line. Histogram = The difference between the MACD line and signal line.

Example:

The value of the 12 EMA is 250, and the 26 EMA is 240. MACD line = 250 - 240 = 10.

The value of the signal line = 7, then the histogram value becomes, Histogram = 10 - 7 = 3.

A positive histogram generally indicates bullish momentum, while a negative histogram indicates bearish momentum.

Interpretation of the MACD Indicator

There are several ways to interpret MACD and use it for trading decisions.

  • Bullish Crossover:

MACD line crossing above the signal line indicates increasing buying momentum and potential upward market movement.

  • Bearish Crossover:

MACD line crossing below the signal line indicates increasing selling pressure and possible downward market movement.

  • Zero Line Crossover:

MACD moving above zero indicates bullish strength, while moving below zero indicates bearish market conditions.

  • Positive Histogram:

Positive histogram bars indicate stronger bullish momentum and increasing buying activity among traders and investors.

  • Negative Histogram:

Negative histogram bars indicate stronger bearish momentum and increasing selling activity in the market.

  • Large Histogram Bars:

Increasing histogram size suggests strengthening momentum and continuation of the current market trend.

  • Small Histogram Bars:

Decreasing histogram size indicates weakening momentum and possible trend reversal in the near future.

Benefits of MACD in Trading

Here are the main benefits of using the MACD indicator while trading.

  • Trend Identification:

MACD helps traders identify whether the market is moving upward, downward, or sideways with improved clarity.

  • Momentum Analysis:

MACD measures buying and selling momentum to understand trend strength before making trading decisions.

  • Entry Signals:

MACD crossover signals help traders identify potential buying opportunities during bullish market conditions.

  • Exit Signals:

MACD helps traders recognise weakening momentum and possible trend reversals before significant losses occur.

  • Noise Reduction:

MACD smoothens price fluctuations using moving averages and reduces confusion caused by short-term volatility.

  • Divergence Detection:

MACD helps traders identify bullish or bearish divergence before potential price reversals occur in the market.

  • Confirmation Tool:

MACD acts as a confirmation tool to check signals generated by chart patterns, support and resistance levels, and other technical indicators.

Limitations of MACD

Despite several benefits, MACD has some limitations which a trader should consider.

  • Lagging Nature:

MACD is based on moving averages, so signals often appear after the actual market movement begins.

  • False Signals:

MACD may generate misleading crossover signals during sideways or highly volatile market conditions.

  • Delayed Reversals:

MACD sometimes reacts slowly during sudden price reversals, causing traders to miss early opportunities.

  • Not Ideal Alone:

MACD should not be used independently without support from volume, price action, or other technical indicators.

  • Confused in Range Markets:

MACD performs poorly during non-trending markets because frequent crossovers create unnecessary trading signals.

  • Parameter Dependency:

Different MACD settings may generate different results, creating confusion among traders using varied strategies.

How Do Traders Use MACD?

Here is how traders can use MACD in trading.

  • Trend Trading:

Traders use MACD to identify strong market trends and trade in the direction of prevailing momentum.

  • Swing Trading:

Swing traders use MACD crossovers to capture short-term price movements between support and resistance zones.

  • Intraday Trading:

Day traders use lower timeframe MACD charts to identify momentum shifts and quick trading opportunities.

  • Breakout Confirmation:

Traders confirm price breakouts using MACD momentum before entering positions in trending stocks.

  • Divergence Analysis:

Traders compare price movement with MACD movement to identify possible reversals and trend exhaustion signals.

  • Combination Strategy:

MACD is often combined with RSI, moving averages, and candlestick patterns for stronger trade confirmation.

  • Risk Management:

Traders use MACD exit signals to protect profits and minimise losses during market reversals.

Is MACD a leading indicator or a lagging indicator?

MACD is considered a lagging indicator because signals are based on historical price data and moving averages. The indicator reacts after price movement has already started.

However, MACD can also provide early warnings through divergence signals. When price and MACD move in opposite directions, traders may anticipate possible trend reversals before they fully develop.

Therefore, the MACD indicator is mainly lagging but can sometimes provide leading insights through divergence analysis.

illustration

Conclusion

The MACD indicator is a widely used tool in technical analysis. Moving Average Convergence Divergence helps traders identify momentum, trend direction, crossovers, and potential reversals. Its simplicity and effectiveness make it suitable for beginners as well as professional traders.

Although MACD is a lagging indicator, it remains highly useful when combined with price action, volume analysis, RSI, and support and resistance levels. Traders should avoid depending entirely on MACD signals and instead use proper risk management techniques for better trading outcomes.

About Author

Upstox logo

Subhasish Mandal

Sub-Editor

Finance professional with strong expertise in stock market and personal finance writing, he excels at breaking down complex financial concepts into simple, actionable insights. Holding a Master’s degree in Commerce, he combines academic depth with practical knowledge of technical analysis and derivatives.

Read more from Subhasish
About Upstoxarrow open icon

Upstox is a leading Indian financial services company that offers online trading and investment services in stocks, commodities, currencies, mutual funds, and more. Founded in 2009 and headquartered in Mumbai, Upstox is backed by prominent investors including Ratan Tata, Tiger Global, and Kalaari Capital. It operates under RKSV Securities and is registered with SEBI, NSE, BSE, and other regulatory bodies, ensuring secure and compliant trading experiences.

Related articles

  1. MACD indicator