Article

What is MACD & How to Identify Entry & Exit Points

The Moving Average Convergence Divergence (MACD) indicator is a robust and widely adopted technical analysis tool that traders use to pinpoint potential entry and exit points in financial markets. This article provides an in-depth overview of the MACD indicator, covering its historical background, key components, and the mathematical principles underlying its calculation. You will learn how to accurately interpret MACD signals, integrate them into effective trading strategies, and identify optimal moments for market entry and exit. Furthermore, the article discusses the inherent limitations of the MACD, offering a balanced viewpoint to enhance your trading decisions. Whether you are a beginner or seeking to improve your analytical toolkit, this guide delivers practical insights to boost your trading expertise with the MACD indicator at TMGM.

What is the MACD Indicator?

The MACD's full form is Moving Average Convergence Divergence (MACD). It is one of the most popular and widely used technical indicators in the stock market — or share market — used by traders practicing technical analysis, to identify changes in a financial asset's price trend, direction, and momentum.

MACD distinguishes itself from other technical indicators by combining trend-following and momentum oscillator elements, offering traders a versatile instrument that provides insights across various market conditions. Unlike many indicators that deliver a single type of signal, the MACD offers multiple analytical perspectives on price action.

Traders and analysts employ a range of technical indicators to detect market trends, anticipate potential trading shifts, and ultimately execute trades successfully or advise clients accordingly. Among these, the MACD has remained popular for decades due to its effectiveness and straightforward application. 

MACD was developed by technical analyst Gerald Appel in the late 1970s, and Thomas Aspray added the now-familiar histogram in 1986. More than 40 years on, it remains one of the most widely used momentum indicators across the stock market, forex, commodities and crypto. 

Appel initially introduced only the MACD line and the signal line. It was not until 1986 that Thomas Aspray enhanced the indicator by adding the histogram feature, which made the MACD more visually informative and easier for traders to interpret.

Despite being over 40 years old, the MACD remains relevant in contemporary especially in the stock markets, forex, commodities, and cryptocurrency trading. Its longevity underscores its utility and effectiveness across diverse market types and timeframes.

Core Components of the MACD (Moving Average Convergence Divergence)

The MACD indicator comprises three key components that work in tandem to provide traders with valuable insights into market dynamics:

The MACD Line


Figure 1: Explanation of the MACD Indicator

The MACD line is the primary component of the indicator and represents the difference between two exponential moving averages (EMAs), typically the 12-period EMA and the 26-period EMA. The MACD deliberately uses exponential moving averages rather than simple moving averages (SMAs). An SMA weights every day in its window equally, so it reacts slowly; an EMA weights the most recent closes more heavily, so the MACD responds faster to a fresh shift in a stock's momentum — which is the whole point of a momentum indicator.

The MACD deliberately uses exponential moving averages rather than simple moving averages (SMAs). An SMA weights every day in its window equally, so it reacts slowly; an EMA weights the most recent closes more heavily, so the MACD responds faster to a fresh shift in a stock's momentum — which is the whole point of a momentum indicator.

When the shorter-term EMA (12-period) rises above the longer-term EMA (26-period), the MACD line moves above zero, indicating increasing bullish momentum. Conversely, when the shorter-term EMA falls below the longer-term EMA, the MACD line moves below zero, signaling increasing bearish momentum.

The Signal Line

The signal line is a 9-period EMA of the MACD line itself. It serves as a trigger for buy and sell signals when the MACD line crosses above or below it. The signal line smooths the MACD line’s fluctuations, facilitating the identification of potential entry and exit points.

When the MACD line crosses above the signal line, it generates a bullish signal, indicating a potential buying opportunity. When it crosses below, it produces a bearish signal, suggesting a potential selling opportunity.

The MACD Histogram

Figure 2: MACD Histogram

The MACD histogram visualizes the difference between the MACD line and the signal line. When the MACD line is above the signal line, the histogram is positive (displayed as bars above zero). When the MACD line is below the signal line, the histogram is negative (bars below zero).

The height of the histogram bars reflects the distance between the MACD line and the signal line. As this distance widens, histogram bars grow taller, indicating strengthening momentum in the trend’s direction. Conversely, shrinking bars suggest weakening momentum.

How to Calculate MACD Formula?

The MACD measures the evolving relationship between short-term and long-term EMAs. Understanding its calculation helps traders comprehend how the indicator functions and why it delivers valuable signals.

The basic formula to calculate the MACD is:

MACD Line = 12-period EMA − 26-period EMA

The signal line is then a 9-period EMA of the MACD line, and the histogram is MACD Line − Signal Line.


Traders and analysts typically use closing prices over 12-day and 26-day periods to compute the EMAs for the MACD calculation. Subsequently, a 9-day EMA of the MACD line is plotted as the signal line to help identify potential market turning points.

Step-by-Step Calculation Example

To illustrate the MACD calculation, here is a simplified example:

  1. Calculate the 12-day EMA of the asset’s priceFor a stock trading at various prices over 12 days, calculate the 12-day EMA, weighting recent prices more heavily.

  2. Calculate the 26-day EMA of the asset’s priceSimilarly, calculate the 26-day EMA, which responds more slowly to price changes than the 12-day EMA.

  3. Calculate the MACD LineSubtract the 26-day EMA from the 12-day EMA: MACD Line = (12-day EMA − 26-day EMA)

  4. Calculate the Signal LineCompute the 9-day EMA of the MACD Line calculated in the previous step.

  5. Calculate the MACD HistogramSubtract the Signal Line from the MACD Line: MACD Histogram = MACD Line − Signal Line

Figure 3: MACD Calculation Process

Figure 4: MACD Chart Visualization

For example, if the 12-day EMA is $105 and the 26-day EMA is $100:

  • MACD Line = $105 − $100 = $5

  • If the 9-day EMA of the MACD Line (Signal Line) is $4

  • MACD Histogram = $5 − $4 = $1

Customizing MACD Settings or Parameters

While the standard MACD parameters are 12, 26, and 9, traders can adjust these to align with their specific trading strategies or timeframes. The defaults trace back to Gerald Appel's original design around weekly and monthly market cycles, which is why they behave most reliably on daily charts:

  • Faster MACD: Using shorter periods (e.g., 5, 13, and 4) creates a more responsive indicator that generates more signals but may increase false positives.
  • Slower MACD: Using longer periods (e.g., 19, 39, and 9) produces a more conservative indicator that generates fewer but potentially more reliable signals.

Experienced traders often experiment with different parameter settings to find the optimal combination for their trading style, specific assets, and preferred timeframes.

How to Read MACD Indicator?

How to use MACD indicator is based on observing the movement of moving averages either converging (coming together) or diverging (moving apart). The indicator oscillates above and below the zero line (centerline), signaling when the shorter moving average crosses the longer one. 



 Figure 5: MACD Chart

Crossing the Zero Line

Zero line crossovers occur when the MACD line passes through the centerline, indicating potential trend direction changes:

  • Bullish Zero Line Crossover: When the MACD line moves from below to above zero, it signals the 12-day EMA has crossed above the 26-day EMA, indicating a potential iptrend and a buying opportunity.
  • Bearish Zero Line Crossover: When the MACD line moves from above to below zero, it indicates the 12-day EMA has fallen below the 26-day EMA, suggesting a potential downtrend and a selling opportunity.

Zero line crossovers are commonly used to identify the overall trend: above zero indicates bullishness; below zero indicates bearishness.

Signal line crossovers occur more frequently than zero line crossovers, offering more trading opportunities but also a higher chance of false signals, especially in sideways or volatile markets.

MACD Divergence (Price vs. MACD)

 Figure 6: MACD Divergence

Analysts often monitor the MACD for divergence from price action. Divergence occurs when price and the MACD move in opposite directions, signaling potential trend reversals:

  • Bullish Divergence: When price forms lower lows but the MACD forms higher lows, indicating weakening bearish momentum and a possible trend reversal upwards.
  • Bearish Divergence: When price makes higher highs but the MACD forms lower highs, indicating weakening bullish momentum and a potential downward trend reversal.

Divergences are stronger signals when occurring after extended price moves and when the MACD is significantly above or below zero.

Histogram Analysis

The MACD histogram offers additional insights into momentum shifts:

  • Increasing Positive Histogram: Growing histogram bars above zero indicate strengthening bullish momentum.

  • Decreasing Positive Histogram: Shrinking histogram bars above zero suggest weakening bullish momentum, potentially signaling a bearish crossover.

  • Increasing Negative Histogram: Expanding histogram bars below zero signal strengthening bearish momentum.

  • Decreasing Negative Histogram: Contracting histogram bars below zero indicate weakening bearish momentum, possibly preceding a bullish crossover.

Histogram analysis is valuable for identifying early momentum changes before crossovers occur, helping traders anticipate trend shifts.

Finding Entry and Exit Points with MACD

Figure 7: Entry and Exit Points

One of the MACD’s key benefits is aiding traders in identifying potential entry and exit points. Proper interpretation of MACD signals can significantly improve trading outcomes. 

Entry Points Using MACD

The MACD offers several signal types that can indicate entry points:

1. Signal Line CrossoversThe most common buy signal occurs when the MACD line crosses above the signal line:

  • Buy Signal: MACD line crosses above the signal line

  • Stronger Buy Signal: When this crossover occurs below zero, it may indicate a reversal from a downtrend — and the further below the zero line the crossover happens, the stronger the signal, because a deeper prior downtrend leaves more room for the recovery to run.

2. Zero Line CrossoversWhen the MACD line crosses above zero, it signals the shorter-term EMA has crossed above the longer-term EMA:

  • Buy Signal: MACD line crosses above zero, suggesting a potential new uptrend

3. Bullish DivergenceOne of the strongest MACD signals:

  • Buy Signal: When price makes a new low but MACD forms a higher low

  • This indicates weakening bearish momentum despite falling prices

4. Histogram Reversals

  • Buy Signal: When the histogram starts increasing from negative territory (becoming less negative)

  • This can provide an early indication before an actual MACD line/signal line crossover

Exit Points Using MACD

Similarly, the MACD helps identify optimal exit points:

1. Signal Line Crossovers

  • Sell Signal: MACD line crosses below the signal line

  • Stronger Sell Signal: When this crossover occurs above zero after a prolonged uptrend — and the further above the zero line the crossover forms, the stronger the bearish signal.

2. Zero Line Crossovers

  • Sell Signal: The MACD line crosses below zero, indicating a shift from bullish to bearish momentum

3. Bearish Divergence

  • Sell Signal: When price makes a new high but MACD forms a lower high

  • This suggests weakening bullish momentum despite rising prices

4. Overbought / Oversold MACD

  • Sell Signal: When the MACD line extends far above the signal line (50 level)

  • Because the MACD is unbounded, this does not mark a fixed overbought level — it flags a relative overextension versus recent readings, which often precedes a pullback. Confirm with a bounded oscillator such as the RSI before acting.

Practical MACD Trading Tips

  1. Avoid False Signals: Confirm MACD signals with additional indicators or price action before executing trades.

  2. Consider the Trend: MACD signals are more reliable when aligned with the overall market trend.

  3. Timeframe Matters: Signals on higher timeframes (daily, weekly) tend to be more dependable than those on lower timeframes
     (1-minute, 5-minute).

  4. Signal Strength: The wider the gap between the MACD and signal line during a crossover, the stronger the potential move.

  5. Look for Confluence: The most effective trades occur when multiple MACD signals coincide. A crossover together with a rise in volume carries more weight because volume confirms that the momentum shift has real order flow behind it. Besides that, a trend filter such as the Average Directional Index (ADX) reading above 25 confirms a trend strong enough to trust a MACD signal, while a reading below 20 warns the market is ranging and prone to whipsaws.

  6. Mind the Context: The implications of a signal line crossover vary depending on its position relative to the zero line.


Example MACD Entry and Exit Strategy
Here'’s a straightforward MACD trading strategy commonly used by traders:

Entry (Buy):

  • Wait for the MACD line to cross above the signal line

  • Confirm that the histogram is expanding

  • Ensure the crossover aligns with the prevailing trend

  • Look for supporting price action, such as a bounce off support

Exit (Sell):

  • Sell when the MACD line crosses below the signal line

  • Exit when a bearish divergence forms after a prolonged uptrend

  • Take profits at targets identified by other technical analysis

  • Exit if your predetermined stop-loss is triggered

Remember, no indicator is flawless. Always apply sound risk management, regardless of the strength of a MACD signal.


Is MACD Overbought or Oversold? MACD vs RSI
The answer is no. The MACD does not tell you overbought or oversold status since it has no fixed ceiling or floor, so it has no concrete overbought/oversold thresholds. What traders read as "overextended" is relative: the MACD line stretched unusually far from its signal line or the zero line compared with its own recent range.

The Relative Strength Index (RSI) is the correct one to look at for overbought or oversold signals. RSI is bounded from 0 to 100 over a default 14 periods, with readings above 70 conventionally overbought and below 30 oversold. Because RSI measures the speed and size of recent price moves while MACD measures the relationship between two moving averages, the two answer different questions, so traders commonly run them together, using RSI to confirm that a MACD signal is firing into a correctly overextended move.

MACD Trading Strategies

The MACD’s flexibility makes it suitable for various trading strategies. Below are some of the most common and effective MACD-based approaches:

MACD Crossover Strategy

The MACD crossover strategy is among the most widely adopted:

Entry Rules:

  • For long positions: Enter when the MACD line crosses above the signal line while both are below zero.

  • For short positions: Enter when the MACD line crosses below the signal line while both are above zero.

Exit Rules:

  • For long positions: Exit when the MACD line crosses below the signal line.

  • For short positions: Exit when the MACD line crosses above the signal line.

    This strategy performs best in trending markets and can be enhanced by considering the overall trend and using additional confirmation indicators.


Zero Line Crossover Strategy
The zero-line crossover strategy targets major trend shifts:
Entry Rules:

  • For long positions: Enter when the MACD line crosses above zero.

  • For short positions: Enter when the MACD line crosses below zero.

Exit Rules:

  • For long positions: Exit when the MACD line crosses below zero.

  • For short positions: Exit when the MACD line crosses above zero.

This approach typically generates fewer signals than the crossover strategy but may identify more significant trend changes.

Divergence Trading Strategy

The divergence strategy focuses on discrepancies between price action and MACD readings:

Entry Rules:

  • For long positions: Enter on bullish divergence (price makes lower lows, MACD makes higher lows).

  • For short positions: Enter on bearish divergence (price makes higher highs, MACD makes lower highs).

Exit Rules:

  • For long positions: Exit at previous resistance or on bearish divergence.

  • For short positions: Exit at previous support or on bullish divergence.

Divergence strategies often provide earlier reversal signals but require experience to identify and interpret accurately.

Limitations of the MACD

While versatile and popular, the MACD has limitations:

  1. Lagging Indicator: Being based on moving averages, the MACD inherently lags price action. Signals often appear after a significant portion of the move has occurred.
  2. False Signals: The MACD can produce false signals, especially in choppy or sideways markets, leading to unprofitable trades. In a range, the MACD line whipsaws — crossing back and forth over the signal line with no follow-through. Experienced traders stand aside during these conditions or reduce position size rather than trade every crossover.
  3. No Volatility Consideration: Unlike indicators such as Bollinger Bands or Average True Range, the MACD does not account for market volatility, which can affect signal reliability.
  4. Standardized Settings: The default 12, 26, and 9 settings may not suit all assets or timeframes. Customization requires experience and testing.
  5. No Support/Resistance Identification: The MACD does not identify specific support or resistance levels, which are critical for setting stop-loss and take-profit orders.

    Being aware of these limitations enables traders to use the MACD more effectively, often by combining it with complementary indicators or adjusting their strategies accordingly.

Join thousands of successful traders who rely on TMGM's powerful technical analysis tools and expert guidance. Experience the TMGM difference in your MACD trading journey.

Frequently Asked Questions about MACD Indicator

Do professional traders use MACD?

+

Is MACD a leading or lagging indicator?

+

Is MACD a reliable indicator?

+
TMGM
Trade The World
The TMGM Academy and Market Insights Team is a collective of financial analysts and trading strategists. With access to real-time institutional data and over a decade of market operation, the team provides fact-based analysis on forex, gold, cryptocurrencies, stocks, commodities (like oil), and indices. Our content is strictly regulated, as outlined in our editorial policy page. TMGM adheres to ASIC and VFSC guidelines.
Join Over 1,000,000 clients on our award-winning trading platform
1
Apply for a Live
Account
2
Fund Your
Account
3
Start Trading
Instantly
Open Account