The Moving Average Convergence Divergence (MACD) combines trend direction, momentum, and reversal signals into one indicator. It shows the relationship between two moving averages of price and gives swing traders actionable crossover and divergence signals.
What is MACD?
MACD is a trend-following momentum indicator built from three components:
- MACD Line: The difference between 12-period and 26-period EMAs
- Signal Line: 9-period EMA of the MACD line
- Histogram: Visual representation of the distance between MACD and signal line
Standard MACD Settings
- Fast EMA: 12 periods
- Slow EMA: 26 periods
- Signal Line: 9 periods
These settings work well for swing trading on daily charts. Adjust if you have a tested reason to.
Understanding MACD Components
The MACD Line
Calculation: 12 EMA minus 26 EMA
Interpretation:
- Positive MACD = Short-term momentum is bullish
- Negative MACD = Short-term momentum is bearish
- Rising MACD = Momentum increasing
- Falling MACD = Momentum decreasing
The Signal Line
Calculation: 9-period EMA of the MACD line
Purpose: Smooths the MACD line and generates trading signals through crossovers.
The Histogram
Calculation: MACD line minus Signal line
Interpretation:
- Positive histogram = MACD above signal (bullish)
- Negative histogram = MACD below signal (bearish)
- Growing bars = Momentum increasing
- Shrinking bars = Momentum decreasing
MACD Strategy 1: Signal Line Crossover
The primary MACD trading signal.
Bullish Crossover
Signal: MACD line crosses above the signal line
How to Trade:
- Wait for MACD to cross above signal line
- Confirm with price action (breaking resistance)
- Enter on next day open or pullback
- Set stop below recent swing low
Bearish Crossover
Signal: MACD line crosses below the signal line
How to Trade:
- Wait for MACD to cross below signal line
- Confirm with price action (breaking support)
- Exit longs or enter shorts
- Set stop above recent swing high
Crossover Quality
Not all crossovers are equal:
Strong Crossovers:
- Occur after extended trend
- Cross happens away from zero line
- Histogram shows clear momentum shift
- Price confirms with volume
Weak Crossovers:
- Occur in choppy markets
- Cross happens near zero line
- Small histogram bars
- No price confirmation
MACD Strategy 2: Centerline Crossover
The zero line represents trend direction.
Bullish Centerline Cross
Signal: MACD crosses above zero
Meaning: 12 EMA has crossed above 26 EMA, confirming a bullish trend
How to Trade:
- Use as confirmation for long positions
- More significant than signal line crossover
- Often occurs after signal line cross
Bearish Centerline Cross
Signal: MACD crosses below zero
Meaning: 12 EMA has crossed below 26 EMA, confirming a bearish trend
How to Trade:
- Use as confirmation for short positions or exits
- Warning sign for existing longs
- Consider tightening stops
MACD Strategy 3: Histogram Reversals
The histogram often leads price and MACD turns.
Reading Histogram Momentum
Bullish Signs:
- Histogram bars getting shorter below zero (selling pressure decreasing)
- First positive bar after series of negative bars
- Histogram making higher lows while below zero
Bearish Signs:
- Histogram bars getting shorter above zero (buying pressure decreasing)
- First negative bar after series of positive bars
- Histogram making lower highs while above zero
Trading Histogram Reversals
- Look for shrinking histogram bars
- Wait for first bar in opposite direction
- This often precedes signal line crossover
- Use as early warning for position management
MACD Strategy 4: Divergence
Like RSI, MACD divergences signal potential reversals.
Bullish MACD Divergence
Setup:
- Price makes lower low
- MACD makes higher low
Trading:
- Identify divergence on daily chart
- Wait for signal line bullish crossover
- Enter on price breakout above recent swing
- Stop below the divergence low
Bearish MACD Divergence
Setup:
- Price makes higher high
- MACD makes lower high
Trading:
- Identify divergence on daily chart
- Wait for signal line bearish crossover
- Exit longs or enter shorts on breakdown
- Stop above the divergence high
Divergence Confirmation
Divergence is more reliable when:
- It occurs at significant price levels
- Multiple indicators show divergence
- Volume confirms (declining on final push)
Combining MACD with Other Tools
MACD + RSI
- MACD shows trend direction
- RSI shows overbought/oversold
- Best signals: RSI oversold + MACD bullish crossover
MACD + Moving Averages
- Use 50/200 MA for trend filter
- Take bullish MACD signals above 50 MA
- Take bearish MACD signals below 50 MA
MACD + Support/Resistance
- MACD crossover at support = High-probability buy
- MACD crossover at resistance = High-probability sell
- Divergence at key levels = Strongest signals
MACD Settings for Different Styles
| Trading Style | Fast | Slow | Signal | Use Case |
|---|---|---|---|---|
| Standard | 12 | 26 | 9 | Swing trading |
| Fast | 8 | 17 | 9 | Active trading |
| Slow | 19 | 39 | 9 | Position trading |
Common MACD Mistakes
Mistake 1: Trading Every Crossover
Problem: Taking every signal line cross leads to overtrading Solution: Filter with trend direction and price action
Mistake 2: Ignoring the Histogram
Problem: Missing early warning signs Solution: Watch histogram for momentum shifts before crossovers
Mistake 3: Not Confirming with Price
Problem: MACD says buy but price says no Solution: Wait for price confirmation (breakout, bounce, etc.)
Mistake 4: Wrong Timeframe
Problem: Using hourly MACD for swing trades Solution: Match MACD timeframe to your trading timeframe
MACD Quick Reference
| Signal | Condition | Action |
|---|---|---|
| Bullish crossover | MACD crosses above signal | Look to buy |
| Bearish crossover | MACD crosses below signal | Look to sell |
| Bullish centerline | MACD crosses above zero | Trend is up |
| Bearish centerline | MACD crosses below zero | Trend is down |
| Bullish divergence | Price low + MACD higher low | Reversal possible |
| Bearish divergence | Price high + MACD lower high | Reversal possible |
| Growing histogram | Bars increasing | Momentum building |
| Shrinking histogram | Bars decreasing | Momentum fading |
Using MACD as a System
MACD combines trend and momentum into one read. Signal line crossovers give you entries and exits. Centerline crosses confirm trend direction. Histogram changes warn you before crossovers happen. Divergences flag reversals. None of these signals work in isolation; you need price action and volume to confirm.
SwingFolio lets you tag trades by MACD setup (crossover, divergence, histogram reversal) and compare performance across signal types. Use the data to cut the setups that lose money and double down on the ones that work.
