Skip to contents

The last closes and the forecast ranges of the next days, which start from the last close, for plot_volatility(). Hover over the median line for the ranges of a day.

Usage

plot_forecast(analysis, context_days)

Arguments

analysis

The result of volatility_analysis(), with a forecast.

context_days

Closes before the forecast.

Value

A plotly object.

Examples

if (FALSE) { # \dontrun{
spx <- get_history("S&P 500", as.Date("1950-01-01"))
golemstockindices:::plot_forecast(volatility_analysis(spx), 30)
} # }