Calculation
raw = 100 · (close − lowest low of n) / (highest high of n − lowest low of n) %K = SMA(raw, %K smoothing) 1 = no smoothing (the fast stochastic) %D = SMA(%K, %D smoothing)
With a %K smoothing of 3 this is the slow stochastic. These are the definitions of TradingView's built-in Stochastic.
How to read it
- Above 80 the close is in the top fifth of the recent range, below 20 in the bottom fifth. In a sideways market these are the areas where the range has held so far.
- %K crossing %D shows the position in the range starting to turn; crossings in the middle of the scale say little.
- In a trend the oscillator stays near one end for a long time: a reading above 80 during an advance describes strength, not an end.

Add it in Oyticker
- Click Indicators, choose Stochastic.
- In its row of the legend, click the Settings button to set the three lengths.
Limits
- It only knows the last n bars: a new high in a strong trend keeps it pinned at the top.
- With a smoothing of 1 it is noisy; with more smoothing it turns later.
- 80 and 20 are conventions, not prices where anything has to happen.
Charts in this guide use simulated prices generated for illustration; levels and outcomes shown are examples, not observations of a real market. For information only, not investment advice.