Back

Bug or intended? Universe selection doesn't occur until one trading day has passed.

My understanding is that universe selection occurs sometime after midnight on trading days. If that's the case then I should be able to start an algorithm on Sunday and it should perform universe selection monday after midnight and begin making trades on Monday at market open. However, this is not the case. An algorithm started on sunday will not trade until Tuesday at market open.

Has anyone else found this to be the case?

Update Backtest








The data is passed in after the applicable day; so in your example above the Friday universe data is passed in Saturday 4-6am. Sunday there will be no universe events as no markets are open Saturday.

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.


I think I understand but it still seems like you'd get the same end result if instead of updating universes after a trading day, update them before the next trading day begins. There is no trading on saturday or sunday (for most markets) so there's no reason to update the universe after Friday market close as opposed to before Monday open as the friday data should be availible all the same.

Also, I don't know what other people's schedules are but since I work full time during the week I have more free time to work on my algorithms on the weekend. If I release an update to my algorithms it is usually on Sunday night after a weekend of coding

1

That would be nice to reduce down time (although it might require storing raw universe if it's currently not stored and piped in directly?)

Similarly, in order to reduce down time, it would be nice having it cached so first universe selection could take place immediately on start up (if user specified or perhaps it's possible to do this automatically if it's past midnight and trading has been closed). Would lessen amount of frustration when you deploy the algo for live testing and it immediately crashes during universe selecton or during trading day due to Unforeseen Circumstances (TM).

0

Thanks guys. Cool idea @Petter; absolutely understand the use case @Lukel. It is reasonably easy to do; I'll add to our todo and see if we can do it in the next few weeks as an opt-in.

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 pace of improvements never fails to amaze me!

0

Update Backtest





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.


Loading...

This discussion is closed