This is driving me crazy...... I have a simple calculation running which plots a line based on the max and min value of the last 5 bars.
The calculation looks like this:
Price[0] = ((MAX(High, 5)[0] + MIN(Low, 5[0])) / 2.
This plots just fine and is as I would expect.
But, I want to add another plot which offsets these values by 1 bar. I.e I want the current value of my new plot to be assigned the last previous value of the existing plot.
I have tried this:
Price2[0] = Price[1] but this doesn't work because I assume at the start of time there is no value for Price[1].
How can I get around this? I have tried all sorts to no avail. It's such a simple thing yet I can't work it out.
Thanks.

Comment