Description Usage Arguments Details Value Note
The function calculates returns to trading hedged GLT positions, given a grid of GLT price data and a time series of high frequency stock futures data. The hedging frequency is determined by the frequency of stock futures data. If there is missing data in the time series of GLT values, these days are ommitted from hedging.
1 2 3 | hedgedReturns(igft.list, igft.days, hf.dframe, weekly.grid,
trade.end.grid = NULL, u.seed, fixed.maturities = c(1/12, 6/12),
trade.int = 5/252)
|
igft.list |
A list of buy and sell values of the igft (the difference comes from the maturity decreasing over the trading interval + vol. changes) as output by |
igft.days |
A vector containing the days corresponding to igft.list |
hf.dframe |
A data frame containing high frequency futures returns. Has 3 columns, day, time and F (which is the futures price) |
weekly.grid |
The approximately weekly grid of days where we empirically observe option prices (or their transformed values) |
trade.end.grid |
(optional) A grid of days on which trades starting at weekly.grid are supposed to end. Use if weekly.grid has some 'gaps'. |
fixed.maturities |
The maturities of the option portfolios we are mimicking |
trade.int |
The trading interval (annualized in business year) over which we hold the option position. |
This function calculates the hedged option trading returns, using high frequency option data and approximately daily calculated igft.
Returns a data frame containing the starting day of each option position (assumed to be bought at the end of the day) and the corresponding weekly hedged return.
TODO: Adapt the function so that old calls work as intended, but new calls use daily data for calculating hedged returns; instead of dropping missing-data days from hedging, do wider interpolation; Ensure that with multiple maturities, multiple time series of futures prices are used.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.