The Stochastic Oscillator: Spotting Overbought, Oversold, and Momentum
The Stochastic Oscillator measures where the close sits within the recent range to spot overbought/oversold. We explain the %K and %D lines, the 20/80 zones, crossover signals, and divergence.
Where does the close sit within the recent range?
The Stochastic Oscillator rests on a simple observation: in an uptrend, price tends to close near the top of the range; in a downtrend, it closes near the bottom. By measuring where the close sits within the recent range, the Stochastic helps spot overbought, oversold, and momentum — similar to but calculated differently from the RSI.
How it works
The Stochastic ranges from 0 to 100, with two lines:
- %K: the main line, measuring where the close sits within the high-low range over a number of periods (usually 14).
- %D: a moving average of %K (usually 3 periods) — the signal line, smoother.
The closer the close is to the top of the range, the higher %K; the closer to the bottom, the lower %K.
Overbought and oversold zones
- Above 80: the overbought zone — price is closing near the top of the range, possibly due for a pullback.
- Below 20: the oversold zone — price closing near the bottom, possibly due for a bounce.
An important note: "overbought" does not mean "sell now." In a strong uptrend, the Stochastic can stay above 80 for a long time. Use the overbought/oversold zones as a warning, not a mechanical signal.
Trade signals
- Cross up in the oversold zone: %K crosses above %D below 20 — a potential buy signal.
- Cross down in the overbought zone: %K crosses below %D above 80 — a potential sell signal.
- Divergence: price makes a higher high but the Stochastic makes a lower high — momentum is fading, warning of a reversal. This is one of the most valuable signals.
Stochastic vs RSI
Both are momentum indicators measuring overbought/oversold, but:
- RSI measures the speed and magnitude of price change.
- Stochastic measures the position of the close within the range — more sensitive, giving more signals (with more noise).
Many traders combine it with the MACD for confirmation.
Limits
In a strongly trending market, the Stochastic easily gives misleading "overbought/oversold" signals (the market keeps running). It works best in a ranging market or combined with trend confirmation. Always pair it with risk management.
Conclusion
The Stochastic Oscillator measures where the close sits within the recent range via the %K and %D lines, ranging 0-100, with above 80 (overbought) and below 20 (oversold). Crossover and divergence signals are the most valuable, but "overbought" is not an automatic sell. It works best in a ranging market and always with confirmation.
Next step
Got a Stochastic signal from TradingView? Let fastbot place the order automatically.
👉 Open fastbot — TradingView webhook to automated orders, free 7-day trial.