Hi,
I have been toying with options strategies lately, and quickly discovered a flaw in the IV computation that strongly limit their applicability:
While the Dividend Yield and Risk Free Rate estimation classes exist:
private static IQLUnderlyingVolatilityEstimator _underlyingVolEstimator = new ConstantQLUnderlyingVolatilityEstimator();
private static IQLRiskFreeRateEstimator _riskFreeRateEstimator = new ConstantQLRiskFreeRateEstimator();
private static IQLDividendYieldEstimator _dividendYieldEstimator = new ConstantQLDividendYieldEstimator();
They really don't estimate much at all, returning 0 always, meaning any attempt at using of the cruital IV is made completely irrelevant.
In the following forum post, it is mentioned these factors can be edited by "duplicating the function and use custom estimators", which I assume would only be possible offline with personal data. Am I correct in this assumption? Is there a way to get this to work as is online?
If this is not possible, could someone help me brainstorm a solution?
I am currently considering using the quantlib to solve for IV instead (which I guess is what is being used under the hood for quantconnect too, but at least I will be able to set paramaters as needed), which according to the documentation demands the Risk Free Rate and Div Yield for the computation.
Discussions on Risk Free Rate are plentiful, and it seems that using the Alternative US Treasury Data cached by Quantconnect is the way to go.
For dividend yield, I am currently toying with two ideas:
As this is for index (SPX) options, either compute the dividend yield using a futures contract, or more simply, the put call parity of ATM options as explained here:
https://quant.stackexchange.com/questions/7841/implied-dividend-estimation
Looking forward to hearing ideas, suggestions and comments.
Best,
Chris
Derek Melchin
Hi Chris,
> I assume would only be possible offline with personal data. Am I correct in this assumption?
Yes, that's correct. It's not currently possible to modify the available option price models when running in QC Cloud. Refer to this related thread.
Best,
Derek Melchin
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Chris M
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!