Stochastic Oscillator
The stochastic oscillator is a momentum indicator that measures where the current close sits within its recent high-low range, signaling potential overbought or oversold conditions.
The stochastic oscillator, developed by George Lane, is a bounded momentum indicator based on a simple observation: in an uptrend prices tend to close near the top of their recent range, and in a downtrend near the bottom. Its main line, %K, expresses the current close as a percentage of the high-low range over a lookback period (commonly 14): it equals the current close minus the lowest low, divided by the highest high minus the lowest low, times 100. A second line, %D, is a short moving average (typically 3 periods) of %K and acts as a signal line. The oscillator is bounded between 0 and 100.
Readings above 80 are conventionally treated as overbought and below 20 as oversold, but these are not automatic sell or buy signals; in a strong trend the oscillator can stay pinned at an extreme for a long time. More actionable signals come from %K crossing %D, and from divergence, where price makes a new high or low but the oscillator does not, hinting that momentum is fading. The "fast" version is responsive but noisy, while "slow" and "full" variants apply additional smoothing to reduce false signals.
Like other oscillators, the stochastic works best in range-bound markets and gives frequent false signals in strong trends, which is why practitioners often pair it with a trend filter such as a moving average. It is conceptually related to RSI but measures a different aspect of momentum.
On hedgewing.ai, stochastic %K and %D are among the roughly 45 engineered features supplied to the LSTM, GRU, TCN, and Transformer ensemble. Rather than relying on fixed 20/80 thresholds, the models learn how stochastic readings interact with trend and volatility features across different regimes, and every feature's contribution is validated through nightly walk-forward backtesting so apparent overbought/oversold edges are confirmed out-of-sample.
Related terms
RSI (Relative Strength Index) · Momentum (Investing) · MACD (Moving Average Convergence Divergence) · Mean Reversion
Back to the hedgewing.ai glossary · See AI stock forecasts