MACD Indicator: Complete Guide
MACD (Moving Average Convergence Divergence) is one of the most popular trend-following momentum indicators. Created by Gerald Appel, it’s used to identify trend direction, momentum, and potential reversals.
What is MACD?
MACD shows the relationship between two moving averages. It consists of three components:
MACD Components:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD Line = 12 EMA - 26 EMA
Signal Line = 9 EMA of MACD Line
Histogram = MACD Line - Signal Line
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MACD Formula
Default Settings
| Parameter | Value | Meaning |
|---|---|---|
| Fast EMA | 12 | Short-term average |
| Slow EMA | 26 | Long-term average |
| Signal | 9 | Signal line average |
Calculation
MACD Line = 12 EMA - 26 EMA
Signal Line = 9-period EMA of MACD
Histogram = MACD Line - Signal Line
MACD Visual
MACD Histogram
███████████████████ ███████████████████
╱╲ ╱╲
╱ ╲ ╱ ╲
╱ ╲ ╱ ╲
╱ ╲ ╱ ╲
╱ ╲ ╱ ╲
╱ ╲ ╱ ╲
─────────────────────╱─────────────────────
MACD Line ═════════════════════════════
Signal ═════════════════════════════
↑
Crossover = Signal
How to Use MACD
1. Crossover
Bullish Crossover:
- MACD crosses above signal line = BUY
Bearish Crossover:
- MACD crosses below signal line = SELL
BUY
↗ ↗
↗ ↗
↗ ↗
↗ ↗
MACD ────────────────── Signal
↘ ↘
↘ ↘
↘ ↘
↘ ↘
SELL
2. Zero Line Crossover
Above zero: Price in uptrend (12 EMA > 26 EMA) Below zero: Price in downtrend (12 EMA < 26 EMA)
3. Divergence
Bullish Divergence:
- Price makes lower low
- MACD makes higher low
- Potential reversal UP
Bearish Divergence:
- Price makes higher high
- MACD makes lower high
- Potential reversal DOWN
4. Histogram
Growing histogram = Momentum increasing Shrinking histogram = Momentum decreasing
MACD Strategies
Strategy 1: Trend Following
Entry Conditions:
- Price in uptrend (above 50 SMA)
- MACD crosses above signal
- Price at support
Stop: Below recent low
Target: New high
Strategy 2: Signal Line Fade
Entry Conditions:
- Overextended move
- MACD at extreme
- Rejection candle
Stop: Beyond rejection
Target: Mean reversion
Strategy 3: Divergence Reversal
Entry Conditions:
- Divergence forms
- Price breaks trendline
- MACD confirms
Stop: Beyond divergence point
Target: Previous structure
MACD Settings by Market
| Market | Fast | Slow | Signal |
|---|---|---|---|
| Stocks | 12 | 26 | 9 |
| Forex | 12 | 26 | 9 |
| Crypto | 8 | 17 | 9 |
| Indices | 12 | 26 | 9 |
MACD Timeframes
| Timeframe | Best For |
|---|---|
| Daily | Swing trades |
| 4-Hour | Multi-day |
| 1-Hour | Intraday |
MACD vs RSI
| Indicator | Best For |
|---|---|
| MACD | Trend following |
| RSI | Mean reversion |
Combined: Use MACD for direction, RSI for entry timing.
Common MACD Mistakes
1. Trading Every Crossover
Problem: Too many signals in ranging markets.
Result: Small losses add up.
Solution: Only trade with trend.
2. Ignoring Lag
Problem: Using MACD for precise timing.
Result: Late entries.
Solution: Use as confirmation, not timing.
3. No Zero Line Filter
Problem: Entering when MACD below zero in uptrend.
Result: Against momentum.
Solution: Only enter above zero for longs.
MACD Checklist
☐ Trend identified?
☐ Price above/below 50 EMA?
☐ MACD crossed signal?
☐ Above/below zero line?
☐ Histogram confirming?
☐ Stop placed?
Related Topics
- Indicators — Other indicators
- RSI — Confirm with RSI
- Volatility — Context
- MACD-Strategy — Trading setup
MACD confirms momentum. Price enters.