Skip to main content

Research method

Stochastic oscillator: how it is built and used

The stochastic oscillator places the latest close inside the high-low range of a recent window and scales that position from 0 to 100. 193 readings in the TradersWeek archive use it, most often beside RSI or a moving average that decides direction while the stochastic decides timing.

Output
Research filter
Input
High, low and close of one instrument
Horizon
Set by the lookback; 14 bars by default in the terminal
Best use
Timing entries in the direction a trend tool has already chosen

The archive describes how the stochastic oscillator is constructed, smoothed and combined with other rules across 193 readings from the 1980s to the 2020s. TradersWeek has not attached its own reproducible backtest to this card, so nothing here is a performance claim.

  • %K = 100 × (close − lowest low) / (highest high − lowest low) over the lookback; %D is a short average of %K.
  • Fast and slow stochastics are the same formula with one extra smoothing step; "slow %K" is the fast %D under a new name.
  • A stochastic near 100 says the close sits at the top of its recent range, which is normal in a strong uptrend, not a reversal call.
  • In the archive it appears beside RSI (50 readings) and moving averages (42) more often than on its own.
  • On the TradersWeek chart the default is the fast form, 14 / 1 / 3; set %K Smooth to 3 for the slow form.

The graph · 8

How the method is built, and where it has been read

Depends on

Often reviewed together

MACD12 readings

Read in the archive24 of 193 readings

1982Three gates on a 1982 pork-belly shortDecision process1984Constructing the slow stochastic from a five-session rangeIndicators and filters1985Daily ARIMA range as a filter for intraday stochastic divergenceTime series and forecasting1986Auditing stochastic crossovers with moving-average baselinesIndicators and filters1987Mechanical systems need more than pretty chartsSystem design1987Stochastic fast and slow construction as a rebuildable stackIndicators and filters1988Relative strength, stochastics, and on-balance volume as a turning-point stackIndicators and filters1988Triaging Elliott wave counts with weekly stochastic divergencesWaves and ratios1989Building the stochastic oscillator from close locationIndicators and filters1989A variable-sensitivity stochastic built on three-sigma boundsIndicators and filters1989Treasury auction-rollover as yield-to-price series constructionAuction and volume1989Cycle-length windows for momentum, Relative Strength Index, and stochastic constructionIndicators and filters1990Monthly stochastics as a multi-year bond regime filterIndicators and filters1990Constructing stochastic %K and %D from range positionIndicators and filters1990Walk-forward screen for yen indicator rulesIndicators and filters1990Slow stochastic construction for index pullback entriesEntry and exit rules1990Constructing stochastic K and D lines and divergence cuesIndicators and filters1990Split-sample tests for stochastic parameter gridsIndicators and filters1991Constructing a double-smoothed stochastic oscillatorIndicators and filters1991Random Walk Index construction with an adaptive lookbackIndicators and filters1991Building a two-stage stochastic oscillator from close locationIndicators and filters1991Regime-gated MACD and stochastic rules inside a checklistDecision process1991Constructing five-session forecasts from stochastic, ADX, and MACD inputsTime series and forecasting1991Constructing a double-smoothed momentum oscillator familyIndicators and filters

How the stochastic oscillator is calculated

Pick a lookback window. On every bar find the highest high and the lowest low inside it, then measure where the close sits between them: %K = 100 × (close − lowest low) / (highest high − lowest low). A close at the top of the range reads 100, at the bottom 0. The idea was popularized by George Lane: in a rising market closes tend to cluster near the top of the recent range, in a falling one near the bottom.

%D is a short moving average of %K, usually 3 bars, and serves as the signal line. That pair is the fast stochastic. The slow stochastic adds one more step: the fast %D becomes the new %K, and a second 3-bar average of it becomes the new %D. Slow lines turn later and cross less often.

Why "Stochastic 14, 3" can mean two different lines

Because slow %K is fast %D renamed, a label without the smoothing setting is ambiguous: one platform shows the fast pair by default, another the slow one. There are smaller differences too. Some definitions build %D as a ratio of summed numerators to summed denominators rather than an average of finished %K values, and some exclude the current bar from the high-low window. Each choice moves the reading, so check all of them before you copy a level or a cross from a book or another chart.

Parameter set

The choices that change the reading

lookback
%K lookback

Bars in the high-low window.

Default: 14A short window pins the line to the extremes and flips it on small moves.
kSmooth
%K smoothing

Extra average applied to raw %K; 1 means none (fast), 3 gives the slow form.

Default: 1 (fast)Levels and crosses measured on one form do not carry over to the other.
dPeriod
%D period

Length of the signal-line average of %K.

Default: 3A longer %D makes every cross arrive later.
bands
Bands

Levels treated as extreme.

Default: 80 / 20In a trend the line can stay beyond them for many bars.

What 193 readings in the archive do with the stochastic

The stochastic oscillator appears in 193 readings of the TradersWeek research archive: 12 from the 1980s, 57 from the 1990s, 64 from the 2000s, 52 from the 2010s and 8 from the 2020s. In 42 of them it is the main subject; elsewhere it is one input among several.

Its most frequent companions are RSI (50 readings), moving averages (42), divergence (29), MACD (16) and explicit rule-based entries (16). The common arrangement gives direction to the trend tool and timing to the stochastic.

The readings where the stochastic is the subject return to four themes:

  • Rebuilding the construction. Many readings rebuild fast and slow lines step by step: raw %K, the ratio-of-sums %D, the relabeling that produces slow %K, and whether the current bar belongs in the window. The point is that each published setting names one specific stack of choices.
  • Several clocks at once. The same formula is run on nested lookbacks, for example a 70-day line (14 weeks of five sessions) beside a 14-day one, or on monthly bars as a regime filter. A shorter-window cross counts only when the longer line already agrees.
  • Full rule packages, not bare crosses. A fade waits for an extreme to turn; a follow treats a stretch beyond the band that lasts, commonly five consecutive sessions, as a trend. Both arm on a next-bar break and carry a stop at a recent extreme or support, which also sets position size.
  • Stochastic of something else. The range-normalization step is applied to other series: RSI (the stochastic RSI), exponential averages, a spread between two markets, a valuation gap. The question becomes where a value sits inside its own recent range.

Where it fits in a workflow

Use the stochastic after the direction is settled. In an uptrend, a dip of the slow line toward the lower band followed by a %K cross back above %D is a candidate entry worth checking against support; a reading near the top tells you little on its own. Fix the lookback, both smoothing lengths, the bands and the confirmation rule before you test anything, and keep them fixed while you test.

On the TradersWeek chart

The terminal's Stochastic indicator has three settings: %K Period 14, %K Smooth 1 and %D Period 3, with %D a simple average of %K and reference lines at 20 and 80. With %K Smooth at 1 it draws the fast form; set it to 3 for the slow one. When the window's high equals its low the bar gets no value instead of a made-up 50. The separate KDJ indicator is a different variant: 9 / 3 / 3, recursive smoothing seeded at 50, and a third line J = 3K − 2D, so its readings do not match the Stochastic.

Not investment advice. Historical behaviour of an indicator does not guarantee future results.