View source: R/metrics-univariate.R
rsi | R Documentation |
Relative Strength Index (RSI) and Chande Momentum Oscillator (CMO)
rsi(x)
cmo(x)
x |
A numeric vector to calculate the RSI |
set.seed(123)
x <- round(cumsum(rnorm(24)) * 100, 0)
x <- abs(x)
x
plot(x, type = "l")
rsi(x)
# just test
rsi(rev(x))
rsi(x) + rsi(rev(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.