Stochastic Oscillator

Technical Analysis

The stochastic oscillator compares a closing price to its recent range to gauge momentum and highlight overbought or oversold conditions.

Stochastic Oscillator — illustrative image

What is the stochastic oscillator?

The stochastic oscillator, developed by George Lane, is a momentum indicator that compares a security’s most recent closing price to its high-low range over a set lookback period, typically 14. The underlying idea is that in a strong uptrend, prices tend to close near the top of their recent range, while in a strong downtrend, prices tend to close near the bottom.

How it’s calculated

The stochastic oscillator produces two lines:

  1. %K = [(Close − Lowest Low) ÷ (Highest High − Lowest Low)] × 100, using the lookback period (e.g., the last 14 candles).
  2. %D = a short simple moving average (commonly 3-period) of %K, used as a signal line.

Both lines oscillate between 0 and 100. Traditionally:

  • Above 80 suggests the market may be overbought.
  • Below 20 suggests the market may be oversold.

Example

If USD/JPY closes each of the last several candles near the top of its 14-period range, %K would sit close to 100, flagging an overbought reading. A trader might watch for %K to cross back below %D from above 80 as an early signal that the short-term rally could be losing steam — although in a strong trend, the oscillator can remain overbought or oversold for an extended stretch.

Stochastic vs. RSI

Both are momentum oscillators that flag overbought/oversold conditions on a 0-100 scale, but the stochastic oscillator focuses on where price closes relative to its recent range, while the RSI focuses on the relative size of recent gains versus losses. Traders sometimes use both together, watching for agreement between the two before acting on a signal.

Why it matters

The stochastic oscillator gives traders another lens on momentum, particularly useful for spotting potential turning points in range-bound or choppy markets. As with all oscillators, extreme readings do not guarantee an immediate reversal — trend context, support/resistance, and confirmation from price action all matter, and risk should always be managed with a stop-loss.

See also relative strength index (RSI), MACD, and technical analysis.