MACD (Moving Average Convergence Divergence)
MACD is a trend-following momentum indicator that shows the relationship between two Exponential Moving Averages of price. It combines trend identification with momentum measurement, making it one of the most versatile indicators available. MACD reveals changes in the strength, direction, momentum, and duration of a trend.How It Works
MACD consists of three components, all derived from EMAs of closing prices:MACD Line
Signal Line
Histogram
- Positive histogram (above zero): MACD line is above signal line — bullish momentum.
- Negative histogram (below zero): MACD line is below signal line — bearish momentum.
- Histogram growing: Momentum is accelerating in that direction.
- Histogram shrinking: Momentum is decelerating — potential signal change coming.
Indicator Type
Subchart — MACD is rendered in a separate panel below the main chart with its own Y-axis.Settings
Core Parameters
Color Parameters
Display Settings
Alternative Period Configurations
Interpretation
Signal Line Crossovers
The primary MACD signal:
Crossovers above zero are stronger bullish signals (already in bullish territory). Crossovers below zero are stronger bearish signals (already in bearish territory).
Zero Line Crossovers
Zero line crossovers are lagging but high-conviction signals. They confirm what signal line crossovers suggested earlier.
Histogram Analysis
The histogram is often the most actionable part of MACD:- Histogram growing (positive bars getting taller): Bullish momentum accelerating.
- Histogram shrinking (positive bars getting shorter): Bullish momentum decelerating. Signal line crossover may be imminent.
- Histogram growing (negative bars getting deeper): Bearish momentum accelerating.
- Histogram shrinking (negative bars getting shallower): Bearish momentum decelerating. Potential bottoming.
MACD Divergence
Like RSI, MACD can form divergences with price:- Bearish divergence: Price makes a higher high, MACD histogram makes a lower high. Uptrend momentum is weakening.
- Bullish divergence: Price makes a lower low, MACD histogram makes a higher low. Downtrend momentum is weakening.
Alerts
MACD supports the following alert rules:
Set a cooldown period to avoid rapid-fire alerts during choppy crossover zones.
Combining with Other Indicators
Common Mistakes
- Trading every crossover — In ranging markets, MACD produces many whipsaw crossovers. Filter by requiring the crossover to occur above/below zero, or by confirming with volume.
- Ignoring the histogram — Many traders only watch the line crossover. The histogram shrinking gives an earlier signal and helps you anticipate crossovers before they happen.
- Using MACD alone for entries — MACD is inherently lagging (it is built on moving averages). By the time a crossover occurs, a significant portion of the move may have already happened. Use MACD for confirmation, not as a sole entry trigger.
- Not adjusting for timeframe — The default 12/26/9 on a 1-minute chart covers only 26 minutes of data. On such low timeframes, the indicator may be too noisy. Consider slightly wider parameters (e.g., 8/21/5 inverted or standard) on very low timeframes, or simply trade MACD signals on 15-minute and higher charts.
Practical Considerations
- Lag is inherent: MACD is built on EMAs, which lag price by definition. Accept this and use MACD for confirmation rather than prediction.
- Crypto trends: Crypto markets can trend aggressively. During strong trends, the MACD histogram can stay positive (or negative) for dozens of bars. Do not try to counter-trade based on “overbought” histogram readings alone.
- Multi-timeframe: A bullish MACD crossover on the daily chart provides a strong directional bias. You can then use the hourly MACD for timing entries in that direction.
- Histogram anomalies: Enabling
highlightAnomalieson the histogram helps identify bars with exceptional momentum — these often mark climactic moves (blowoff tops or capitulation bottoms).
Related Indicators
- EMA — The building block of MACD; MACD is literally the difference between two EMAs
- RSI — Complementary momentum oscillator for confirmation
- RSI Divergence — Automated divergence detection on a different oscillator