View source: R/technical_indicators.R
| calc_rsi | R Documentation |
Calculates RSI for each column. RSI ranges from 0-100. Above 70 indicates overbought, below 30 indicates oversold.
calc_rsi(data, period = 14)
data |
Data frame with Date column and price columns |
period |
RSI period (default: 14) |
Data.table with RSI values (0-100 range)
data("sample_prices_weekly")
rsi <- calc_rsi(sample_prices_weekly, period = 14)
overbought <- filter_above(rsi, 70)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.