Stochastic Oscillator — what it is and how to use it in trading
Definition
The Stochastic Oscillator shows where the current close sits relative to its high-low range over the last period candles, on a 0-100 scale. It consists of two lines: fast %K and slow (smoothed) %D.
How it works in the builder
The stoch_k/stoch_d operands take period and smooth parameters (default 14 and 3). %D is an additionally smoothed version of %K — together they form the classic stochastic.
What it looks like on the chart
Drawn as a separate panel with levels at 20 and 80 — below 20 is usually read as oversold, above 80 as overbought.
Typical use
A %K/%D crossover works similarly to a MACD/signal crossover, but bounded within 0-100. Typical condition: stoch_k(14, 3) crossed_above stoch_d(14, 3) inside the oversold zone.
Common pitfalls
The Stochastic is one of the more noise-sensitive oscillators — in a volatile market the lines cross often, producing many false signals. Like RSI, in a strong trend it can stay in the "overbought"/"oversold" zone for a long time without reversing.
This block is available in the strategy builder
137 no-code blocks — build an entry condition with this term and test it on history
Historical results do not guarantee future ones. The service is an informational and analytical tool, not an individual investment recommendation; trades are not executed.
Stoch %K
Block variants
Stoch %D