Description Usage Arguments Value Examples
Calculate a Price-Weighted Market Index From a List of Asset Prices
1 | calc_index(OHLC_list, weights = NULL)
|
OHLC_list |
a list containing OHLC prices |
weights |
numeric value indicating asset weights |
returns OHLC object with index price
1 2 | OHLC_list <- getSymbols(c("FB", "AAPL", "NFLX", "GOOG"))
calculate_index(OHLC_list)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.