Moving Average Convergence Divergence (MACD) is a trend-following indicator that shows the relationship between two moving averages to identify momentum changes
MACD Indicator: What It Is and How It Works
The Moving Average Convergence Divergence (MACD) is a momentum-and-trend indicator that measures the distance between two exponential moving averages (EMAs). It works by plotting the MACD line (12 EMA − 26 EMA), a signal line (9 EMA of the MACD line), and a histogram that shows the gap between them to highlight trend direction and momentum shifts.
What is the MACD indicator and how does it work?
The Moving Average Convergence Divergence (MACD) is a common “all-rounder” indicator used in technical analysis. Gerald Appel built it in the late 1970s to combine trend and momentum in one view.
At its core, MACD is the spread between two EMAs: 12 EMA minus 26 EMA. That spread expands when momentum builds and contracts when momentum fades.
Traders use MACD to:
- Confirm trend direction (bullish vs bearish)
- Spot momentum shifts (strengthening vs weakening)
- Find potential reversal warnings (especially via divergence)
Most MACD signals come from signal-line crossovers and MACD divergence. A MACD line cross above the signal line is typically bullish momentum; a cross below is bearish. It’s widely used in equities, futures, and FX—especially for day traders and swing traders who want confirmation before entering.
Who invented MACD and when was it created?
Gerald Appel developed the MACD around 1977. The goal was to reduce whipsaws compared to basic moving-average systems while keeping the indicator responsive enough to catch momentum shifts.
The major upgrade came in 1986 when Thomas Aspray added the histogram. The histogram plots the difference between the MACD line and the signal line as bars, making momentum shifts easier to see and often hinting that a crossover is approaching.
MACD is still a default indicator on most platforms because it consistently helps traders read trend and momentum when used with market context.
How do you use MACD in technical analysis?
MACD works best as a confirmation tool. Use it to confirm what price action and structure are already showing, not to create trades by itself.
How does MACD confirm trend and momentum strength?
MACD confirms trend using the zero line. If MACD is above zero, momentum supports a bullish trend. If MACD is below zero, momentum supports a bearish trend.
To judge strength, watch:
- Slope of the MACD line (steeper usually = stronger momentum)
- Distance between MACD and the signal line (wider usually = stronger momentum)
A flat MACD and tight spacing often means chop, rotation, or a trend that’s losing energy.
Divergence is another key clue. If price makes new highs but MACD doesn’t, momentum is weakening. Same concept on the downside.
How do traders use MACD for entries and exits?
MACD entries are usually based on the signal-line crossover.
- Long trigger: MACD crosses above the signal line, ideally with MACD above zero
- Short trigger: MACD crosses below the signal line, ideally with MACD below zero
MACD exits are often based on momentum fading. The histogram helps here. If you’re long and the histogram bars shrink while price still rises, momentum is fading. That’s a practical cue to trim, tighten stops, or stop adding.
MACD alone throws false signals in ranges. It reads better when paired with:
- RSI (stretch/mean-reversion context)
- Volume (participation confirmation)
- Support/resistance (levels like prior day high/low, weekly levels, VWAP bands, order blocks)
The most reliable workflow is MACD + price action: let price define the level, and use MACD to confirm momentum agrees.
How do you spot bullish and bearish MACD divergence?
MACD divergence is when price and MACD disagree, which often warns that momentum is weakening.
Bullish divergence is price making lower lows while MACD (line or histogram) makes higher lows. That shows selling pressure is fading, often near capitulation wicks or a second push down that can’t follow through.
Bearish divergence is price making higher highs while MACD makes lower highs. That shows buying pressure is fading, often into blow-off tops, late-stage trend moves, or resistance tests that keep getting sold.
Divergence Type | Price Action | MACD Pattern | Signal Interpretation |
|---|---|---|---|
Bullish Divergence | Lower Lows | Higher Lows | Sellers losing pressure, upside reversal risk |
Bearish Divergence | Higher Highs | Lower Highs | Buyers fading, downside reversal risk |
Divergence is not an entry by itself. In consolidations it fires constantly, and in strong trends it can persist for a long time. Treat it as an alert, then confirm with structure (level break, failed retest, market structure shift, or a clean candle close).
What are the best MACD settings for your timeframe?
The standard MACD settings are 12,26,9 (12 EMA, 26 EMA, 9 EMA signal line). The 12,26,9 default is a solid baseline on daily charts.
Many traders adjust settings based on timeframe and volatility:
- Faster (common for scalping/day trading): 8,17,9 to react quicker
- Slower (common for longer-term trading): 19,39,9 to filter noise
Faster settings react quicker but whip more. Slower settings are cleaner but late. Volatility matters too—what works on BTC/USD can feel sluggish on USD/CHF, and what works on Apple can be noisy on a thin biotech.
Don’t change parameters because they “look good” on one chart. Backtest across regimes (trend, range, high vol, low vol) and stick to what you can execute consistently.
What are the best MACD trading strategies?
The best MACD strategies use it as a filter for trend, pullbacks, and momentum shifts. MACD performs best in trending markets and worse in sideways ranges.
How do you trade MACD in a trend?
Trend-following is the cleanest MACD use. In an uptrend, wait for a pullback, then look for MACD to cross back above the signal line while staying above zero. In a downtrend, look for the opposite below zero.
How do you use MACD for reversals?
MACD reversal trades need confluence. A bearish divergence into major resistance plus a bearish signal-line cross is stronger than either signal alone. Same idea for bullish divergence at support.
How do you use the MACD histogram as a filter?
The histogram is a momentum speedometer. Some traders enter when bars flip from red to green (or vice versa). Others wait for a “three-bar build” in the new direction to reduce fakeouts.
Pairing MACD with other tools improves signal quality. RSI can flag stretched conditions, volume confirms participation, and Bollinger Bands frame volatility.
Multi-timeframe alignment is another strong filter. If daily MACD is bullish and 4H is crossing up from a pullback, that’s often cleaner than taking an hourly crossover against the higher-timeframe trend.
What are the MACD line, signal line, and histogram?
What is the MACD line?
The MACD line is the difference between the fast EMA and the slow EMA. Formula: MACD Line = 12-period EMA − 26-period EMA. Because it’s a spread, it oscillates around zero.
If the MACD line is above zero, the 12 EMA is above the 26 EMA (bullish momentum). If it’s below zero, momentum leans bearish.
MACD reacts faster than a single moving average because it tracks the relationship between a “fast” and “slow” EMA. When price accelerates, the spread widens; when price stalls, the spread compresses.
What is the MACD signal line?
The signal line is a 9-period EMA of the MACD line. It smooths MACD so you’re not reacting to every small move.
The main trigger is the crossover:
- Bullish: MACD line crosses above the signal line
- Bearish: MACD line crosses below the signal line
In practice, the signal line is a “go/no-go” filter. It won’t catch exact tops or bottoms, but it helps reduce noise—especially on choppy charts like EUR/USD during a slow London session or a small-cap stock after the opening burst.
What is the MACD histogram?
The MACD histogram is the difference between the MACD line and the signal line, shown as bars. It makes momentum changes easy to see at a glance.
How to read it:
- Bars growing: momentum strengthening
- Bars shrinking: momentum fading (even if price still trends)
- Positive bars: MACD above signal line
- Negative bars: MACD below signal line
The histogram can also hint at crossovers. If bars climb toward zero from below, bearish momentum is dying. If bars roll over above zero, bullish momentum is weakening.
What do convergence, divergence, and crossovers mean in MACD?
What do convergence and divergence mean in MACD?
Convergence means the two EMAs are moving closer together, so MACD moves toward zero. This usually signals fading momentum and often appears during consolidation, flags, or transitions before a reversal.
Divergence means the EMAs are separating, so MACD moves away from zero. This typically confirms strong momentum and trend conviction.
Convergence is a cue to tighten risk and stop expecting clean continuation. Expanding divergence reinforces that the trend still has energy.
What does a MACD zero-line crossover signal?
A MACD zero-line crossover is a trend confirmation. A cross above zero means the fast EMA has moved above the slow EMA (bullish). A cross below zero is bearish.
Zero-line crosses are slower than signal-line crosses, but they usually produce fewer fakeouts on higher timeframes.
Zero-line rejection is a useful nuance: if the histogram comes back toward zero and then turns away without crossing, it often signals trend continuation after a pullback.
How do MACD signal-line crossovers work?
Signal-line crossovers are the most common MACD signal. MACD above signal = bullish shift; MACD below signal = bearish shift.
Where the crossover happens matters:
- Bullish crossover above zero: typically stronger (aligned with uptrend)
- Bearish crossover below zero: typically cleaner (aligned with downtrend)
MACD signals lag because they are built from moving averages. They work best in trends and perform poorly in ranges without filters. That’s why crossovers are less reliable in sideways conditions.
How do you improve MACD results over time?
The best way to improve MACD performance is to measure which MACD conditions work in your market and timeframe. Log each setup (crossover above/below zero, divergence yes/no, the level you traded against, and your exit cue like histogram fade vs opposite cross), then review which conditions produce follow-through versus chop.
Over a meaningful sample, trade review helps you tighten rules, size risk appropriately, and stop taking low-quality “indicator-only” entries. A structured trading journal also lets you track PnL, win rate, drawdowns, and screenshots so you can connect outcomes to decisions, not just the indicator reading. Tools such as trading journal analytics dashboard for trade tracking and performance metrics can help organize those notes into statistics you can act on.