Node reference

Stochastic %K

Where price sits in its recent high–low range, 0–100.

Rev. 2026.06

Stochasticindicator
InputsOutputs
Source
source · number
Stochastic
%K
main · number
Configure
period
— Lookback length, in bars
default 14
range 1–500

What it does

Reports 0–100 for how close the source is to the top (100) or bottom (0) of the recent range.

What happens

Recomputed once per candle from its wired source, incrementally (constant work per bar). It emits no value until the warmup period has passed; after that it produces a value every bar.

When to use

Overbought/oversold reads in ranging markets (>80 / <20).

Gotchas

  • The high/low come from chart candles, not your wired source.
  • 80 is not a sell signal in a strong uptrend — it can stay pinned.