Hi, I am using the Visual Studio IDE to build some local testing.

I am using Interactive Brokers for paper trading. I am facing the following problem:

As far as I understand, first the Algorithm is initialized, then the engine will connect to the broker. however, in the algorithm initialziation, the 'AddEquity` method tries to load historical data from the broker connection. This will throw NotConnected errors, because the SetupHandler will only connect after the Algorithm has been initialized. Therefore, I will end up in the 60second timeout.

Am i missing something conceptual or doing something wrong? Thank you!

Author