Back

Consolidators using QCAlgorithmFramework and SetUniverseSelection

Apolgies if my search of the forums was poorly conducted, but I'm trying to understand a bit about consolidators.  I want to experiment with 5 min and 15 min bars.  I'm using the QCAlgorithmFramework approach, and I refresh my universe daily with a new set of symbols via SetUniverseSelection().

The example here 

https://www.quantconnect.com/docs/algorithm-reference/consolidating-data#Consolidating-Data-Consolidators--Indicators

 shows the consolidator getting created in the Initiatlize() method of the QCAlgorithm.  

How do I register a consolidator to refresh every day with a new set of symbols each time my universe refreshes?  Should I put the registration for the consolidator down in my universe class?  That seems like a poor design.

What's the proper, elegant, way of doing this?  Thanks!

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.


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

 
";