Stochastic oscillator
Raw and smoothed lines
Raw stochastic locates Close within the range of n bars. Fast %K is commonly raw, with %D its average. In slow or full variants, %K can also be smoothed and %D smooths that resulting series. A 14/3/3 configuration needs the role of every number and averaging method specified.
Bounds and special cases
With Close inside the chosen range, the reading lies between zero and 100. Equal window High and Low produce a zero denominator, requiring a documented software convention. The window commonly includes the current bar, so unfinished data changes the value. Stochastic RSI applies a related transformation to RSI rather than directly to price.
Threshold interpretation
Eighty and 20 are popular conventions. Price can remain near a range boundary in a trend; an extreme reading does not mandate a counter-trend position. Relative speed versus RSI depends on both parameter sets rather than being constant. Crossovers and threshold re-entry need evaluation as complete rules, including costs.
Source of the definition
TradingView: stochastic calculation. Documentation of the construction or concept is not a guarantee of strategy results.