Hi all;
Is there an event handler that fires after the warmup is complete, but before any live event handlers are called?
If not, any ideas on how to watch for that to occur, to then call a method at that point? There are numerous On* event handlers called in which I can check for IsWarmingUp, but I need to get this in the very first of all the On* event handlers.
thanks - dave
Fred Painchaud
Hi David,
Yes, “OnWarmupFinished(self)". You need to define it in your algo (the class that inherits from QCAlgorithm).
Not sure exactly WHEN it is called, well after warmup is finished, yes, but I have not track all calls to it in the code. So don't know if it is called before or after “any live event handlers”.
From a software architecture perspective, I would bet that event is fired RIGHT after warmup and thus BEFORE anything else.
The doc says “Called when the algorithm has completed initialization and warm up.” It sounds before going into “backtest” or “live” mode. I would bet a fairly large amount of cash on that 😊.
Fred
David Thielen
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!