powered by
Returns the Relative Strength Index with adjustable periods
RSI(df, periods, current = FALSE, pricechange = NULL, hideprints = TRUE)
Returns a vector of RSI calculations in dataframe format. If current = TRUE, returns the most recent RSI.
Dataframe with price data
Calculation Period
If one wants to input the latest price point before data updates, RSI uses the percentage return at the end of the market hours
Input in percentage
If TRUE, hides printouts from the current message
RSI(SPY15, 14) RSI(tail(SPYdaily,200), 14, current = TRUE, pricechange = 1.3)
Run the code above in your browser using DataLab