hist.vol.interact: Interactive historical daily volatility

View source: R/historical_rolling_volatility.R

hist.vol.interactR Documentation

Interactive historical daily volatility

Description

Create an interacrtive graph of the historical daily volatility for the select stocks based on log-returns.

Usage

hist.vol.interact(ticker, from, to)

Arguments

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"

Examples

## Not run: 
hist.vol.interact(c("AAPL","TSLA","AMZN"), from= "2020-01-01", to= "2022-01-01")

## End(Not run)


gabrielebonvicini/plotFin documentation built on Oct. 11, 2023, 1:36 a.m.