Stochastic Oscillator Basics
A stochastic of 80 means the close finished 80 per cent of the way up the last 14 bars' range. Nothing more.
The stochastic oscillator measures where the current close sits inside the high-to-low range of the last 14 periods, scaled from 0 to 100. A reading of 80 means the close finished 80 per cent of the way up that range. The second line, %D, is a three-period average of the first. Readings above 80 are called overbought and below 20 oversold, though both persist for long stretches during a trend.
What to remember
- Stochastic is a percentage of a range, and the range endpoints are single prints, so one old wick can shift the reading by several points.
- Most platforms show slow stochastic by default, which has already been smoothed once more than the raw formula.
- In a sustained trend every bar closes near the top of its range, so the oscillator sits above 80 for the whole move.
- Williams %R is the same calculation inverted. Running both is one opinion drawn twice, not confirmation.
Step 5 of 10 on Indicators Toolkit
The formula is a percentage of the range
The stochastic oscillator asks one question: where did this bar close inside the high-to-low range of the last N bars? The answer is expressed as a percentage. A close at the very top of the range is 100, a close at the very bottom is 0, and a close halfway up is 50. The default lookback is 14 periods.
Written out, %K is (close - lowest low) / (highest high - lowest low) x 100. The second line, %D, is a 3-period moving average of %K, drawn to smooth the first one. That is the entire construction. There is no weighting, no volume, and no reference to anything outside the last 14 bars.
An 80 reading, computed from three prices
Take 14 hourly candles on EUR/USD. The highest high in that window is 1.0920 and the lowest low is 1.0800, so the range is 120 pips. The current candle closes at 1.0896.
The close sits 96 pips above the low, and 96 divided by 120 is 0.80. %K is 80. Cross the conventional overbought threshold and you have a signal, according to the popular reading.
Now change one thing and nothing else. Suppose the 14-bar low had been 1.0770 rather than 1.0800, perhaps because of a single spike during a thin hour. The range is now 150 pips, the close sits 126 pips above the low, and %K is 84. Same current price, same recent action, a four-point difference in the reading because of one old wick. Stochastic is highly sensitive to the extremes of its window, and those extremes are single prints rather than averages.
That sensitivity is also why it moves so fast. As soon as the bar containing the 1.0800 low rolls out of the lookback, the denominator changes and the oscillator jumps, with no new price action required.
Fast, slow and full: what the settings change
| Version | What is plotted | Character |
|---|---|---|
| Fast | Raw %K, with a 3-period %D | Very noisy, crosses constantly |
| Slow | %K replaced by the old %D, then smoothed again | The common default, steadier |
| Full | Lookback and both smoothing lengths adjustable | Whatever you configure, including badly |
Most charting packages show slow stochastic by default and label it simply stochastic, so the version you are looking at has already been smoothed once more than the formula above suggests. Knowing which one is on the screen matters, because fast stochastic produces roughly two to three times as many crossings of the 20 and 80 lines as slow does on the same data.
10 more sections in MarketPro
Finish this lesson in MarketPro
The rest of Stochastic Oscillator Basics, a quiz that checks it landed, and your place kept in the curriculum.
- 10 more sections of this lesson
- All 320 lessons, with no cap and no paywall
- Free on any account, including a free one
Same account as the app · No install · Free to start
Or scan with your phone camera to get the MarketPro app.
Free account, no card needed.
Not investment advice. Past performance is not indicative of future results.
Run the numbers while this is fresh
Work it through on your own position size. Nothing leaves your browser and there is no sign-up: Pivot points calculator, Fibonacci calculator, Position size calculator.
Stochastic Oscillator Basics: questions
What is the difference between fast and slow stochastic?
Why does stochastic stay above 80 in an uptrend?
Should I use stochastic or RSI?
The whole academy is free in MarketPro
All 320 lessons, 12 guided paths, quizzes and a daily streak. Free on every account, in the app or your browser, with vetted free signals alongside it.
Same account as the app · No install · Free to start
Not investment advice. Past performance is not indicative of future results.