How the Stochastic Oscillator Is Calculated
George Lane developed the Stochastic Oscillator in the late 1950s. The formula: %K = (Current Close - Lowest Low over N periods) / (Highest High over N periods - Lowest Low over N periods) × 100. The default N is 14 periods. %K oscillates between 0 and 100. A reading of 80 means the close is near the top of the 14-period range; a reading of 20 means the close is near the bottom. %D is a 3-period simple moving average of %K, creating a signal line. The Stochastic generates signals from %K crossing %D and from both lines entering or exiting the 80/20 threshold zones.
There are three variants: Fast Stochastic (raw %K), Slow Stochastic (uses the 3-period average of %K as the main line), and Full Stochastic (allows customization of all smoothing parameters). Slow Stochastic is most commonly used in practice because it filters out the whipsaws inherent in the raw %K calculation. Platforms typically default to Slow Stochastic (14,3,3) — a 14-period %K, smoothed with a 3-period average for the slow %K, and then a further 3-period average for %D.