Indicators · Intermediate

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.

Last reviewed by the MarketPro research desk · Editorial policy

In short

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.

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

VersionWhat is plottedCharacter
FastRaw %K, with a 3-period %DVery noisy, crosses constantly
Slow%K replaced by the old %D, then smoothed againThe common default, steadier
FullLookback and both smoothing lengths adjustableWhatever 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
In your browserContinue on webor continue on web

Same account as the app · No install · Free to start

Or scan with your phone camera to get the MarketPro app.

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.

Written and reviewed by the MarketPro research desk

MarketPro is a trading-signal and trading-education app operated by Harajuku Holdings LTD (Cyprus). Our signal desk publishes and tracks every trade idea in-app, and every page here is checked against the app's live behaviour before publishing. Last reviewed . How we produce signals and content · About MarketPro

FAQ

Stochastic Oscillator Basics: questions

What is the difference between fast and slow stochastic?
Fast stochastic plots the raw %K line with a three-period average as %D. Slow stochastic replaces %K with the smoothed line and averages it again, producing a steadier pair of lines. Fast stochastic crosses the 20 and 80 thresholds far more often on identical data, which is why most platforms display the slow version by default.
Why does stochastic stay above 80 in an uptrend?
Because the calculation asks where the close sits within the recent range, and during an advance almost every bar closes near the top of its range. That produces a high reading bar after bar for as long as the move continues. Selling each cross back below 80 in that environment means shorting an advance over and over while it continues, and being stopped out by that continuation each time.
Should I use stochastic or RSI?
They measure different things despite looking similar. RSI compares the average size of gains to the average size of losses, while stochastic compares the latest close to the recent high-low range. Stochastic reacts faster and produces more signals. Using one of each type alongside a trend tool adds more information than running two oscillators that share a family.
Trade · Learn · Earn

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.