Skip to contents

Relative Strength Index (RSI)

Usage

rsi(price, n, method = "e")

Arguments

price

A numeric vector of prices

n

The period for RSI calculation

method

The method for average calculation: 'e' for EMA (default) or 's' for SMA

Value

A numeric vector containing the RSI values