Hi Eugene. I recently started looking into the Synthetic Option feature on WL.
GoalI want to backtest trading options based on intraday strategy buy/sell signals on the underlying. I want to purchase a specified number of call or put option contracts that are minimally in-the-money, with a minimum number of days left to expiration.
ReferencesBefore creating this post I researched and reviewed the following:
https://www.wealth-lab.com/Forum/Posts/WL-6-9-Synthetic-Options-Contract-Reference-38029https://www.wealth-lab.com/Forum/Posts/Any-way-to-pull-up-Options-data-for-backtesting-38049https://www.wealth-lab.com/Forum/Posts/Options-Backtesting-Historical-Options-Data-32187http://www2.wealth-lab.com/WL5WIKI/kbFAQsGeneral.ashxI also reviewed the
QuickRef and the
WS Programming Guide and ran sample programs as Cone and you suggested.
Questions1. Is my backtest goal achievable in WL? Do you have suggestions about how I should tackle this?
2. Is contract size set the same way as a position sizing (Raw or Portfolio + PosSIzer options)? 1 share = 1 contract?
3. Even though you are using B-S to price the option, I presume you cannot calculate the implied volatility (IV) because you don't know what the actual option pricing was at the backtest date? Or do you calculate a likely market price for the option based on the actual IV for the underlying on that date? (The latter would likely only be available for a limited number of global indices that the CBOE publishes an index for.)
4. If you are not using IV in B-S, are you using Historical Volatility (HV) and what timeframe?
5. From the code examples it looks like the second overload of CreateSyntheticOption() only supports monthly (3rd week) options. Is that correct?
6. Now that weekly (and soon daily) options are available, will the first overload of CreateSyntheticOption() support these by specifying expiryDate? (I can't find any code examples that use the first overload.)
7. I didn't understand your answer to jschneir
https://www.wealth-lab.com/Forum/Posts/WL-6-9-Synthetic-Options-Contract-Reference-38029 #10-2 regarding daysToPlotBeforeCreation. What is this value used to do?