TradeLabs AILearn

Stochastic Oscillator

The stochastic oscillator shows where the close sits within the recent high low range. Learn %K and %D, overbought and oversold levels, crossovers and divergence.

Beginner3 min readUpdated 3 Oct 2026
Markdown
Read firstMACD
Lesson 8 of 22

The stochastic oscillator is a momentum indicator that compares a market's closing price with its price range over a recent period. It was developed by George Lane in the 1950s. The idea behind it is that in uptrends, prices tend to close near the top of their recent range, and in downtrends, near the bottom. When closes start drifting away from the extremes, momentum may be changing.

The formula#

%K = (Close − Lowest low) ÷ (Highest high − Lowest low) × 100
%D = 3 period simple moving average of %K

The highest high and lowest low are measured over the lookback period, usually 14. %K is the main line; %D is its smoothed signal line.

Fast, slow and full stochastics#

VersionHow it is built
Fast%K raw, %D = 3 period average of %K
Slow%K smoothed with a 3 period average (the fast %D), and %D = 3 period average of that
FullCustom smoothing for both lines, such as 14, 3, 3

The slow stochastic is the most common default because the raw fast version is very jumpy.

Overbought and oversold#

ReadingCommon interpretation
Above 80Overbought: closing near the top of the range
Below 20Oversold: closing near the bottom of the range

As with RSI, overbought is not a sell signal by itself. In strong trends, stochastics can stay above 80 or below 20 for long periods. Overbought and oversold signals work best in ranges.

Main signals#

  1. Crossovers: %K crossing above %D, especially below 20, is a bullish signal; crossing below %D above 80 is bearish.
  2. Exits from extremes: stochastic moving back above 20 from below, or back below 80 from above, suggests the extreme move is ending.
  3. Divergence: price makes a new high while the stochastic makes a lower high (bearish), or price makes a new low while the stochastic makes a higher low (bullish). See RSI (Relative Strength Index) for more on divergence.

Trading with the stochastic#

In ranges#

Buy near support when the stochastic is below 20 and %K crosses above %D; sell near resistance when above 80 and %K crosses below %D. Stops go beyond the range edges. See Range Trading.

Use the stochastic to time pullback entries in the direction of the trend. In an uptrend, wait for the stochastic to dip into oversold during a pullback and turn up, then buy. Ignore overbought sell signals, since they fight the trend.

Stochastic vs RSI#

StochasticRSI
MeasuresClose relative to the recent rangeAverage gains versus losses
SensitivityMore sensitive, more signalsSmoother
Typical levels80 and 2070 and 30

See RSI (Relative Strength Index) and Williams %R, which is closely related to the stochastic.

Common mistakes#

  • Selling every overbought reading in an uptrend.
  • Using the fast stochastic and reacting to constant noise.
  • Trading crossovers in the middle of the scale, where they carry little meaning.

Frequently asked questions#

What does the stochastic oscillator measure?#

Where the current close sits within the high to low range of the recent lookback period, as a percentage from 0 to 100.

What are good stochastic settings?#

The slow stochastic with 14, 3, 3 is a common default. Shorter lookbacks give faster, noisier signals.

Its overbought and oversold signals work best in ranges. In trends, it is better used to time pullback entries in the trend's direction.

Sources#

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonCCI (Commodity Channel Index)The CCI measures how far price is from its average relative to normal deviation. Learn the formula, the plus and minus 100 levels, trend and reversal strategies.