{
  "id": "328e4ab2-caed-580f-a7d3-e93105144a7d",
  "slug": "macd-moving-average-convergence-divergence",
  "term": "MACD (Moving Average Convergence Divergence)",
  "aliases": [],
  "category": "Technical Analysis",
  "category_slug": "technical-analysis",
  "difficulty": "basic",
  "definition": "MACD is a trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs) of a security's price, with buy and sell signals generated by crossovers of the MACD line with its signal line and divergences between price and indicator momentum.",
  "key_takeaways": [
    "The standard MACD is calculated as the 12-period EMA minus the 26-period EMA; the 9-period EMA of the MACD line serves as the signal line that triggers buy (bullish crossover) and sell (bearish crossover) signals.",
    "The MACD histogram, which plots the difference between the MACD line and signal line, provides a visual measure of momentum strength: expanding bars signal accelerating momentum, contracting bars signal deceleration.",
    "Divergence between MACD direction and price direction is considered a powerful signal: bullish divergence (price makes new lows while MACD makes higher lows) can precede trend reversals.",
    "As a lagging indicator, MACD is best used for confirming trends rather than predicting them; it frequently generates false signals in sideways or choppy markets where there is no clear directional trend.",
    "MACD is most effective when combined with other technical tools—volume analysis, support/resistance levels, candlestick patterns—and when used across multiple timeframes to confirm signal alignment."
  ],
  "detailed_explanation": "MACD was developed by Gerald Appel in the late 1970s and has become one of the most widely used technical analysis indicators in equity, forex, and futures markets. The core insight behind MACD is that the relationship between two moving averages of different lengths captures both the direction and momentum of a trend: when the shorter-period EMA is above the longer-period EMA and the gap is widening, the security is in a strong uptrend with accelerating momentum; when the gap is narrowing, momentum is waning.\n\nThe standard MACD calculation uses three exponential moving averages. The MACD line is computed as the 12-period EMA minus the 26-period EMA. The signal line is the 9-period EMA of the MACD line. The MACD histogram represents the difference between the MACD line and the signal line, providing a visual representation of momentum. Exponential moving averages are used rather than simple moving averages because EMAs weight more recent data more heavily, making the indicator more responsive to current price action than a simple average of equal weights.\n\nThree primary signal types emerge from MACD analysis. First, signal line crossovers: when the MACD line crosses above the signal line (bullish crossover), it generates a buy signal; when it crosses below (bearish crossover), it generates a sell signal. Second, zero line crossovers: when the MACD line crosses above zero, the 12-period EMA has crossed above the 26-period EMA, confirming an upward trend; a cross below zero confirms a downtrend. Third, divergences: when price makes a new high but the MACD makes a lower high (bearish divergence), momentum is weakening and a reversal may be imminent; when price makes a new low but MACD makes a higher low (bullish divergence), selling momentum is exhausting, potentially preceding a recovery.\n\nThe strengths of MACD lie in its trend-following nature: it keeps traders on the right side of major market moves and provides clear, objective entry and exit signals. Its weaknesses are equally important to understand. MACD is a lagging indicator—it confirms trends after they have begun rather than predicting them. During sideways or rangebound markets, MACD generates frequent whipsaw signals as the moving averages oscillate around each other without establishing a sustained trend. The choice of parameters (12, 26, 9) is convention rather than universally optimal; different securities and timeframes may respond better to different parameter settings. Back-testing research suggests MACD strategies have historically generated positive risk-adjusted returns in trending markets but negative returns in mean-reverting environments.\n\nIn quantitative and systematic trading, MACD-based signals are often incorporated as one component of a multi-factor signal generation system. Raw MACD signals are typically filtered by additional conditions—trend strength metrics, volume confirmation, correlation to broader market direction—before being translated into trading decisions. For long-short equity funds using technical signals as overlays, MACD divergence signals on individual stocks are used to time entry and exit from fundamental positions, adding a momentum dimension to the primary fundamental analysis.",
  "example": "A trader analyzes Apple Inc. (AAPL) on a daily chart over a three-month period. The stock has been trending higher from $150 to $175. On day 45, the MACD line (12-26 EMA difference) has been positive and the MACD histogram has been expanding, confirming bullish momentum. On day 60, the stock reaches $175 and makes a marginal new high, but the MACD line makes a lower high compared to its reading when the stock was at $165—a bearish divergence. The MACD histogram has contracted significantly. Two days later, the MACD line crosses below the signal line (bearish crossover) while the stock is still near $174. A momentum-aware trader might reduce their position at $174, anticipating a pullback. Over the following two weeks, AAPL corrects to $162, validating the divergence signal. The MACD then forms a bullish crossover at $162, prompting re-entry. This type of divergence-based signal identification, used as a risk management overlay rather than a standalone trading system, is representative of how institutional technical analysis practitioners apply MACD.",
  "formula": "MACD Line = EMA(12) − EMA(26); Signal Line = EMA(9) of MACD Line; Histogram = MACD Line − Signal Line",
  "formula_latex": null,
  "interactive_type": "chart",
  "calculator_id": null,
  "related_terms": [
    "correlation",
    "doji",
    "engulfing-pattern",
    "equity",
    "factor-signal",
    "hammer-pattern",
    "long-short-equity",
    "momentum-indicator",
    "resistance-level",
    "reversal",
    "signal-generation",
    "stock"
  ],
  "backlinks": [
    "average-true-range",
    "bollinger-bands",
    "chart-pattern",
    "engulfing-pattern",
    "point-and-figure-chart",
    "rally",
    "stochastic-oscillator",
    "triangle-pattern"
  ],
  "cross_references": [
    "correlation",
    "equity",
    "factor-signal",
    "long-short-equity",
    "momentum-indicator",
    "reversal",
    "signal-generation",
    "stock"
  ],
  "tags": [
    "level:basic",
    "cat:technical-analysis"
  ],
  "asset_classes": [],
  "regulators": [],
  "see_also": [],
  "sources": [],
  "wordcount": 874,
  "checksum": "d3d21415c7b9c9ba",
  "version": "2026.05.03",
  "license": "CC-BY-4.0",
  "updated_at": "2026-09-07T02:15:24+00:00",
  "_links": {
    "self": "https://hedgefund.wiki/api/v1/terms/macd-moving-average-convergence-divergence",
    "jsonld": "https://hedgefund.wiki/api/v1/terms/macd-moving-average-convergence-divergence?format=jsonld",
    "markdown": "https://hedgefund.wiki/api/v1/terms/macd-moving-average-convergence-divergence?format=md",
    "graph": "https://hedgefund.wiki/api/v1/graph/macd-moving-average-convergence-divergence",
    "category": "https://hedgefund.wiki/api/v1/categories/technical-analysis",
    "schema": "https://hedgefund.wiki/schema/term.schema.json",
    "html": "https://hedgefund.wiki/#/terms/macd-moving-average-convergence-divergence"
  }
}