Stochastics, explained

The stochastic oscillator asks one question: where did price close inside its recent range? Near the top of the range, it reads near 100. Near the bottom, near 0.

IN ONE LINE%K is where the close sits in the last 14 bars' high-to-low range. %D is a short average of %K.

5 short lessons · about 3 minutes

Price on top, Stochastics 14·3·3 below · 5-minuteIllustration
  • %K
  • %D (average of %K)
  • Above 80
  • Below 20

Lesson 1 · The range

Close near the high of the range: high reading. Near the low: low reading.

Take the highest high and lowest low of the last 14 bars. If price closes right at the high, raw %K is 100. At the low, 0. Halfway, 50. The standard version then smooths it over 3 bars.

The 14-bar range, bar by barIllustration
Near 100
Closes are landing at the top of the recent range.
Near 0
Closes are landing at the bottom.
It only sees the range
A 2-point range and a 40-point range can give the same reading.

KEYStochastics measures position in the range, not the size of the move.

Lesson 2 · 80 and 20

Above 80 is called overbought, below 20 oversold

Same idea as RSI's 70 and 30, with tighter lines because stochastics moves faster. Above 80, price keeps closing near the top of its range. Below 20, near the bottom.

A range: tagging both endsIllustration

KEYIn a range, 80 and 20 line up with the edges of the range. That's where stochastics reads most clearly.

Lesson 3 · %K and %D

%K crossing %D shows the swing turning

%D is a 3-bar average of %K, so it trails. When %K turns and crosses %D, the closes have started landing in a different part of the range. Many traders watch for this cross inside the 80 or 20 zone.

Turning in the zonesIllustration
%K
The fast line. It turns first.
%D
The slow line, an average of %K.
A cross in a zone
Shows the stretch starting to ease. It doesn't say how far price will go.

KEYCrosses happen often. The ones inside 80 or 20 are the ones most traders pay attention to.

Lesson 4 · Pinned in a trend

In a trend, stochastics can sit above 80 bar after bar

If every bar closes near its high, price is always near the top of its range, so the reading stays high. Crosses up there come and go while price keeps climbing.

Trend day: pinned highIllustration

KEYStochastics reads best in a range. In a strong trend, high readings mean strength, not a top.

Lesson 5 · What to look for

Three questions to ask the stochastics pane

  1. Where is it?

    Above 80: closing near the top of the range. Below 20: near the bottom.

  2. Is %K crossing %D?

    A cross inside a zone shows the swing turning.

  3. Range or trend?

    In a range, the zones mark the edges. In a trend, the reading can stay pinned.

The settings

14, 3, 3 is the most common (14-bar range, 3-bar smoothing, 3-bar %D). NinjaTrader's default %D is 7, which is smoother.

Fast and full

"Fast" stochastics skips the smoothing of %K, so it's jumpier. "Full" (shown here) smooths it.

Compared with RSI

RSI weighs the size of moves. Stochastics only cares where the close lands. RSI lesson →

THE RECAP
  • %K shows where the close sits in the last 14 bars' range, from 0 to 100.
  • Above 80 and below 20 mean closes keep landing at one end of the range.
  • %D is the average of %K. A cross inside a zone shows the swing turning.
  • In a strong trend the reading can stay pinned, so check for a range first.
Education only · Not financial advice

Charts on this page are illustrations drawn for teaching. Prices are made-up sample data; %K and %D are the standard formulas run on them. Not real market data and not any product's output. Education only, not financial advice.