Overview
MACD (Moving Average Convergence Divergence) is one of the most classic trend-based technical indicators. Its idea can be summarized in one sentence:Use the difference between two moving averages with different speeds to measure the direction and strength of a trend, then use an even “slower” moving average and a histogram to help identify turning points and momentum changes.Intuitive understanding:
- The fast moving average (short-period EMA) reacts quickly and represents the short-term trend;
- The slow moving average (long-period EMA) reacts slowly and represents the medium-term trend;
- Their difference (DIF) shows whether short-term or medium-term forces are stronger;
- Then smooth DIF to get DEA, and use the histogram to reflect strengthening or weakening bullish/bearish momentum.
- Determine whether the market is in a bullish trend, bearish trend, or an unclear trend;
- Observe whether the trend is strengthening, weakening, or possibly reversing;
- Help identify trend-following entry points, exits, and reduction signals.
MACD Components
DIF Line (Fast Line)
DIF is the MACD “fast line.” Common default parameters are the 12-day and 26-day EMAs:- DIF = EMA(12) − EMA(26)
- EMA(12): an exponentially weighted moving average of roughly the last two weeks, relatively fast;
- EMA(26): an exponentially weighted moving average of a bit more than a month, relatively slow;
- DIF is the result of “short-term trend − medium-term trend.”
- When DIF is positive and keeps rising, it means the short-term price is above the medium-term average and the gap is widening—bullish trend is relatively dominant;
- When DIF is negative and keeps falling, it means the short-term price is below the medium-term average and the gap is widening—bearish trend is stronger.
DEA Line (Slow Line)
DEA (also called the MACD “signal line” or “slow line”) is a smoothed average of DIF, commonly a 9-day EMA:- DEA = 9-day EMA of DIF
- Smooth the “jumpy” DIF to make the trend outline clearer;
- Use DIF/DEA crossovers to generate more stable buy/sell signals (the so-called golden/death cross).
- DIF is like a fast car—highly sensitive to road conditions;
- DEA is like a slow car—steadier and more sluggish;
- When the fast car suddenly surges from below the slow car to above it, that’s a “golden cross”; the opposite is a “death cross.”
MACD Histogram
The histogram reflects the difference between DIF and DEA:- MACD histogram = DIF − DEA (Many charting platforms display 2×(DIF − DEA), simply scaling the height—the principle is the same.)
- Bars above the zero line: DIF > DEA, bullish momentum dominates;
- Bars below the zero line: DIF < DEA, bearish momentum dominates;
- Bars getting longer: the bull/bear gap is widening—trend is “accelerating”;
- Bars getting shorter: the gap is narrowing—trend momentum is weakening, and the market may enter consolidation or an early-stage reversal.
- In an up move, histogram bars above zero growing from small to large, then shrinking, often corresponds to “start → acceleration → pre-top momentum weakening”;
- In a down move, histogram bars below zero growing in magnitude (absolute value increasing), then gradually shrinking, often corresponds to “weakening → accelerated drop → bearish momentum decay.”
Trading Strategies
Common MACD trading ideas cluster around four aspects:- Golden cross and death cross
- Above/below the zero line
- Histogram changes
- Bearish divergence and bullish divergence
- DIF crossing above DEA: golden cross, bullish-leaning signal;
- DIF crossing below DEA: death cross, bearish-leaning signal;
- Golden cross above the zero line: more reliable as a “pullback ends, resume higher” signal in a bullish trend;
- Death cross below the zero line: more reliable as a “rebound ends, continue lower” signal in a bearish trend;
- Histogram shifting from expanding to contracting: warns that current trend momentum is weakening—be more cautious;
- Price makes a new high while DIF or the histogram does not: possible bearish divergence—watch for trend exhaustion;
- Price makes a new low while DIF or the histogram does not: possible bullish divergence—watch for downside exhaustion.
Core Concepts
When understanding MACD, focus on these key points:- Trend following, not a “perfect bottom/top-catching tool” MACD is designed to follow medium-term trends, not to predict turning points in advance. It’s better at helping you “ride a leg” after a trend forms than precisely catching the lowest low or highest high.
- Lag is an intentionally designed “feature” Because it uses EMA smoothing, MACD will inevitably be “a beat late.” The cost is slightly delayed entry/exit signals; the benefit is filtering out lots of short-term noise and reducing whipsaws from “false breakouts.”
- The zero line is the medium-term bull/bear divider When DIF and DEA are above zero, the bullish medium-term trend dominates; below zero, the bearish medium-term trend dominates. Many traders adopt a principle: try to go long mainly above zero and short mainly below zero, focusing on trading with the trend.
- The histogram reflects “trend acceleration” DIF is like speed; DEA is “smoothed speed”; their difference can be viewed as “acceleration.” Longer bars mean a larger bull/bear gap and a stronger trend; contracting bars mean momentum is fading, possibly moving into consolidation or approaching a turning zone.
- Parameters and timeframe must match the strategy The default 12/26/9 parameters fit many daily-chart short-to-medium-term trades; on ultra-short timeframes like 5-minute or 1-minute, or very long weekly/monthly charts, MACD behavior and suitability change significantly.
Practical Application
Below is a simplified example of a typical MACD usage in practice (for teaching only; not investment advice). Example: Trend-following long on a stock using daily MACD Background conditions:- On the daily chart, the medium-term trend is clearly up; price stays above the 20-day and 60-day MAs;
- DIF and DEA are above the zero line most of the time, indicating a dominant bullish trend.
- Check the bigger picture If the overall market or sector is also in an uptrend, it’s more supportive of bullish stock performance.
- Wait for a pullback Price rises from 20 to 24; the histogram above zero expands from small to large and then starts contracting, indicating bullish momentum is weakening. Then price pulls back toward 22; DIF moves down toward or slightly below DEA, forming a small death cross, and the histogram shrinks again.
- Watch for a “re-golden-cross near the zero line” Soon after the pullback, price stabilizes near 22 with a higher-volume small bullish candle. DIF crosses back above DEA at a level above zero or close to zero, forming a “golden cross near the zero line.” The histogram turns from negative back to positive, or begins expanding from a very small positive value.
- Possible actions At that moment, probe long with a small position and place the stop below the pullback low; if price continues higher and the histogram gradually expands, consider scaling in; if the golden cross fails and price breaks below the pullback low again, admit wrong and exit.
- Don’t “guess the bottom” early; after the trend is established, use “momentum weakening → strengthening again” during pullbacks to find follow-through opportunities;
- MACD provides trend and momentum information, while entry and stops should still be combined with price action, patterns, and your risk tolerance.
FAQs
Q1: Why does MACD always feel “a beat late”—by the time the signal appears, price has already moved a lot?
Because:- MACD uses EMA smoothing—first the MAs, then their difference, then smooth the difference again;
- Each step introduces a bit of “delay,” so the accumulated signal naturally comes later.
- Lag buys you filtering of “false breakouts” and short-term noise;
- For traders who want to capture a trend leg rather than a few candles, being a bit late is often better than being whipsawed by frequent false signals.
Q2: If the MACD histogram starts contracting, does that mean I must sell immediately or reverse?
Not necessarily. Histogram contraction means:- The bull/bear gap is shrinking and trend momentum is weakening;
- The market may enter consolidation or pullback, and may even be brewing a reversal—but “may” does not mean “must reverse immediately.”
-
Treat histogram contraction as a “warning signal,” reminding you to check:
- Whether to tighten stops;
- Whether to gradually reduce and lock in profits;
- Whether other signals (price/volume, support/resistance, other indicators) also point to risk.
Q3: Is MACD suitable for ultra-short-term trading, like 1-minute or 5-minute charts?
The default MACD parameters (12, 26, 9) are better suited to daily charts or slightly longer cycles for short-to-medium-term trends. On ultra-short timeframes:- Price noise is amplified; false breakouts and rapid back-and-forth are frequent;
- Trend indicators of any kind become more “jittery”;
- If you force MACD onto ultra-short trading, you can receive many golden/death crosses in a single day and get churned repeatedly.
- You can shorten the parameters, but recognize that signal quantity increases while quality often decreases;
- More importantly, define your strategy first (what you’re trying to capture), then choose appropriate tools—rather than picking an indicator first and forcing it onto the problem.
Summary
Key takeaways from this section:-
MACD consists of three parts:
- DIF: the difference between short- and medium-term EMAs—the fast line;
- DEA: the smoothed MA of DIF—the slow line;
- Histogram: DIF − DEA, reflecting the size and change of the bull/bear momentum gap.
-
MACD is a typical “trend-following + momentum” indicator, mainly used to judge:
- Whether the bias is bullish or bearish;
- Whether the trend is strengthening or weakening;
- Whether price is approaching a potential turning-zone area.
- Golden/death crosses, the zero line, and histogram changes are the four main MACD observation dimensions;
- It inherently lags, suitable for traders who want to “eat a leg of the trend,” and not suitable as the only basis for precise bottom/top picking;
- In real trading, MACD should be combined with price structure, support/resistance, volume, and risk control—never treat any single indicator as a “holy grail.”
Further Reading
- You can refer to Investopedia or similar professional sites for “MACD indicator” to learn more original English materials and example charts.
- Technical Analysis of the Futures Markets (John J. Murphy) includes chapters on MACD and other trend indicators, providing systematic coverage of MACD’s background and usage.
