Initializing terminal quote pipeline...

Command Palette

Search for a command to run...

MACD

intermediate
7 min read
Updated 2026-07-13
Reviewed by SST Editorial
MACD (Moving Average Convergence Divergence) is a momentum indicator created by Gerald Appel. It consists of three elements: the MACD Line (the difference between a 12-day and 26-day EMA), the Signal Line (a 9-day EMA of the MACD Line), and the Histogram (the difference between the MACD Line and the Signal Line). Crossovers between the MACD and Signal Line indicate momentum changes.

Key Takeaways

  • 01.Constructed using two exponential moving averages (12 and 26 periods) and a signal line (9 periods).
  • 02.A bullish signal is generated when the MACD line crosses above the Signal line.
  • 03.A bearish signal is generated when the MACD line crosses below the Signal line.
  • 04.The zero line crossover indicates when the short-term trend is stronger than the long-term trend.

Why it matters

MACD combines trend-following properties (moving averages) and momentum (oscillation). This helps traders confirm the direction of a trend while identifying entry triggers on momentum shifts.

When it matters

It is most effective in trending markets. In sideways or choppy consolidation zones, MACD generates numerous false crossover signals (whipsaws).

๐Ÿ“Š
Visual Reference: diagram

A sub-chart indicator with two oscillating lines and a center histogram showing positive and negative bars.

Interactive Tool: terminal-embed

Apply MACD to the chart to track signal line crossovers and monitor trend momentum.

Common Mistakes

Trading crossovers in a range-bound market

MACD lines will cross back and forth repeatedly in a sideways range. Trading every crossover in this environment will result in multiple commissions and small losses (whipsaws).

๐Ÿ“– Real-World Example: Trend breakout confirmation

After consolidating for three months, a shipping company stock broke above its flat range. Simultaneously, the MACD line crossed above the zero line and the histogram expanded into positive territory. This confirmed the momentum of the breakout, which extended into a 30% rally.

Further Reading