Skip to main content

How to Use the MACD Indicator?

6 min readUpdated on 11th Sept, 2026by Team Angel One
Created by Gerald Appel in the 1970s, MACD analyses the relationship between two moving averages of an asset’s price.
Share

MACD (Moving Average Convergence Divergence) is a popular technical analysis indicator used by traders to determine price trends, market momentum, and potential buy or sell entry points. MACD combines trend direction and momentum analysis in a single indicator by calculating the relationship between two exponential moving averages.

MACD shouldn’t be used alone. It should be combined with price action and other technical indicators for solid confirmation before entering or exiting a trading position.

This article explains what MACD is, why it is important, the formula, and how to calculate it.

Key Takeaways

  • Master how MACD and signal line crossovers generate potential entry and exit signals during changing market phases.
  • Use the zero line to identify whether the underlying trend favors buyers or sellers instantly.
  • Monitor histogram bar expansion and contraction to gauge accelerating or decelerating momentum before trend shifts occur.
  • Spot early warning signs of trend exhaustion when price action and MACD indicators move in opposite directions.
  • Combine MACD with volume and price action, while strictly enforcing stop-losses, to filter out false signals in choppy, sideways markets.

How To Calculate MACD?

To calculate the MACD indicator, you use two exponential moving averages (EMAs) based on historical prices. These consist of a 12-day EMA and a 26-day EMA.

12-period exponential moving average: Functions as the fast line, reacting quickly to recent price fluctuations to track short-term momentum.

26-period exponential moving average: Functions as the slow baseline, responding more gradually to filter out noise and define the medium-term trend direction.

Combined utility: Originally aligned with standard market cycles (roughly two weeks versus one month of trading days), the difference between these two averages tracks momentum shifts and potential trend reversals.

The calculation follows these steps:

  • MACD Line: Subtract the 26-period EMA from the 12-period EMA.
  • MACD Line = 12 EMA - 26 EMA
  • Signal Line: Calculate a 9-period EMA of the resulting MACD line.
  • Histogram: Calculate the difference between the MACD line and the signal line.
Component  What it Shows 
MACD line  Difference between the 12-period and 26-period EMAs 
Signal line  9-period EMA of the MACD line 
Histogram  Difference between the MACD line and signal line 

How Can You Read the MACD Indicator?

Reading the Moving Average Convergence Divergence (MACD) indicator involves monitoring three primary signals that reveal changes in the strength, direction, and momentum of a stock's trend.

To identify if momentum is increasing or diminishing, traders look at:

  • Signal line crossovers: Occurs when the faster MACD line crosses above or below the slower signal line, highlighting immediate shifts in short-term buying or selling momentum.
  • Centerline crossovers: Happens when the MACD line crosses the zero line, confirming whether the underlying momentum has shifted from positive to negative or vice versa.
  • MACD divergences: Identifies instances where the price chart moves in the opposite direction of the MACD indicator, signaling that current momentum is fading and a trend reversal may be near.
MACD Metric  Positive MACD Value  Negative MACD Value 
EMA Relationship  Fast 12-period EMA sits above the slow 26-period EMA.  Fast 12-period EMA drops below the slow 26-period EMA. 
Market Momentum  Short-term upward momentum is stronger than the medium-term trend.  Downward selling momentum is currently dominating the price action. 

What Does a MACD Crossover Mean?

  • Bullish crossover: Happens when the MACD line moves upward and crosses above the signal line. This means momentum is starting to become positive.
  • Bearish crossover: Occurs when the MACD line crosses below the signal line. This means momentum was positive and has started to become negative.

Note: Crossover signals are considered stronger when they align with the prevailing trend and are supported by increased trading volume, as this can provide additional confirmation of market momentum.

What Does MACD Zero Line Mean?

The zero line helps determine the direction of momentum:

  • When the MACD line is above the zero line, the 12-period EMA is above the 26-period EMA, indicating positive momentum.
  • When the MACD line is below the zero line, and the shorter-term EMA is below the longer-term EMA, it indicates negative momentum.

How Does the MACD Histogram Work?

The histogram displays the difference between the MACD line and the signal line. When bars grow larger, the space between the two lines is increasing; when bars get smaller, the lines are converging.

Histogram Movement  What it May Indicate 
Larger positive bars  Upward momentum is getting stronger 
Smaller positive bars  Upward momentum is getting weaker 
Larger negative bars  Downward momentum is getting stronger 
Smaller negative bars  Downward momentum is getting weaker 

What Is MACD Divergence?

MACD divergence occurs when price and MACD move in opposite directions, suggesting that the underlying trend momentum is weakening.

  • Bullish divergence: Price forms a lower low, but the MACD forms a higher low. This indicates that selling momentum is waning even though prices have fallen.
  • Bearish divergence: Price forms a higher high, but the MACD forms a lower high. This indicates that buying momentum is weakening even as prices continue to rise.

How to Use MACD in Trading?

  • Check the price trend: See if the market is moving upwards, downwards, or sideways.
  • Check the zero line: Determine if the MACD line is above or below zero to gauge the direction of momentum.
  • Look for a crossover: Check for bullish or bearish line crossovers.
  • Check the histogram: Observe whether histogram bars are expanding or contracting.
  • Look for divergence: Compare price highs or lows with corresponding MACD movements.
  • Confirm the signal: Use price action, volume, or other indicators to validate the setup.
  • Manage risk: Set position sizes and stop-loss levels in line with a disciplined trading plan.

Example:

  • Bullish crossover setup: A stock trading in a steady consolidation range experiences a bullish crossover when the faster MACD line crosses above the signal line.
  • Histogram expansion: Simultaneously, the MACD histogram bars begin growing taller above the zero line, confirming that upside buying momentum is actively accelerating.
  • Practical interpretation: Traders view this combination as an actionable cue that short-term buying pressure is overtaking the previous trend, prompting them to look for entry points while managing risk with a stop-loss just below recent support.

Can MACD Be Used With Other Indicators?

Yes, the MACD indicator can be paired with other technical tools to improve analysis:

Indicator  Main Use 
MACD  Momentum and trend direction 
RSI  Momentum and overbought/oversold conditions 
Moving Averages  Trend direction 
Volume  Strength of market participation 

Mistakes to Avoid When Using MACD

  • Treating every crossover as an automatic trade
  • Ignoring the broader price trend
  • Using the MACD indicator without checking price action
  • Overloading the chart with too many indicators
  • Taking positions without a risk-management plan

Limitations of MACD

As the MACD is calculated using moving averages of past prices, it is a lagging indicator that can trail price movements. It may also generate false signals during sideways or choppy markets. The quality and reliability of MACD signals can also vary depending on the timeframe used and prevailing market conditions, with signals generally behaving differently in strongly trending markets than in volatile or range-bound markets.

  • Lagging nature: Because MACD relies on historical EMAs, its signals trail price action, meaning part of a move may already be over before a crossover occurs.
  • Whipsaws in sideways markets: In range-bound or low-volatility markets, frequent line crossovers produce false signals that can trigger unprofitable trades.
  • Premature divergences: Trend divergences can appear long before an actual reversal, potentially trapping traders who act on them too early.
  • No fixed boundaries: Unlike oscillators bounded between 0 and 100, MACD has no upper or lower limits, making extreme readings difficult to interpret in isolation.
  • Sensitivity to settings: Default parameters (12, 26, 9) may cause excessive market noise when applied indiscriminately to rapid intraday or high-volatility charts.

Conclusion

The MACD indicator identifies price momentum and trend direction through its core components: the MACD line, signal line, and histogram. While crossovers, zero-line movements, and divergences offer helpful insights into changing market conditions, MACD does not guarantee price movements and can generate false signals in choppy markets. For effective results, traders should always combine MACD with price action, volume analysis, and strict risk management protocols

FAQs

 The default settings are a 12-period EMA, a 26-period EMA, and a 9-period signal line.

A bullish crossover occurs when the MACD line crosses above the signal line, signaling potential upside momentum, though confirmation from other indicators is recommended.

Yes, MACD (Moving Average Convergence Divergence) can be used for intraday trading to identify momentum and potential trend changes. However, shorter timeframes can produce more false signals, so traders often use MACD alongside price action, support and resistance levels, volume, and appropriate risk management rather than relying on it alone.

 A bearish crossover occurs when the MACD line crosses below the signal line, suggesting that upside momentum is waning or downside momentum is building.

 It indicates that the 12-period EMA is above the 26-period EMA, pointing to positive market momentum.

Divergence occurs when price action moves in the opposite direction of the MACD indicator, often signaling a potential weakening of the current trend.

MACD is primarily a lagging indicator because it relies on historical price moving averages.

Using MACD alone can result in false signals. It should always be combined with price action, volume, or other technical tools.

Open Free Demat Account!

Join our 3.8 Cr+ happy customers

+91

Open Free Demat Account!

Join our 3.8 Cr+ happy customers
+91