Simple question, just couldn't find the answer in the documentation/help. :)
Thanks,
Josh
QUANTCONNECT COMMUNITY
Simple question, just couldn't find the answer in the documentation/help. :)
Thanks,
Josh
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.
JayJayD
The schelude uses the algorithm TimeZone, IIRC the default time zone is EST.
You can define the lagorithm's time zone by using SetTimeZone in the Initialize method.
Alexandre Catarino
In fact, the default time zone is New York.
We can checkout the timezone for each symbol (or group of symbols) in the market hours database file.
JayJayD
Thanks Alexandre Catarino!
Josh Morris
Thanks! Can anyone attach a backtest with SetTimeZone set to CST (UTC-5)? I don't think im using it correctly.
I'm getting an error to go here for time zones:
Alexandre Catarino
We need to use NodaTime.DateTimeZones as a parameter.
SetTimeZone(TimeZones.Chicao);
Alternatively, we can use a string:
SetTimeZone("America/Chicago");
Josh Morris
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!