MACD (Moving Average Convergence Divergence) is a trend indicator that can measure (Momentum) simultaneously.
This indicator is derived from combining two (Exponential Moving Averages) (EMA) - one tracking short-term price changes, and the other tracking long-term trends, to observe whether the two lines are moving closer (Convergence) or diverging (Divergence).
MACD was developed by Gerald Appel in the late 1970s, using the comparison of EMA(26) with EMA(12), and comparing with the Signal Line, which is an EMA(9), to capture real-time trend changes.
How is the MACD constructed?
1. Main MACD value
MACD = EMA(12) - EMA(26)
Basic rules:
MACD > 0 = Uptrend (short-term average above long-term)
MACD < 0 = Downtrend (short-term average below long-term)
Additionally, the strength of the trend can be gauged from the slope of the MACD line - steep slope = strong trend, decreasing slope = weakening trend.
2. Signal Line
Signal Line = EMA(9) of MACD
The Signal Line is used to confirm signals quickly:
MACD > 0 and Signal Line > MACD = Bullish MACD (confirms uptrend)
MACD < 0 and Signal Line < MACD = Bearish MACD (confirms downtrend)
3. MACD Histogram
Histogram = MACD – Signal Line
Used to observe trend (and momentum):
Histogram > 0 = MACD above Signal Line (bullish), the larger the positive, the stronger
Histogram < 0 = MACD below Signal Line (bearish), the larger the negative, the stronger
Histogram = 0 = critical point, trend reversal signal
Why use EMA instead of SMA?
EMA gives more weight to recent prices, making it more responsive to price changes than SMA, which is suitable for time series data like stock and currency prices. MACD thus uses EMA to generate faster signals.
What does MACD tell us?
1) Trend analysis
Strong uptrend: EMA(12) is above EMA(26) and the gap widens, making MACD positive and rising.
Strong downtrend: EMA(12) is below EMA(26) and the gap widens, making MACD negative and falling.
Weak uptrend: MACD is positive but the slope decreases, indicating weakening trend.
Weak downtrend: MACD is negative but the slope decreases, indicating weakening trend.
( 2) Momentum strength
When MACD accelerates ###positively or negatively), it indicates that short-term and long-term EMAs are diverging = strong momentum.
When MACD’s slope lessens, it shows EMAs are starting to converge = weakening momentum.
( 3) Divergence signals
Bearish Divergence: Price makes new highs but MACD is lower = warning that the uptrend may end.
Bullish Divergence: Price makes new lows but MACD is higher = warning that the downtrend may end.
How to use MACD: Practical methods traders use
( Method 1: Zero Cross - Basic Signal
Buy Signal: MACD crosses above the zero line
Sell Signal: MACD crosses below the zero line
Advantages: clear signals. Limitations: signals can be slow, often lagging behind trend development.
) Method 2: MACD Crossover - Faster signals
Buy Signal: MACD crosses Signal Line upward ###even if MACD is still negative)
Sell Signal: MACD crosses Signal Line downward (even if MACD is still positive)
This method is better than Zero Cross because it reacts faster but may produce more false signals (whipsaws) during sideways markets.
Method 3: Divergence - Reversal points
Use when MACD shows divergence with price. This signal is less frequent but often more reliable when it occurs.
Combining MACD with other indicators
( MACD + RSI
RSI quickly measures short-term momentum; MACD confirms medium-term trend. Use RSI to identify oversold/overbought conditions, then confirm with MACD.
) MACD + Bollinger Bands
Bollinger Bands show breakouts; MACD confirms trend continuation. Use BB as initial signal, then confirm with MACD Zero Cross.
MACD + William % Range
William % Range indicates overbought/oversold; MACD confirms trend change. Use William to identify extreme zones, then confirm with MACD.
( MACD + Price Patterns
Use price patterns )Triangle, H&S, Double Bottom( as initial signals, then confirm with MACD Zero Cross for breakout.
Limitations to be aware of
MACD is a Lagging Indicator and signals are slower than price:
Zero Cross is the slowest, often lagging behind trend.
Crossover is faster but can produce whipsaws.
Divergence is rare but highly reliable when it occurs.
Never rely solely on MACD; always combine with other indicators or price patterns to improve accuracy.
Actual example: USDCHF
Date
Close Price
EMA)12(
EMA)26###
MACD
Signal
Histogram
21/07
0.8651
0.8705
0.8808
-0.0104
-0.0067
-0.0037
15/06
0.9001
0.9055
0.9021
0.0034
0.0039
-0.0005
14/06
0.9053
0.9065
0.9022
0.0042
0.0040
0.0002
13/06
0.9083
0.9062
0.9020
0.0041
0.0039
0.0002
From these actual numbers, plotting on a chart shows MACD and Signal Line connected, with the Histogram illustrating the distance between them.
How to set up MACD on a platform
Add Indicator → Select MACD
Adjust FastLength ###EMA### and SlowLength ###EMA### as desired
Adjust SignalLength if you want the Signal Line to be faster or slower
Default values (12, 26, 9) work well for intraday to swing trading
Summary
How to use MACD depends on your chosen method — Zero Cross for clarity, Crossover for speed, or Divergence for reversal detection.
Success depends on:
Understanding what MACD was designed for
Combining it with other indicators or price patterns
Experimenting with settings and timeframes to find your optimal strategy
Practicing on demo accounts before trading with real money
To trade effectively, remember MACD is just one part; it’s not everything. Combining it with risk management and real experience is key.
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
How to use MACD: A must-know indicator for traders
What is MACD - Basic Introduction
MACD (Moving Average Convergence Divergence) is a trend indicator that can measure (Momentum) simultaneously.
This indicator is derived from combining two (Exponential Moving Averages) (EMA) - one tracking short-term price changes, and the other tracking long-term trends, to observe whether the two lines are moving closer (Convergence) or diverging (Divergence).
MACD was developed by Gerald Appel in the late 1970s, using the comparison of EMA(26) with EMA(12), and comparing with the Signal Line, which is an EMA(9), to capture real-time trend changes.
How is the MACD constructed?
1. Main MACD value
MACD = EMA(12) - EMA(26)
Basic rules:
Additionally, the strength of the trend can be gauged from the slope of the MACD line - steep slope = strong trend, decreasing slope = weakening trend.
2. Signal Line
Signal Line = EMA(9) of MACD
The Signal Line is used to confirm signals quickly:
3. MACD Histogram
Histogram = MACD – Signal Line
Used to observe trend (and momentum):
Why use EMA instead of SMA?
EMA gives more weight to recent prices, making it more responsive to price changes than SMA, which is suitable for time series data like stock and currency prices. MACD thus uses EMA to generate faster signals.
What does MACD tell us?
1) Trend analysis
Strong uptrend: EMA(12) is above EMA(26) and the gap widens, making MACD positive and rising.
Strong downtrend: EMA(12) is below EMA(26) and the gap widens, making MACD negative and falling.
Weak uptrend: MACD is positive but the slope decreases, indicating weakening trend.
Weak downtrend: MACD is negative but the slope decreases, indicating weakening trend.
( 2) Momentum strength
When MACD accelerates ###positively or negatively), it indicates that short-term and long-term EMAs are diverging = strong momentum.
When MACD’s slope lessens, it shows EMAs are starting to converge = weakening momentum.
( 3) Divergence signals
Bearish Divergence: Price makes new highs but MACD is lower = warning that the uptrend may end.
Bullish Divergence: Price makes new lows but MACD is higher = warning that the downtrend may end.
How to use MACD: Practical methods traders use
( Method 1: Zero Cross - Basic Signal
Buy Signal: MACD crosses above the zero line Sell Signal: MACD crosses below the zero line
Advantages: clear signals. Limitations: signals can be slow, often lagging behind trend development.
) Method 2: MACD Crossover - Faster signals
Buy Signal: MACD crosses Signal Line upward ###even if MACD is still negative) Sell Signal: MACD crosses Signal Line downward (even if MACD is still positive)
This method is better than Zero Cross because it reacts faster but may produce more false signals (whipsaws) during sideways markets.
Method 3: Divergence - Reversal points
Use when MACD shows divergence with price. This signal is less frequent but often more reliable when it occurs.
Combining MACD with other indicators
( MACD + RSI RSI quickly measures short-term momentum; MACD confirms medium-term trend. Use RSI to identify oversold/overbought conditions, then confirm with MACD.
) MACD + Bollinger Bands Bollinger Bands show breakouts; MACD confirms trend continuation. Use BB as initial signal, then confirm with MACD Zero Cross.
MACD + William % Range
William % Range indicates overbought/oversold; MACD confirms trend change. Use William to identify extreme zones, then confirm with MACD.
( MACD + Price Patterns Use price patterns )Triangle, H&S, Double Bottom( as initial signals, then confirm with MACD Zero Cross for breakout.
Limitations to be aware of
MACD is a Lagging Indicator and signals are slower than price:
Never rely solely on MACD; always combine with other indicators or price patterns to improve accuracy.
Actual example: USDCHF
From these actual numbers, plotting on a chart shows MACD and Signal Line connected, with the Histogram illustrating the distance between them.
How to set up MACD on a platform
Summary
How to use MACD depends on your chosen method — Zero Cross for clarity, Crossover for speed, or Divergence for reversal detection.
Success depends on:
To trade effectively, remember MACD is just one part; it’s not everything. Combining it with risk management and real experience is key.