I tried to use just the series but couldn't make it work. When I try to use something like...

PrevClosePrice = ClosePrice(1)

it always gives me errors.

Could you show me how I should have done it? Thanks.