Hi,
I believe I'm having trouble getting the fill forward flag to work properly for options data, or something is wrong.
I am using in Initialize:
UniverseSettings.FillForward = false;
I am accessing the last trade price on Minute data, getting it from a Security object filtered out of the Slice to the particular options contract.
for example: LongPutOption.Price
I am reasonably certain this data is filling forward, as I was getting a negative price for some long 4-week calendar -
in other words, 4 weeks less time until expiry, same strike, was "trading" for a higher price.
Underlying does not have a dividend.
With some debug messaging, I see the "long" price remaining constant, with the "short" price going up.
Has anyone experienced something similar?
Jing Wu
Hi Duncan, "UniverseSettings.FillForward = false;" is used to control the data fill forward in the equity universe selection. For options, you can set the FillForward when adding the option, for example AddOption("SPY", Resolution.Minute, None, False).
You can find the arguments in AddOption() method in the LEAN class documentation
https://www.quantconnect.com/lean/documentation/topic123.html
Duncan Keen
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!