powered by
Calculates RSI for each column. RSI ranges from 0-100. Above 70 indicates overbought, below 30 indicates oversold.
calc_rsi(data, period = 14)
Data.table with RSI values (0-100 range)
Data frame with Date column and price columns
RSI period (default: 14)
data("sample_prices_weekly") rsi <- calc_rsi(sample_prices_weekly, period = 14) overbought <- filter_above(rsi, 70)
Run the code above in your browser using DataLab