Stochastic Oscillator: Where Price Closes Within Its Range

The stochastic does not ask how far price has moved, only where it finished inside its recent range. That one question often signals a turn before the price itself changes direction.

Where it comes from

The stochastic oscillator was developed by the American technical analyst George Lane in the late 1950s. Lane stressed that it follows the speed, or momentum, of price rather than price or volume. He liked to compare a market to a rocket: before it can fall back, it must first slow down. The indicator tries to catch that slowing early, and it has been a standard tool on charting platforms ever since.

How it is calculated

Stochastic calculation example A vertical bar shows the 14-period range from a low of 100 to a high of 112. The close at 108 sits two thirds of the way up, giving a %K of 66.7. Highest high: 112Lowest low: 100 Close: 108Close − low = 8High − low = 12%K = 100 × 8 ÷ 12 = 66.7
Figure 1. %K shows where the close sits between the period’s low and high.

The idea is simple. In an uptrend, closes tend to land near the top of the recent range; in a downtrend, near the bottom. Over a lookback period, usually 14 candles, the main line is %K = 100 × (close − lowest low) ÷ (highest high − lowest low). A reading of 100 means the close is at the top of the range, 0 means it is at the bottom. The second line, %D, is a 3-period moving average of %K and acts as a signal line.

The raw version is jumpy, so most platforms default to the “slow” stochastic, which smooths %K once more. Its settings are usually written 14, 3, 3.

Reading the signals

  • Overbought and oversold: above 80, closes are near the highs of the range; below 20, near the lows. These are warnings, not orders. In a strong trend the line can stay above 80 for weeks.
  • Crossovers: %K crossing below %D from above 80 suggests momentum is fading; crossing above %D from below 20 suggests it is returning.
  • Divergence: if price makes a new high but the stochastic makes a lower high, momentum is weakening beneath the surface. The mirror image at lows hints that selling is running out of force. Many traders treat this as the most meaningful signal of all.
Illustrative price chart with stochastic oscillator A price line rises, peaks and falls, then rises again. Below it the stochastic %K and %D lines turn before the price does, crossing down above 80 and crossing up below 20. 8020Price (illustrative) Price peaks here %K crosses below %D above 80 %K crosses above %D below 20 %K%D
Figure 2. Illustrative data. The stochastic turns before price does; the dots mark crossovers.

Using it with care

The stochastic works best in sideways, range-bound markets, where overbought and oversold readings repeat. In a strong trend, act only on signals that point the same way as the trend, such as buying a dip when the line falls below 20 in an uptrend. Confirm with a trend filter like a moving average, with support and resistance, and with volume. Shorter settings produce more signals and more noise, so avoid tuning them until the past looks perfect.

Educational content only. It is not investment advice, and trading involves risk of loss.