View source: R/technical_indicators.R
| calc_cci | R Documentation |
Calculates CCI using closing prices. CCI measures deviation from average price. Values above 100 indicate overbought, below -100 indicate oversold.
calc_cci(data, period = 20)
data |
Data frame with Date column and price columns |
period |
CCI period (default: 20) |
Data.table with CCI values
data("sample_prices_weekly")
cci <- calc_cci(sample_prices_weekly, period = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.