There is a break between the Coarse and Fine Universe selectors and the portion where technical analysis is done on the self.tickers. I have initialized the self.tickers and set it to a empty [].
What am I doing wrong here?
QUANTCONNECT COMMUNITY
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.
Axist
I am seeing a lot of references to using OnSecuritiesUpdated, or being able to do it in OnData. The problem is I dont want my trades to be executed in those, I just want the self.tickers to properly populate with tickers and its associated symboldata thats getting described above. Is there a way to use OnSecuritiesUpdated just to populate the self.tickers as a result of the Coarse and Fine functions?
Varad Kabade
Hi Axist,
We don't need to use AddEquity on the securities selected by our coarse and fine selection in the above algorithm. The algorithm subscribes to them automatically. The SymbolData object for each ticker will not be warmed-up/ready to use. We recommend following changes:
We have implemented a demo algorithm for you to see the above-mentioned changed. Refer to the attached backtest.
Best,
Varad Kabade
Axist
Is there a way to include a static list of stocks along with what is populated by the Coarse Universe Selector? This route would seemingly remove that
Louis Szeto
Hi Axist
You may make a list in this way:
Now you can have a list self.all_symbols_combined getting what you need.
Best,
Louis Szeto
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.
Axist
Thank you very much for this! This was exactly what I was looking for. This line helped explain it for me.
Axist
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!