Hello all. I'm new to QuantConnect and have been working on a simple mean reversion algorithm. It works well, until I add the line:
self.SetBrokerageModel(BrokerageName.InteractiveBrokersBrokerage, AccountType.Cash)
After this, the status of most of my trades become invalid. There is no error message or explanation for it. Does anyone know why this would be happenning? Thank you!