Description Usage Arguments Details Value Examples
View source: R/technical_indicators.R
This stochastic RSI matches IB's stoch RSI. Needs a minimum of (2 * n) 28 days of price action before the numbers start working, but this is about 2.5 times faster than using (RSI(adm$close, 14) - runMin(RSI(adm$close, 14))) / (runMax(RSI(adm$close, 14)) - runMin(RSI(adm$close, 14))) and gives only 4 days extra info.
1 | stochRSI(x, n = 14L)
|
x |
Price series that is coercible to xts or matrix |
n |
Number of periods. Default is 14. |
It is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which can be plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.
The stochRSI function will return a timeseries with values ranging between 0 and 1
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.