Written by Subhasish Mandal
Published on May 13, 2026 | 7 min read
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.
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.
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.
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.
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,
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.
There are several ways to interpret MACD and use it for trading decisions.
MACD line crossing above the signal line indicates increasing buying momentum and potential upward market movement.
MACD line crossing below the signal line indicates increasing selling pressure and possible downward market movement.
MACD moving above zero indicates bullish strength, while moving below zero indicates bearish market conditions.
Positive histogram bars indicate stronger bullish momentum and increasing buying activity among traders and investors.
Negative histogram bars indicate stronger bearish momentum and increasing selling activity in the market.
Increasing histogram size suggests strengthening momentum and continuation of the current market trend.
Decreasing histogram size indicates weakening momentum and possible trend reversal in the near future.
Here are the main benefits of using the MACD indicator while trading.
MACD helps traders identify whether the market is moving upward, downward, or sideways with improved clarity.
MACD measures buying and selling momentum to understand trend strength before making trading decisions.
MACD crossover signals help traders identify potential buying opportunities during bullish market conditions.
MACD helps traders recognise weakening momentum and possible trend reversals before significant losses occur.
MACD smoothens price fluctuations using moving averages and reduces confusion caused by short-term volatility.
MACD helps traders identify bullish or bearish divergence before potential price reversals occur in the market.
MACD acts as a confirmation tool to check signals generated by chart patterns, support and resistance levels, and other technical indicators.
Despite several benefits, MACD has some limitations which a trader should consider.
MACD is based on moving averages, so signals often appear after the actual market movement begins.
MACD may generate misleading crossover signals during sideways or highly volatile market conditions.
MACD sometimes reacts slowly during sudden price reversals, causing traders to miss early opportunities.
MACD should not be used independently without support from volume, price action, or other technical indicators.
MACD performs poorly during non-trending markets because frequent crossovers create unnecessary trading signals.
Different MACD settings may generate different results, creating confusion among traders using varied strategies.
Here is how traders can use MACD in trading.
Traders use MACD to identify strong market trends and trade in the direction of prevailing momentum.
Swing traders use MACD crossovers to capture short-term price movements between support and resistance zones.
Day traders use lower timeframe MACD charts to identify momentum shifts and quick trading opportunities.
Traders confirm price breakouts using MACD momentum before entering positions in trending stocks.
Traders compare price movement with MACD movement to identify possible reversals and trend exhaustion signals.
MACD is often combined with RSI, moving averages, and candlestick patterns for stronger trade confirmation.
Traders use MACD exit signals to protect profits and minimise losses during market reversals.
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.
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
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 SubhasishUpstox 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.
Share Market
e-Way Bill Registration: Guide to e-Way Bill Login and Portal Access5 min read | Written by Sachin Gupta
Share Market
What Is the Nifty IT Index? Constituents, Weightage & Beginner’s Guide to Investing in India’s IT Sector6 min read | Written by Mariyam Sara
Share Market
Index Funds Explained: Benefits, Risks, Returns, and How to Invest in India8 min read | Written by Bidita Sen
Share Market
Dividend Yield vs Dividend Payout Ratio: Which Indicator Helps Indian Investors Pick Better Stocks?12 min read | Written by Bidita Sen