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

ParameterValueMeaning
Fast EMA12Short-term average
Slow EMA26Long-term average
Signal9Signal 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

MarketFastSlowSignal
Stocks12269
Forex12269
Crypto8179
Indices12269

MACD Timeframes

TimeframeBest For
DailySwing trades
4-HourMulti-day
1-HourIntraday

MACD vs RSI

IndicatorBest For
MACDTrend following
RSIMean 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?


MACD confirms momentum. Price enters.