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.
- %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.
- 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.
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.
- %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.
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
Where is it?
Above 80: closing near the top of the range. Below 20: near the bottom.
Is %K crossing %D?
A cross inside a zone shows the swing turning.
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 →
- %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.
Indicators · the series
Next in indicators
- 1 · MomentumRSIRecent up moves against down moves, from 0 to 100.
- 2 · Momentum · you are hereStochasticsWhere the close sits in the recent high-low range.
- 3 · MomentumCCIHow far price has moved from its average, in typical-size steps.Read next →
- 4 · MomentumMACDTwo moving averages, the gap between them, and whether it is growing.
- 5 · TrendMoving averagesSMA and EMA, price against the average, crosses and stacks.
- 6 · TrendADX and DIHow strong a trend is, and which side is pushing it.
- 7 · TrendSupertrendA trailing line that flips sides when price closes through it.
- 8 · TrendIchimokuThe cloud, its two edges and the lines inside it.
- 9 · VolatilityATRHow far price typically moves in one bar.
- 10 · VolatilityThe squeezeBollinger Bands inside Keltner Channels: quiet before a move.
- 11 · VolatilityDonchian channelThe highest high and lowest low of the last 20 bars.
- 12 · VolumeVolume and OBVHow much traded, against its average, and running volume.
- 13 · VolumeVWAPThe day’s average traded price, weighted by volume, with bands.
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.