Stochastic Oscillator
The Stochastic Oscillator compares the close to the high-low range, usually over 14 periods. %K is that reading; %D is a 3-period SMA of %K. Levels at 80 and 20 are common, but the oscillator can stay overbought in a strong trend.
On this page
The Stochastic Oscillator measures where the close sits inside the recent high-low range. It is plotted from 0 to 100. The usual lookback is 14 periods. Readings above 80 are often called overbought, and readings below 20 are often called oversold. Those labels describe location in the range, not a forecast that price must reverse.
How It Is Calculated
%K is (close minus the lowest low) divided by (the highest high minus the lowest low), then multiplied by 100, using the high-low range of the last 14 periods. %D is a 3-period simple moving average of %K. Many platforms also smooth %K itself; that slower version is often called Slow Stochastic.
A Simple Example
If the lowest low of the last 14 periods is 1.0900, the highest high is 1.1100, and the close is 1.1050, then %K is (1.1050 − 1.0900) ÷ (1.1100 − 1.0900) × 100. That is 0.0150 ÷ 0.0200 × 100, which equals 75.
Practical Point
A common mistake is to treat a reading above 80 as an automatic short, or a reading below 20 as an automatic long. In a strong trend the oscillator can stay overbought or oversold for an extended run. A %K and %D crossover is more useful when it lines up with the higher-timeframe trend, such as a dip and a cross back up while that trend is still rising, than when it is used to fade every move into the 80 or 20 zone.