Analyses the price history of the index selected in the
Timeseries tab with volatility_analysis(), with the days of the
volatility window and of the recent move chosen above the cards, and
shows it in words and as a chart. The CSV file, named like
s-p-500-volatility-2026-11-06.csv, holds volatility_csv(): a row
per day, the days of the forecast included.
Arguments
- id
Character. Module namespace id, must match the id used in
mod_volatility_ui().- history
Reactive returning the price history of the selected index, from
mod_timeseries_server().- dark_mode
Reactive returning
"light"or"dark", the mode of the app.
Examples
if (FALSE) { # \dontrun{
# inside app_server():
function(input, output, session) {
dark_mode <- reactive(input$dark_mode)
history <- mod_timeseries_server("timeseries", indices, dark_mode)
mod_volatility_server("volatility", history, dark_mode)
}
} # }