Stochastic Oscillator Explained: How It Works

Bullynx Editorial Team·May 8, 2026·7 min read

Last updated June 7, 2026

The stochastic oscillator is a momentum indicator that compares an asset's closing price to its high-low range over a set lookback period, on a scale of 0 to 100. Popularized by George Lane in the late 1950s, it flags overbought conditions above 80 and oversold conditions below 20, and is used to spot shifts in momentum.

Key takeaway

The stochastic oscillator measures where the close sits within the recent price range. Readings above 80 and below 20 flag stretched conditions, but they are context signals, not automatic buy or sell triggers.

What is the stochastic oscillator?

The stochastic oscillator is a bounded momentum indicator popularized by George Lane in the late 1950s. It sits among the core technical indicators and, like the Relative Strength Index, it ranges from 0 to 100, but it measures momentum in a different way.

The indicator rests on a simple observation: in an uptrend, closing prices tend to cluster near the top of the recent range, and in a downtrend they cluster near the bottom. The stochastic measures exactly where the latest close falls within the high-low range of the lookback period. A reading near 100 means price is closing at the top of its recent range, and a reading near 0 means it is closing at the bottom. Because it is bounded and range-based, the stochastic reads consistently across different assets and timeframes.

How is the stochastic oscillator calculated? (the formula)

The stochastic uses two lines, %K and %D, built around the high-low range of the lookback period, with the default at 14 periods.

%K = [ (Close - Lowest Low) / (Highest High - Lowest Low) ] x 100
%D = 3-period Simple Moving Average of %K

%K is the main line. It takes the current close, subtracts the lowest low of the last 14 periods, divides by the full high-low range over those periods, and multiplies by 100. %D is a 3-period moving average of %K and serves as the slower signal line.

A worked illustration: suppose over the last 14 periods the highest high is $60, the lowest low is $40, and the current close is $55. Then %K = (55 - 40) / (60 - 40) x 100 = 15 / 20 x 100 = 75. A reading of 75 means price is closing near the upper end of its recent range. If the close were $45 instead, %K would be (45 - 40) / 20 x 100 = 25, near the lower end.

8020
Illustrative stochastic oscillator moving between oversold (below 20) and overbought (above 80). The scale is bounded 0 to 100 and reflects where the close sits in the recent range.

What do overbought and oversold mean for the stochastic?

The standard thresholds set overbought above 80 and oversold below 20. An overbought reading means price is closing near the top of its recent range, and an oversold reading means it is closing near the bottom.

As with other momentum oscillators, these levels are zones of attention rather than automatic signals. A reading above 80 says price has been closing strongly, not that a reversal is due, and in a strong uptrend the stochastic can stay pinned above 80 for a long time while price keeps climbing. The same is true at the bottom in a downtrend. The thresholds are most informative when price is moving sideways in a range, where they tend to align with the upper and lower edges of that range. Mechanically selling at 80 and buying at 20 often leads to losses in trending markets.

What is a stochastic crossover?

A stochastic crossover happens when the %K line crosses the %D signal line, and it is one of the indicator's primary signals. A cross of %K above %D points to strengthening upside momentum, and a cross below points to strengthening downside momentum.

Crossovers carry more weight when they occur inside an extreme zone. A %K-above-%D cross from below 20 is read as a sign that downside momentum may be easing, while a cross below %D from above 80 suggests upside momentum may be fading. The catch is that crossovers fire often, and in choppy markets they whipsaw back and forth, producing many false signals. They are most useful when aligned with the broader trend rather than acted on in isolation. Confirming a crossover against price structure and the trend filters out a large share of the noise.

What is stochastic divergence?

Stochastic divergence occurs when price and the oscillator move in opposite directions, which can hint that a trend is losing momentum. As with other oscillators, it is a warning rather than a confirmed reversal.

  • Bullish divergence: price makes a lower low, but the stochastic makes a higher low, suggesting downside momentum is weakening. It is most meaningful in oversold territory.
  • Bearish divergence: price makes a higher high, but the stochastic makes a lower high, suggesting upside momentum is weakening. It is most meaningful in overbought territory.

Divergence is more dependable on higher timeframes and when confirmed by other tools, such as a break of support or resistance, volume, or a candlestick pattern. The familiar caution applies: in a strong trend, divergence can persist for a long time while price keeps extending, so divergence alone is not a setup. George Lane himself emphasized divergence as one of the most important uses of the indicator, but always in context.

Fast, slow, and full stochastic: what is the difference?

There are three versions of the stochastic, and they differ in how much smoothing they apply. More smoothing means fewer false signals at the cost of a slightly slower response.

VersionWhat it doesOften used for
FastRaw %K, jumpy and reactiveRarely used directly, too noisy
Slow%K smoothed by a 3-period averageThe standard, balanced choice
FullFully customizable smoothing and %DTraders fine-tuning the indicator

The fast stochastic plots the raw %K, which is responsive but erratic. The slow stochastic, the version most traders use, smooths %K with a 3-period average before plotting, cutting down on whipsaws. The full stochastic lets you set the lookback, the %K smoothing, and the %D period independently for finer control. Shorter or less-smoothed settings generate more signals and more noise; longer or more-smoothed settings give fewer, steadier ones. Any non-default setting should be reviewed against the specific asset before you rely on it.

Common stochastic oscillator mistakes and limitations

The stochastic is powerful but easy to misuse, and most errors come from treating it as a mechanical system. Like other oscillators, it can mislead in strong trends.

  1. Reading 80/20 as automatic triggers. Overbought and oversold are zones of attention, not buy or sell instructions.
  2. Fighting strong trends. The stochastic can stay pinned above 80 in an uptrend or below 20 in a downtrend for long stretches.
  3. Whipsaws. It is far more reliable in ranging markets than in trending ones, where crossovers multiply false signals.
  4. Acting on every crossover. %K crosses %D frequently; without trend context, most crosses are noise.
  5. Using it alone. The stochastic works best alongside trend analysis, volume, and a non-correlated indicator. For how it stacks up against momentum peers, see MACD vs RSI.
The stochastic flags stretched conditions but does not size a trade. When you turn a reading into a potential scenario, define your exit levels first with our Risk/Reward calculator. Lynx AI can also read a chart screenshot and explain what a stochastic reading implies in context.

Putting the stochastic oscillator in context

Think of the stochastic as one momentum lens, not the whole picture. It tells you where the close sits within the recent range and where momentum may be stalling, but it cannot tell you on its own whether a move will reverse or simply pause. The strongest reads come from combining a stochastic signal with the broader trend, key price levels, and confirmation from volume or patterns. Used that way, the stochastic becomes a disciplined way to ask better questions about a chart rather than a shortcut to answers.

This article is educational and is not financial advice. Indicators describe past and present price behavior, and past or typical indicator behavior does not guarantee future results.

Frequently asked questions

What is the stochastic oscillator?
The stochastic oscillator is a momentum indicator that compares an asset's closing price to its high-low range over a lookback period, on a 0 to 100 scale. George Lane popularized it in the late 1950s to flag overbought and oversold conditions.
What are the %K and %D lines?
%K is the main line, showing where the close sits within the recent high-low range. %D is a 3-period moving average of %K and acts as the slower signal line. Crossovers between them are a core stochastic signal.
What are the overbought and oversold levels for the stochastic?
The standard thresholds are above 80 for overbought and below 20 for oversold. These are zones that warrant attention, not automatic reversal signals, and price can stay pinned at an extreme in strong trends.
What is the difference between fast and slow stochastic?
The fast stochastic uses the raw %K, which is jumpy. The slow stochastic smooths %K with a 3-period average before plotting, producing fewer false signals. Most traders use the slow version.
Is the stochastic oscillator the same as RSI?
No. Both are bounded momentum oscillators, but the stochastic compares the close to its high-low range, while RSI compares the size of recent gains to recent losses. They often give different readings.

Not sure what your indicators are telling you? Upload your chart and Lynx AI reads the signals in context: trend, levels, and whether the indicator agrees with price.

Keep reading

All Technical Indicators guides →

Educational only. Not financial advice. NFA. Bullynx is not a registered investment adviser or broker-dealer. Trading and investing involve significant risk of loss. Read the full risk disclosure.