Hi Christopher,In the above algorithm, the symbols which you have in your universe do not get added to the self.Equities list. To do so, we can add them to our OnSecuritiesChanged event handler. Also, as we are using a dictionary to store SymbolData objects with Symbol as a key, we don't need to maintain a list. The indicators would not be updated because our Universe has the hourly resolution, and indicators have 15 minutes. We have made the following changes to the algorithm.
- 1. Changed the resolution of securities to Minute
- 2. We implemented a dispose method to remove consolidators for the securities removed by Universe Selection
- 3. Shifted the part where we create a SymbolData object to OnSecuritiesChanged event handler.
Note that in the following backtest, we did not review the Trading logic(OnData method). For any issue regarding that, please post it on the thread. Refer to the attached backtest.
Best,
Varad Kabade