Friends,

I'm looking to put together a simple MA crossover that takes in multiple tickers. I have done this, however I haven't found a way to call the portfolio so that a it knows when to go long or liquidate. I have tried passing self.symbols into the ‘holdings’ variable, but get the error: 


Runtime Error: Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the 'list'>) method. Please checkout the API documentation.
at OnData
holdings = self.Portfolio[self.symbols].Quantity

Obviously I can't pass through self.symbols because it is a list. So what is then the better alterative? 

Cheers

Michael

Author