momentum
Moving Average Convergence Divergence (MACD)
A momentum oscillator built from two EMAs. Shows when trend momentum is accelerating or decelerating.
What is it?
MACD (pronounced "Mack-D") is Gerald Appel's 1979 creation and one of the most widely used technical indicators in all of trading. It captures momentum by measuring the spread between a fast EMA and a slow EMA.
The standard MACD configuration uses 12-period and 26-period EMAs, with a 9-period EMA of the resulting spread as the "signal line." This produces three components on the chart:
1. **MACD line** — the difference between EMA(12) and EMA(26). When positive, the fast EMA is above the slow EMA, indicating bullish momentum. When negative, the fast EMA is below the slow EMA, indicating bearish momentum.
2. **Signal line** — a 9-period EMA of the MACD line. Acts as a smoothed trigger line for entries.
3. **Histogram** — MACD minus Signal, plotted as bars. The histogram is the most useful component for many traders: it grows in magnitude as momentum accelerates and shrinks toward zero as momentum stalls. Histogram bars flipping from red to green (or vice versa) often signal a momentum shift before the MACD line itself crosses the signal line.
MACD is technically unbounded — there are no fixed overbought/oversold levels like RSI. The meaningful levels depend on the asset's volatility. A MACD reading of +50 might be extreme on a $20 stock and unremarkable on Bitcoin.
Formula
MACD = EMA(12) − EMA(26); Signal = EMA(9) of MACD; Histogram = MACD − Signal
How it's calculated
1. Calculate EMA(12) of close.
2. Calculate EMA(26) of close.
3. MACD line = EMA(12) − EMA(26).
4. Calculate EMA(9) of the MACD line — this is the Signal line.
5. Histogram = MACD line − Signal line.
The standard parameters (12, 26, 9) trace back to Appel's original design in the late 1970s. They were chosen for end-of-week trading on weekly charts — 12 represented two weeks of trading days, 26 was a month, and 9 was somewhere in between. The numbers stuck even though most modern traders use MACD on intraday charts where the original framework doesn't really apply.
You can experiment with different parameters (5/35/5 for faster signals, 19/39/9 for slower) but the standard 12/26/9 is what most traders watch, and many algorithmic systems generate signals at these levels — making them somewhat self-fulfilling.
When to use it
**Trend confirmation.** MACD above zero confirms bullish trend; MACD below zero confirms bearish trend. Adding a "MACD > 0" filter to entry signals dramatically improves win rates in trending markets.
**Momentum acceleration / deceleration.** When the histogram is growing taller (positive momentum increasing), pullbacks are usually shallow and quickly bought. When the histogram starts shrinking even as price continues making new highs, momentum is fading — a warning that the trend may be exhausting.
**Crossover signals.** MACD line crossing above the Signal line is a classic bullish trigger; crossing below is bearish. Used alone, these signals produce many false positives. Combined with a trend filter (price above 200 EMA, for example) they become much more reliable.
**Divergences.** When price makes a new high but MACD makes a lower high, it suggests the trend is losing momentum — a "bearish divergence." When price makes a new low but MACD makes a higher low, it suggests selling pressure is fading — a "bullish divergence." Divergences are early warning signs, not entry signals on their own.
**Zero-line crosses.** The MACD line crossing zero is a slower, more conservative trend signal than the signal-line crossover. Many institutional systems use zero-line crosses as primary entries.
In crypto: MACD on the 4-hour chart is extremely widely used for swing trading. The combination of 4-hour MACD direction + daily trend filter is a common setup.
Common parameters
fast = 12
Fast EMA period. Shorter = more sensitive, more signals.
slow = 26
Slow EMA period. Longer = more lag, fewer false signals.
signal = 9
EMA period applied to MACD line for triggers. Shorter = earlier triggers.
Pitfalls
**Whipsaws in sideways markets.** When the market is ranging, MACD repeatedly crosses zero and its signal line, generating endless false signals. Always pair MACD with a trend filter or ADX-based regime detection.
**Lag relative to price.** MACD is built on EMAs, which lag. By the time MACD crosses, the move has often started. MACD is useful for confirming trends, not for catching exact tops/bottoms.
**Divergences fail more than they work.** While divergences are well-documented warning signs, they fire frequently in strong trends without leading to a reversal. A bearish divergence in Bitcoin during a parabolic run might persist for weeks. Don't take divergence trades without other confirmation.
**Default parameters are not magic.** 12/26/9 became standard because Appel chose them in 1979. They're not optimal for every market or timeframe. But avoid optimizing them — pick reasonable values and stick with them. Curve-fitting MACD parameters destroys the indicator's robustness.
**Reading scale matters.** Because MACD is unbounded, you can't compare values across different assets. A MACD of 100 in Bitcoin doesn't mean the same thing as MACD of 100 on a $10 altcoin.
Pairs well with
EMARSIADXVolumeBollinger Bands
Ready to test a strategy using Moving Average Convergence Divergence (MACD)?
Build a strategy →