View source: R/historical_rolling_volatility.R
hist.vol.interact | R Documentation |
Create an interacrtive graph of the historical daily volatility for the select stocks based on log-returns.
hist.vol.interact(ticker, from, to)
ticker |
A character vector storing the tickers of the stocks of which you want the correlation. Note that since data are downloaded from Yahoo finance, the ticker should be the same as the ones reported on Yahoo finance. See examples. |
from |
A single character variable storing the starting date from which we want to download the data. The format should be "yyyy-mm-dd" |
to |
A single character variable storing the ending date up to the day in which we want to download the stock data. The format should be "yyyy-mm-dd" |
## Not run:
hist.vol.interact(c("AAPL","TSLA","AMZN"), from= "2020-01-01", to= "2022-01-01")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.