CBOE_option_selection | R Documentation |
This function performs the selection of out-of-the-money options as explained in the VIX whitepaper: "Select out-of-the-money put options with strike prices \mjseqn< K_0. Start with the put strike immediately lower than K0 and move to successively lower strike prices. Exclude any put option that has a bid price equal to zero (i.e., no bid). As shown below, once two puts with consecutive strike prices are found to have zero bid prices, no puts with lower strikes are considered for inclusion." The same principle applies to call options in ascending direction.
CBOE_option_selection(option_quotes, K_0)
option_quotes |
A
|
K_0 |
|
Returns a data.table
with three columns:
K (numeric
) - strike price in ascending order
c (numeric
) - call option price
p (numeric
) - put option price
which is filtered according to the CBOE rules
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.