stochrsi
Stochastic RSI %K
Reference/Oscillators/Function
stochrsi(source, rsiLength, stochLength)
RSI of source, then stochastic of that RSI. Default RSI 14, stochastic 14. Alias of the K line: stochrsik. Sister: stochrsid.
Parameters
| Name | Type | Description |
|---|---|---|
sourceoptional | series default close | Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9). |
length | int default 14 | RSI period. Default 14. |
stochLengthoptional | int default 14 | Stochastic lookback on the RSI. |
Return value
series
Short form: if the first argument is a number, Dovee uses close as the source.
Also accepted: stochrsik.
Example
oscillator k = stochrsi(14) d = stochrsid(14) plot k as "StochRSI K" plot d as "StochRSI D" when k crosses above d and k is below 20 then buy