Technical Indicator

MACD Indicator.

MACD (Moving Average Convergence Divergence) combines trend-following and momentum analysis. Developed by Gerald Appel in the 1970s, it shows the relationship between two exponential moving averages and is among the most popular indicators for identifying trend changes.

Difficulty: Beginner Time to learn: 20 minutes Category: Trend + Momentum
📊
Created by
Gerald Appel (1970s)
⚙️
Default
12, 26, 9
🔗
Components
MACD + Signal + Histogram
🎯
Type
Lagging indicator
SECTION 01

What is MACD?

MACD (Moving Average Convergence Divergence) is a trend-following momentum indicator that shows the relationship between two exponential moving averages of price. Developed by Gerald Appel in the late 1970s, it has become one of the most widely used technical indicators globally.

MACD combines two analytical perspectives in one indicator: (1) trend-following through the moving averages, and (2) momentum through the histogram showing acceleration/deceleration. This dual nature makes it useful across multiple trading styles.

SECTION 02

MACD components

The MACD indicator has three main components, all displayed below or above the price chart:

1. MACD Line

MACD Line Formula
MACD Line = 12-period EMA – 26-period EMA

This is the difference between two exponential moving averages. When the 12-EMA is above the 26-EMA, MACD is positive (uptrend bias). When below, MACD is negative (downtrend bias).

2. Signal Line

Signal Line Formula
Signal Line = 9-period EMA of MACD Line

A 9-period EMA smoothing of the MACD line itself. The signal line is slower than the MACD line and used to generate trade signals through crossovers.

3. Histogram

Histogram Formula
Histogram = MACD Line – Signal Line

Visual representation of the difference between MACD and Signal lines. Growing histogram = accelerating momentum. Shrinking histogram = decelerating momentum.

SECTION 03

Default settings (12, 26, 9)

Standard MACD settings are 12, 26, 9 – representing:

  • 12 = fast EMA period
  • 26 = slow EMA period
  • 9 = signal line smoothing period

These values originated from working days in two-week and four-week trading cycles (12 days = 2.5 weeks, 26 days = ~5 weeks). Despite being arbitrary historical choices, they remain standard because virtually all traders use them – changing creates miscommunication with other traders’ analysis.

Custom settings

Day traders sometimes use faster settings like (5, 35, 5) for more sensitivity. Position traders may use (19, 39, 9) for slower signals. For most retail traders, default 12-26-9 is appropriate.

SECTION 04

Signal line crossovers

The most basic MACD signal is the signal line crossover:

Bullish crossover

MACD line crosses ABOVE signal line. Momentum is shifting bullish. Often used as buy signal in uptrends or as exit signal for short positions.

Bearish crossover

MACD line crosses BELOW signal line. Momentum is shifting bearish. Often used as sell signal in downtrends or as exit signal for long positions.

⚠️ Important limitation

MACD is a lagging indicator. Crossovers happen AFTER price has already moved. In choppy/sideways markets, crossovers produce many false signals. Always combine with trend identification.

SECTION 05

Zero line crossovers

When MACD line crosses the zero line (centerline), it indicates the underlying moving averages have crossed:

  • MACD crosses ABOVE zero: 12-EMA is now above 26-EMA – bullish trend confirmation
  • MACD crosses BELOW zero: 12-EMA is now below 26-EMA – bearish trend confirmation

Zero line crossovers are more significant but less frequent than signal line crossovers. They confirm meaningful trend shifts but offer fewer trading opportunities.

SECTION 06

MACD histogram analysis

The histogram is often underutilized but provides valuable information:

Histogram patterns

  • Growing positive bars: Bullish momentum accelerating
  • Shrinking positive bars: Bullish momentum decelerating – potential reversal warning
  • Growing negative bars: Bearish momentum accelerating
  • Shrinking negative bars: Bearish momentum decelerating – potential reversal warning

Histogram divergence

When price makes new highs but histogram makes lower highs: bullish momentum is weakening even though prices haven’t fallen. Early warning of potential trend exhaustion.

SECTION 07

MACD divergence

Like RSI, MACD can show divergence with price – often one of its most powerful signals:

Bullish divergence

Price makes lower lows, but MACD makes higher lows. Selling momentum weakening – potential bottom.

Bearish divergence

Price makes higher highs, but MACD makes lower highs. Buying momentum weakening – potential top.

For practical application, see our divergence strategy guide.

SECTION 08

Common MACD mistakes

Mistake 1: Trading every crossover

Many traders enter on every signal line crossover. In ranging markets, this produces consistent losses. Crossovers work best in trending markets – identify trend first.

Mistake 2: Ignoring the histogram

The histogram contains valuable information about momentum strength. Most retail traders focus only on MACD line and signal line, missing the histogram’s nuance.

Mistake 3: Using MACD on low timeframes

MACD generates excessive noise on M1, M5, and M15 charts. The indicator works best on H1 and higher timeframes where each bar represents meaningful price action.

Mistake 4: Standalone use

MACD is lagging by nature. Combining with price action, support/resistance, or volume analysis significantly improves results.

SECTION 09

MACD vs RSI – when to use which

SituationBetter choiceWhy
Trending marketsMACDCaptures trend shifts better
Ranging marketsRSIOverbought/oversold more meaningful
Momentum strengthMACD histogramDirect momentum visualization
Extreme conditionsRSIBounded 0-100 scale
Divergence signalsBoth workCombine for confirmation

For RSI specifically: RSI complete guide.

Learn trading strategies

Now apply MACD systematically. Our strategy guides combine indicators with price action for higher-probability setups.

More learning resources → Compare brokers