{
  "id": "82502650-7087-59f8-9fe1-885872e42be6",
  "slug": "stochastic-oscillator",
  "term": "Stochastic Oscillator",
  "aliases": [],
  "category": "Technical Analysis",
  "category_slug": "technical-analysis",
  "difficulty": "basic",
  "definition": "The stochastic oscillator is a momentum indicator developed by George Lane that compares a security's closing price to its price range over a specified lookback period, generating a value between 0 and 100 that signals overbought conditions (above 80) and oversold conditions (below 20), with buy and sell signals generated by crossovers between the fast %K line and the slow %D signal line. It is one of the most widely used momentum indicators in technical analysis.",
  "key_takeaways": [
    "The %K line is calculated as: %K = [(Current Close - Lowest Low) / (Highest High - Lowest Low)] × 100, measured over a standard 14-period lookback; the %D line is a 3-period simple moving average of %K.",
    "Values above 80 indicate the security is trading near the top of its recent range (overbought), potentially signaling a reversal; values below 20 indicate trading near the bottom (oversold), potentially signaling a bounce.",
    "Stochastic oscillator divergence — when the oscillator trend diverges from price trend (price makes a new high but oscillator does not) — is considered a more reliable signal than simple overbought/oversold readings.",
    "In trending markets, overbought and oversold readings can persist for extended periods, making the oscillator most useful in range-bound or consolidating markets rather than strong trending environments.",
    "The slow stochastic (using %D as the signal and its 3-period MA as the trigger) reduces false signals relative to the fast stochastic but introduces more lag — a standard trade-off in oscillator design."
  ],
  "detailed_explanation": "The stochastic oscillator was developed by George C. Lane in the 1950s based on his observation that price tends to close near the high of its recent trading range during uptrends and near the low during downtrends. The indicator formalizes this observation into a momentum oscillator: if a security's close is at 90% of its 14-day high-low range, the stochastic is 90, suggesting strong bullish momentum; if at 10% of the range, it is 10, suggesting weak or bearish momentum.\n\nThe construction involves two lines. The %K line is the raw stochastic value computed over the lookback period (default 14 days, though 5 and 21 are also common). The %D line is typically a 3-period simple moving average of %K, serving as a signal line similar to the signal line in the MACD. Crossovers between %K and %D generate primary buy and sell signals: when %K crosses above %D from below the 20 level (oversold zone), a buy signal is generated; when %K crosses below %D from above the 80 level, a sell signal.\n\nThe most powerful signals from the stochastic oscillator are divergences. Bullish divergence occurs when price makes a new lower low but the stochastic makes a higher low — indicating that selling momentum is weakening even as price continues to decline, potentially foretelling a reversal. Bearish divergence occurs when price reaches a new higher high but the stochastic fails to reach its prior high — indicating diminishing buying momentum at new price highs. Divergences are considered more reliable than simple overbought/oversold readings because they capture a dynamic change in momentum structure rather than a static level comparison.\n\nThe stochastic's performance varies significantly by market condition. In strong trending markets — an equity index in a sustained bull run or a commodity in a structural bull market — the stochastic can remain in overbought territory (above 80) for weeks or months, generating repeated false sell signals. Mechanically selling every overbought reading in a bull trend is a reliable way to underperform. Practitioners mitigate this by combining the stochastic with trend indicators (moving averages, ADX): only acting on oversold stochastic signals when the trend indicator confirms a bullish trend, and only on overbought signals when the trend indicator confirms a bearish trend.\n\nSystematic traders use the stochastic oscillator as one input in multi-indicator models rather than as a standalone signal generator. Research on the stochastic's information coefficient in systematic equity strategies shows modest but positive predictive value over short to medium horizons, particularly when combined with price momentum and volume indicators. Its primary value is as a relative momentum measure within a defined price range — quantifying where in the recent range the security currently stands relative to its recent distribution of closes.",
  "example": "A technical analyst monitors copper futures using a 14-period stochastic oscillator on a daily chart. Copper has been declining from $4.20/lb to $3.75/lb over four weeks. On Tuesday, the closing price of $3.76 represents 12% of the 14-day high-low range ($3.70 low, $4.20 high), giving %K = 12. The %D (3-day MA of %K) is currently 15. Both readings are in oversold territory below 20. On Wednesday, copper closes at $3.80, lifting %K to 20 and %D to 16. On Thursday, copper closes at $3.85, bringing %K to 30 while %D rises to 21. The %K crossing above %D while both are in the oversold zone generates a buy signal. A trader entering long at $3.85 with a stop at $3.68 (below the recent low) targets a retracement to $4.05 — a potential $0.20/lb gain versus $0.17/lb risk, giving a favorable risk-reward ratio of approximately 1.2:1.",
  "formula": "%K = [(Close - Lowest Low in N periods) / (Highest High in N periods - Lowest Low in N periods)] × 100; %D = 3-period SMA of %K",
  "formula_latex": null,
  "interactive_type": "chart",
  "calculator_id": null,
  "related_terms": [
    "chart-pattern",
    "default",
    "engulfing-pattern",
    "equity",
    "equity-index",
    "information-coefficient",
    "macd-moving-average-convergence-divergence",
    "momentum-indicator",
    "moving-average",
    "on-balance-volume",
    "overbought",
    "oversold",
    "retracement",
    "reversal",
    "simple-moving-average"
  ],
  "backlinks": [
    "doji",
    "engulfing-pattern",
    "overbought",
    "oversold",
    "volume-weighted-average-price"
  ],
  "cross_references": [
    "default",
    "equity",
    "equity-index",
    "information-coefficient",
    "momentum-indicator",
    "moving-average",
    "overbought",
    "oversold",
    "retracement",
    "reversal",
    "simple-moving-average"
  ],
  "tags": [
    "level:basic",
    "cat:technical-analysis"
  ],
  "asset_classes": [],
  "regulators": [],
  "see_also": [],
  "sources": [],
  "wordcount": 863,
  "checksum": "565d25fedc8efebe",
  "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/stochastic-oscillator",
    "jsonld": "https://hedgefund.wiki/api/v1/terms/stochastic-oscillator?format=jsonld",
    "markdown": "https://hedgefund.wiki/api/v1/terms/stochastic-oscillator?format=md",
    "graph": "https://hedgefund.wiki/api/v1/graph/stochastic-oscillator",
    "category": "https://hedgefund.wiki/api/v1/categories/technical-analysis",
    "schema": "https://hedgefund.wiki/schema/term.schema.json",
    "html": "https://hedgefund.wiki/#/terms/stochastic-oscillator"
  }
}