Back

Removing Tickers From Manual Universe

If you have a manual universe set off a list of symbols, if you remove an element from that list does it automatically get removed from the universe or somehow update off of that list?  Or does it take in that list once and that is the static universe you have no matter what happens to that list afterward.  Long story short, I'm looking to remove elements from my manual universe after I've defined it haha.  Let me know if I'm doing things right by just removing the element from the symobols list passed into the manual universe.

Update Backtest







Manual universe selection is called at the beginning of the algorithm, so removing an element from the list that was a parameter will not update the universe. That being said, what is the reason for removing a symbol from the universe? Is it for computational efficiency? If this is a critical part of the algorithm, then manual universe selection might not be the best universe selection model.

In order to remove a security from the universe, the method RemoveSecurity(Symbol) from QCAlgorithm can be called.

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