rsi: Relative Strength Index (RSI) and Chande Momentum Oscillator...

View source: R/metrics-univariate.R

rsiR Documentation

Relative Strength Index (RSI) and Chande Momentum Oscillator (CMO)

Description

Relative Strength Index (RSI) and Chande Momentum Oscillator (CMO)

Usage

rsi(x)

cmo(x)

Arguments

x

A numeric vector to calculate the RSI

Examples


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))

jbkunst/risk3r documentation built on March 19, 2024, 10:49 p.m.