Moving Average Convergence Divergence (MACD)
Developed by Gerald Appel · 1979
Quick Answer
The Moving Average Convergence Divergence indicator (MACD) was developed by analyst Gerald Appel in the late 1970s and became one of the most widely followed momentum indicators of the modern era. It is built from three components: a fast exponential moving average (12 periods), a slow exponential moving average (26 periods), and a signal line (9-period EMA of the difference).
What is the Moving Average Convergence Divergence?
The Moving Average Convergence Divergence indicator (MACD) was developed by analyst Gerald Appel in the late 1970s and became one of the most widely followed momentum indicators of the modern era. It is built from three components: a fast exponential moving average (12 periods), a slow exponential moving average (26 periods), and a signal line (9-period EMA of the difference). The MACD line plots the gap between the two EMAs, and a histogram visualises the gap between MACD and its signal line. Traders use the MACD to confirm trend direction, spot momentum shifts, time entries on crossovers, and detect divergences between momentum and price.
How It Works
The MACD line is calculated by subtracting the 26-period EMA from the 12-period EMA. When the 12 is above the 26, MACD is positive and momentum is bullish. When the 12 drops below the 26, MACD turns negative. The signal line smooths the MACD and generates classic crossover entries: a bullish cross occurs when MACD crosses above signal, a bearish cross when MACD crosses below. The histogram — MACD minus signal — visualises the size and direction of that gap, so traders can see momentum accelerating or decelerating before a crossover actually happens. Zero-line crosses are a second signal: MACD crossing above zero confirms bullish control, crossing below confirms bearish control.
Formula
MACD Line = EMA(12) of Close - EMA(26) of Close
Signal Line = EMA(9) of MACD Line
Histogram = MACD Line - Signal LineHow to Read the MACD
- 1MACD crosses above signal line: bullish momentum shift, possible long entry
- 2MACD crosses below signal line: bearish momentum shift, possible short entry
- 3MACD crosses above zero: bullish trend confirmation
- 4MACD crosses below zero: bearish trend confirmation
- 5Histogram expanding: momentum accelerating in current direction
- 6Histogram contracting: momentum fading, watch for crossover
- 7Bullish/bearish divergence against price signals possible reversal
Strengths and Weaknesses
Strengths
- +Combines trend and momentum in a single indicator
- +Histogram gives early warning of momentum shifts before crossovers
- +Works across all asset classes and timeframes
- +Zero-line provides clear trend filter
- +Available in every charting platform by default
Weaknesses
- −Lagging indicator — crossovers often arrive after the move has started
- −Whipsaws in ranging markets produce many false signals
- −Default 12/26/9 parameters were chosen for daily charts in the 1970s — modern markets may need different settings
- −Zero-line distance is not normalised, so thresholds differ by instrument
- −Divergence can persist for long periods without resolving
Best Timeframes
Works on all timeframes. The default 12/26/9 parameters are calibrated for daily charts but translate reasonably well to 4H and 1H. Scalpers on 5-minute charts often use 5/13/6 or 3/10/16 variants.
Best for: Trending markets where traders need to confirm direction, filter entries, and time exits on momentum shifts. Excellent as a secondary confirmation tool next to price action.
Example Strategy
MACD Zero-Line Pullback: Wait for price to establish a clear uptrend on the 1H chart with MACD holding above zero. On the next pullback to the 20 EMA, enter long when the MACD histogram stops declining and ticks back up — this signals momentum rejoining the trend. Stop below the pullback low, target a minimum of 2:1 risk-reward, and scale out at resistance levels. The strategy fails in choppy markets, so always check the 4H trend before taking any 1H entry.
This example is educational, not financial advice. Always backtest any strategy and manage risk with appropriate position sizing.
Related Indicators
Brokers That Offer the MACD
Any broker with MetaTrader 4, MetaTrader 5, or cTrader supports the MACD as a standard indicator. Below are our top EU-regulated picks.
Frequently Asked Questions
What is the Moving Average Convergence Divergence (MACD)?
The Moving Average Convergence Divergence indicator (MACD) was developed by analyst Gerald Appel in the late 1970s and became one of the most widely followed momentum indicators of the modern era. It is built from three components: a fast exponential moving average (12 periods), a slow exponential moving average (26 periods), and a signal line (9-period EMA of the difference). The MACD line plots the gap between the two EMAs, and a histogram visualises the gap between MACD and its signal line. Traders use the MACD to confirm trend direction, spot momentum shifts, time entries on crossovers, and detect divergences between momentum and price.
Who developed the MACD?
MACD was developed by Gerald Appel in 1979.
What is the formula for the MACD?
MACD Line = EMA(12) of Close - EMA(26) of Close Signal Line = EMA(9) of MACD Line Histogram = MACD Line - Signal Line
What timeframes work best with MACD?
Works on all timeframes. The default 12/26/9 parameters are calibrated for daily charts but translate reasonably well to 4H and 1H. Scalpers on 5-minute charts often use 5/13/6 or 3/10/16 variants.
What is MACD best used for?
Trending markets where traders need to confirm direction, filter entries, and time exits on momentum shifts. Excellent as a secondary confirmation tool next to price action.