I am having an issue finding added securities in self.ActiveSecurities after they have been added to my list of securities through self.AddEquity. I am not adding securities “normally” through universe selection as I want to create my own “private” universe and remove and add securities when I please. Regardless of start date, the algorithm always finds every security in self.ActiveSecurities the first day, but some are missing the next days. 

The backtest debug prints the following:

Universe selection time: 2022-04-11 00:00:00
Check stocks time: 2022-04-11 09:25:00 0 of 6674 not in active securities
Resetting universe: 2022-04-11 21:00:00 
Universe selection time: 2022-04-12 00:00:00
Check stocks time: 2022-04-12 09:25:00 41 of 6658 not in active securities
Resetting universe: 2022-04-12 21:00:00 
Universe selection time: 2022-04-13 00:00:00
Check stocks time: 2022-04-13 09:25:00 41 of 6674 not in active securities
Resetting universe: 2022-04-13 21:00:00

I get that self.AddEquity is probably asynchronous, but I am adding them at midnight and not checking self.ActiveSecurities until 09:25, so they should have time to be added? May not be a good solution anyway, but I need to check the newest price for all my securities in self.selectedSymbols at 09:25..is there a way to create a security by symbol and fetch the current price? Or maybe there is another better way?  

Author