Hi, I have some minute data starting at "2017-10-01 00:00:00". I'm trying to examine how the data is fed to OnData() when I run the most basic algo - the base template in C#. When I put a breakpoint in OnData(Slice data) this is what I get the first time the breakpoint is hit (I'm using the most basic template algo - no warmups or anything complex).
data.Time == "2017-10-01 00:00:00"
data.Bars.Time == "2017-10-01 00:00:00"
data.Bars.Values.Time == "2017-10-01 04:00:00"
The data itself (data.Bars.Values.{Open, High, Low, Close}) is actually from "2017-10-01 04:00:00" (I checked the csv file). This confuses me - why is the data not from "2017-10-01 00:00:00", what do the different dates mean? Why is there a 4h gap?
Screenshot:
Alpha
I'm sorry, in fact, the data is from "2017-10-01 03:59:00", not "2017-10-01 04:00:00".
Alpha
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!