Hi all,

 

this is the Equity Holdings class documentation

https://www.quantconnect.com/lean/documentation/topic27391.html

But when I use it in code to find open price of an investment it gives error.

Code that uses it, this used in onData method -

self.Portfolio[symbol].Price > self.Portfolio[symbol].Holdings.AveragePrice:

I already have a check before this line to make sure there is an investment - 

if self.Portfolio[symbol].Invested:

Any help would be really appreciated.

 

Thanks,

Ray