This utlity produces 3x3 plot of volatility smiles for a date. It is used for the term structure paper.
ecop.term_plot_3x3(
term_data,
date_str,
trim_points = 151,
target_days = NULL,
add.first.day = TRUE,
show.put.bid = FALSE
)ecop.term_target_days_default
ecop.term_realized_days(target_days, days)
ecop.term_idx_range(realized_days, days)
term structure data for one date, produced from ecop.term_master_calculator
character in the form of YYYY-MM-DD
integer, specifying number of data points to present in the plots
list of ceiling days for the plot
logic, whether to add the first expiration date to target_days
.
Default is TRUE
.
logic, show bid smile for put option. Default is FALSE
.
list of days to expiration from market data
list of days realized for the plot
The 3x3 plot
An object of class numeric
of length 8.