Stoch RSI
- Value
RSI 14 · 14 candles · 3 · 3
- %K
- %D
Where the RSI sits in its range, 0–100. Applies the stochastic to the RSI: 0 means the RSI is at the low of the last candles, 100 at their high. This makes the Stoch RSI react much faster than the RSI itself and reach the extremes more often. Above 80 counts as overbought, below 20 as oversold. %K is the smoothed line, %D its average. Example: “%K crosses above %D” while %K is below 20 shows an early turning point after a pullback.
What it looks like
Section titled “What it looks like”- Price (close of each candle)
- %K
- %D
- below 20 and above 80
- %K crosses above %D, below 20
Settings
Section titled “Settings”The settings appear on the right under “Properties” once you click the node on the board. Below each field you find the same explanation as here.
RSI candles
Section titled “RSI candles”How many candles the underlying RSI looks at. 14 is the usual value.
Stochastic candles
Section titled “Stochastic candles”How many candles the high and the low of the RSI are taken from. 14 is usual. Fewer candles make the line even faster and jumpier.
%K smoothing
Section titled “%K smoothing”How many candles %K is smoothed over, usually 3. With 1, %K often jumps back and forth between 0 and 100.
%D signal line
Section titled “%D signal line”How many candles %K is averaged over to form the %D signal line, usually 3. When %K crosses %D, the momentum turns.
Example
Section titled “Example”An early turning point: %K crosses above %D while %K is still below 20.
How to connect the nodes:
- Candle (Price) → Stoch RSI (Value)
- Stoch RSI (%K) → Compare A/B (A)
- Stoch RSI (%D) → Compare A/B (B)
- Stoch RSI (%K) → Compare (Value)
- Compare A/B (true/false) → AND (Signal 1)
- Compare (true/false) → AND (Signal 2)
- AND (all true) → Push (Trigger)
On the board it reads: RSI 14 · 14 candles · 3 · 3
Chain as JSON
To try it, copy it and paste it in the editor under “Import”. Importing creates a new chain.
{ "name": "Example: Stoch RSI", "version": 1, "nodes": [ { "id": "c1", "type": "core.candle", "position": { "x": 40, "y": 40 }, "settings": { "pair": "BTC/USDT", "timeframe": "1h" } }, { "id": "q1", "type": "core.stochrsi", "position": { "x": 260, "y": 40 }, "settings": {} }, { "id": "k1", "type": "core.compare-ab", "position": { "x": 480, "y": 40 }, "settings": { "operator": "crossesAbove" } }, { "id": "k2", "type": "core.compare", "position": { "x": 480, "y": 170 }, "settings": { "operator": "below", "value": 20 } }, { "id": "a1", "type": "core.and", "position": { "x": 700, "y": 40 }, "settings": {} }, { "id": "p1", "type": "core.push", "position": { "x": 920, "y": 40 }, "settings": {} } ], "edges": [ { "from": "c1.close", "to": "q1.in" }, { "from": "q1.k", "to": "k1.a" }, { "from": "q1.d", "to": "k1.b" }, { "from": "q1.k", "to": "k2.in" }, { "from": "k1.out", "to": "a1.in0" }, { "from": "k2.out", "to": "a1.in1" }, { "from": "a1.out", "to": "p1.in" } ]}Inputs and outputs
Section titled “Inputs and outputs”Only matching types connect: number series to number series (round pin), signal to signal (square), message to message (diamond).
| Direction | Pin | Type | Note |
|---|---|---|---|
| Input | Value | Number series | required |
| Output | %K | Number series | – |
| Output | %D | Number series | – |
Good to know
Section titled “Good to know”- In messages the values are called “Stoch RSI %K 14”, “Stoch RSI %D 14”.
- Warm-up with the default settings: 161 candles (this many extra candles are loaded by the replay before the value is reliable).
- Search also finds it under: stoch rsi, stochrsi, rsi, stochastic, overbought, oversold, momentum.
Technical details
Section titled “Technical details”Wilder’s RSI, then 100 · (RSI − lowest RSI) / (highest RSI − lowest RSI) over the stochastic candles, %K as its SMA, %D as the SMA of %K; the same formula as TradingView’s built-in Stoch RSI with ta.rsi and ta.stoch.
- Type in the chain:
core.stochrsi· Version 1.0.0 · Category keyind - Settings in the chain:
rsiLength(RSI candles),length(Stochastic candles),smooth(%K smoothing),signal(%D signal line) - Pins in the chain: Input
in· Outputk,d - Reference tests in the manifest: 2 (with fixed price data: 500 candles of 1h)
- How a node is built
Version 2026.10.21.23 · Changelog