Skip to content
On this page
  1. Key Takeaways
  2. What It Is
  3. The Intuition
  4. How It Works
  5. Worked Example
  6. Common Mistakes
  7. Frequently Asked Questions
  8. Sources
  9. Disclaimer
← All concepts
Technical AnalysisAdvanced5 min read

Stochastic Oscillator: Where Close Sits in the Range

The **stochastic oscillator** measures where today's close sits inside the recent high-low range, on a scale from 0 to 100. George C. Lane developed it in the late 1950s as a momentum tool, on the principle that momentum changes direction before price does.

Key Takeaways

  • The stochastic oscillator plots %K, the close's position in the N-day range, and %D, a 3-period average of %K.
  • Default lookback is 14 periods, with readings above 80 considered overbought and below 20 oversold.
  • Investors often sell at the first 80 reading in a strong trend and miss the bulk of the move.
  • Divergences between price and the stochastic oscillator often warn of reversals before price confirms.

Key Takeaways

  • The stochastic oscillator plots %K, the close's position in the N-day range, and %D, a 3-period average of %K.
  • Default lookback is 14 periods, with readings above 80 considered overbought and below 20 oversold.
  • Investors often sell at the first 80 reading in a strong trend and miss the bulk of the move.
  • Divergences between price and the stochastic oscillator often warn of reversals before price confirms.

What It Is

The stochastic oscillator is a bounded momentum indicator. Its two lines, %K and %D, oscillate between 0 and 100 regardless of price scale, which makes the indicator comparable across instruments.

%K answers a single question: where in the recent range is today's close? If the close is at the high of the last 14 bars, %K reads 100. If the close is at the low, %K reads 0. %D smooths %K with a 3-period moving average so that the line is less twitchy.

The Intuition

Lane's observation was that during an uptrend, closes tend to cluster near the highs of recent bars. During a downtrend, closes cluster near the lows. When that pattern breaks down, it often signals that momentum is fading even if price is still drifting in the original direction.

The 14-bar window captures roughly two to three weeks of daily data, enough to absorb noise but short enough to react to genuine shifts. Plotting the indicator on a 0 to 100 scale makes overbought and oversold zones visible at a glance.

How It Works

The fast %K formula from Lane is:

%K = (Close - LowestLow_N) / (HighestHigh_N - LowestLow_N) * 100
%D = 3-period SMA of %K

LowestLow_N is the lowest low of the last N bars; HighestHigh_N is the highest high. The default N is 14.

This is the "fast" version. The "slow" stochastic smooths fast %K with a 3-period SMA and then takes a further 3-period SMA for %D. The "full" version exposes all three parameters: lookback, %K smoothing, and %D smoothing. Most platforms default to full(14, 3, 3).

Standard signals: %K crossing above %D from below in oversold territory is a buy candidate; the mirror image in overbought territory is a sell candidate. Crossings outside the 20 to 80 band are weighted more than crossings in the middle.

Worked Example

A stock has the following figures over the last 14 trading days:

  • Highest high in the window: 105.00 dollars
  • Lowest low in the window: 95.00 dollars
  • Today's close: 102.00 dollars

The fast %K is:

%K = (102 - 95) / (105 - 95) * 100 = (7 / 10) * 100 = 70

The close sits at the 70th percentile of the recent range. That is firmly bullish but not yet overbought. If %K rises above 80 in the next session and then falls back below 80, that crossback often marks a short-term top.

Imagine the next two sessions push %K to 92 and then back to 78, while price has only edged from 102 to 103.5 and back to 102.8. The bounded stochastic signal arrives sharp and clear even though price moved barely a dollar.

Common Mistakes

  1. Selling the first overbought reading. In strong trends, %K can sit above 80 for weeks. Use trend context before exiting on overbought alone.
  2. Trading every crossover. %K and %D cross many times near 50. The most useful crossovers happen in the 20 to 80 band edges with confirmation from price structure.
  3. Forgetting which version you have. Fast, slow, and full produce different timing. Document your platform's defaults.
  4. Ignoring divergences. A higher high in price paired with a lower high in the stochastic oscillator is a warning. Many traders trade only the line cross and miss the divergence read.
  5. Mismatching the lookback to the timeframe. A 14-period stochastic on a 5-minute chart fires constantly. Adjust the period or the chart to keep signal density reasonable.

Frequently Asked Questions

What is the stochastic oscillator in simple terms? The stochastic oscillator measures where the most recent close sits between the highest high and lowest low of the past N bars, on a 0 to 100 scale. A reading near 100 means the close is near the top of the range; near 0 means it is near the bottom.

How does the stochastic oscillator affect investment decisions? Many traders watch for crossovers and divergences as early momentum signals. The indicator works best as a confirmation tool alongside trend filters, not as a standalone trigger.

What is a real-world example of the stochastic oscillator? On a stock that has run from 50 to 80 in three weeks, the 14-day stochastic %K can sit above 80 the entire time. When %K finally drops below 80 and %D crosses down, the indicator flags the first material loss of upside momentum.

How can investors use the stochastic oscillator effectively? Use the 14, 3, 3 default and treat readings inside 20 to 80 as range conditions, not signals. Act on crossovers near the band edges, and weight divergences with price highs and lows more than mid-range moves.

How is the stochastic oscillator different from RSI? RSI compares average gains to average losses across a window, while the stochastic oscillator compares the close to the high-low range over the same window. RSI reacts to magnitude of price change; the stochastic reacts to the close's position inside the range.

Sources

  1. StockCharts ChartSchool. Stochastic Oscillator (Fast, Slow, and Full). https://chartschool.stockcharts.com/table-of-contents/technical-indicators-and-overlays/technical-indicators/stochastic-oscillator-fast-slow-and-full
  2. Fidelity Learning Center. Slow Stochastic Oscillator. https://www.fidelity.com/learning-center/trading-investing/technical-analysis/technical-indicator-guide/slow-stochastic
  3. TrendSpider Learning Center. Lane's Stochastic Oscillator. https://trendspider.com/learning-center/lanes-stochastic-oscillator/
  4. Investopedia. Stochastic Oscillator. https://www.investopedia.com/terms/s/stochasticoscillator.asp

Disclaimer

This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.

The IWP Substack

You understand the concept. Now see it applied.

The Investing With Purpose Substack turns ideas like this into research and risk-managed trade plans on real stocks, updated every week.

Read on Substack (opens in a new tab)

Related concepts