Join free

Indicators, and what the readings mean

Stochastics: where price closed in its range, and why it pins in a trend

The stochastic oscillator answers one question and answers it exactly: where in its recent range did price close? Everything people believe about it beyond that comes from somewhere other than the formula.

About 10 minutes to read. Free, no account.

The number is a position inside a range

Take the last N bars, 14 by convention. Find the highest high and the lowest low in that window. Then ask where the latest close sits between them, as a percentage. That is %K, sometimes called raw or fast %K.

The formula
%K  =  100 times (close - lowest low) / (highest high - lowest low)
A worked reading
over the last 14 bars
  highest high   120
  lowest low     100
  latest close   115

%K  =  100 times (115 - 100) / (120 - 100)
    =  100 times 15 / 20
    =  75

So %K 75 means the close landed three quarters of the way up the last fourteen bars’ range. Not that price rose 75% of anything, not that the move is three quarters finished. A position in a range, nothing else.

At 100 the close equalled the window’s highest high. At 0 it equalled the lowest low. At 50 it sat exactly in the middle of the range, which can happen in a market that has gone nowhere and in one that has travelled violently in both directions.

%K and %D, fast and slow

%K computed bar by bar is jumpy, because the window’s high or low can change from one bar to the next and move the denominator. So it is smoothed, usually twice, and the names are worth getting straight.

The three quantities
raw %K     the range position above
slow %K    a 3-period average of raw %K
%D         a 3-period average of whichever %K is plotted

the usual "14, 3, 3" means  N = 14, then two 3-period smoothings
%D, by hand
the last three %K values   75, 81, 90
sum                        246
%D  =  246 / 3             =  82

%D is therefore an average of a range position - one step further from the market than %K and one step later. The "fast" and "slow" stochastic differ only in how many of these smoothings are applied. Nothing new is measured by either.

Why it saturates in a trend

The conventional lines are 80 and 20, with the same unhelpful labels RSI gets. The structural reason they do not work as triggers is the one the RSI lesson sets out: a bounded indicator must saturate when an unbounded price keeps going. %K cannot exceed 100. Price can rise forever. In a sustained advance the two facts have to be reconciled somewhere, and the reconciliation is %K sitting near 100 for as long as the advance lasts.

Stochastics has a second mechanism on top of RSI’s, and it is worse. The window’s highest high is in the denominator, and in an uptrend the highest high is the current bar. So the ceiling is lifted by the same bar that lifts the close. Watch:

Price climbs 8%, the reading does not move
bar 1   window high 120   window low 100   close 120
        %K  =  100 times (120 - 100) / (120 - 100)  =  100

bar 2   window high 130   window low 100   close 130
        %K  =  100 times (130 - 100) / (130 - 100)  =  100

close rose from 120 to 130, which is 8.3%
%K stayed at 100

The reading is pinned and the trend is doing exactly what trends do. A reading of 100 does not mean the move is finished; it means every bar in the recent window closed at the top of the window, which is the definition of the move being strong. The mirror case pins at 0 through a decline while every "oversold" reading marks another step down.

The denominator makes it blind to size

Because the range appears on the bottom of the fraction, it cancels out. %K is scale-free: it has no idea whether the range it measured was enormous or trivial.

A maximum reading on almost nothing
over the last 14 bars
  highest high   100.50
  lowest low     100.00
  latest close   100.50

%K  =  100 times 0.50 / 0.50  =  100

the entire 14-bar range was 0.50 on a price of 100  =  0.5%

A maximum reading produced by a market that did nothing for fourteen bars. This is the same blindness RSI has and the reason an oscillator belongs next to a measure of size rather than instead of one - see ATR. In a dead-flat market the oscillator will swing from one extreme to the other on noise, repeatedly, and look tremendously informative while doing it.

The crossover, and what it is worth where

%K crossing %D means the current range position has moved away from its own recent average. In a range-bound market that happens constantly in both directions and carries no information. In a trend it can usefully mark a pullback having finished pulling back - and it fires late, because %D is an average of three bars of a smoothed quantity.

Shortening N makes everything above happen more often; lengthening it makes extremes rarer. Both are choices about sensitivity, neither adds information, and picking the pair that would have worked on the chart in front of you is curve fitting however good the result looks.

What stochastics cannot do

The honest use is as a question: this close is near the top of its recent range - is that because the range is being broken, or because the range is holding? The oscillator cannot answer that. Structure, the size of the bars and the behaviour of pullbacks can. Nothing in this lesson is an instruction to trade; see the risk disclaimer.

The terms, defined

%K
Where the latest close sits between the highest high and the lowest low of the last N bars, as a percentage of that range.
%D
A short moving average of %K, conventionally 3 periods. An average of a range position.
Fast and slow stochastic
The same calculation with fewer or more smoothing passes applied. Slow is steadier and later; neither measures anything new.
Saturation
A bounded reading sitting at the top or bottom of its scale while price continues. Forced by the bound, not evidence of exhaustion.
Scale-free
Having no reference to size, because the quantity divides by its own range. Convenient, and the reason an oscillator cannot tell a big move from a small one.
Range position
What this indicator measures, and the only thing it measures: a close expressed as a fraction of a recent high-to-low span.

What this means in practice

Nothing in this lesson is financial advice or an instruction to trade. See the risk disclaimer. We never recommend a leverage setting - that decision is yours.

Come and watch the record being built

Crypto news as it breaks, the day's biggest movers, and free signals in the same format paid members get. No card, no account.

Join the free Telegram channel