← Back to indicators guide

Stochastic — Stochastic Oscillator

The stochastic oscillator measures the position of the close relative to the recent high/low range. Developed by George Lane in the 1950s, it stems from a simple observation: in an uptrend, closes happen near the highs; in a downtrend, near the lows. It bounds its reading between 0 and 100, like the RSI, but reasons on a different axis.

Definition and formula

The stochastic consists of two lines, %K (fast) and %D (slow):

%K = 100 × (close − lowest N) / (highest N − lowest N)
%D = 3-period moving average of %K

The standard window is 14 periods for %K, smoothed over 3 periods for the "slow" version. The shorter the window, the more reactive but noisy the signal. The slow version (%K smoothed + %D) is used by default in Cash Scanner.

How to read the stochastic

Classic thresholds

Stochastic divergences

Like the RSI, the stochastic generates divergences with strong predictive power:

Cash Scanner detects these divergences automatically. See the divergences guide for the complete methodology across the 4 oscillators.

How Cash Scanner uses the stochastic

The stochastic enters the /100 score in several ways:

Limits and common pitfalls

Going further