Skip to content

charton API


charton API / @chart-on/ta / stochRsi

Function: stochRsi() ​

stochRsi(values, rsiLength, stochLength, kSmooth, dLength, out?, state?): Stoch

Defined in: momentum.ts:219

Stochastic RSI: the stoch formula applied to an rsi of rsiLength. %K is where the RSI sits in its stochLength-bar range, 0 to 100, smoothed by an sma of kSmooth; %D is an sma of %K over dLength. A zero range reads 50. Lookback rsiLength + stochLength + kSmooth + dLength - 3.

Pass state to keep the RSI for stochRsiAt.

Parameters ​

values ​

Series

rsiLength ​

number

stochLength ​

number

kSmooth ​

number

dLength ​

number

out? ​

Stoch

state? ​

StochRsiState

Returns ​

Stoch