Hi Everyone, 

I am creating a price variable like this:

price = self.Securities[article.Symbol.Underlying].Price

How do I change this to reference the closing price of previous bars - say I want to create a variable for use later in my algo code of the closing price of 2 bars ago?

Thanks in advance

 

Author