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
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!