LEAN is the open
source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Liquid ETF Competition: $10,000 Prize Pool
Alpha Streams Long Only, ETF Universe Competition.
Learn more
Apparently, when the same option contract is accessed in different backtests, there is a mismatch in contract characteristics. In this particular example, GLD contract 111217P00165000 at 2011-09-21 15:35:00 shows zero and non-zero open interest.
Here is a backtest that seems to return a reasonable non-zero value of OI while following a chosel option contract intraday:
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.
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.
Pavel Paramonov, sorry for taking too long to answer. We have been looking into the issue to determine the cause. Since you were using two different filters, we had to check whether they were producing the same universe and how the differences would result on the bug you found. The bug has been pinned down and we will be working on it. I will keep you updated.
0
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.
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.
The Open Interest issue seems to be fixed, indeed.
Alexandre Catarino how about the Greeks? They still come out as zero. There was apparently an API change for EnableGreekApproximation. Would it be possible to update the github example here ? Thanks!
Greeks come out as zero, because the default volatility model needs two days of data to start to return non-zero volatilily. Please add the following line in Initialize:
SetWarmup(TimeSpan.FromDays(2)); // if StartDate is Monday, add more days
We are going to look into that example. If we add the warmup period, we need to include more data as well.
0
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.
Thank you Alexandre Catarino the Greeks come out fine after the warm-up period.
Still, since there were recent changes with `EnableGreekApproximation`, how could I, for example, turn off IV/Greeks calculations to speed up a backtest sorting through a wide-range option chain?
You should use the option chain provider to only add contracts you need
instead of a wider filter. This will make it 10-15x faster
0
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.
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.
Loading...
To attach images, drag and drop them into the textarea.
Please tag your post with applicable tags from below or click Publish to continue.
FAQ
A:
Please send bug reports to support@quantconnect.com
Please send bug reports to QuantConnect Support so our team can respond as quickly as
possible. Click Support Request below to submit your discussion as a bug report, or Publish
Discussion to continue posting as a discussion to the forums.
Please send bug reports to support@quantconnect.com