Im just looking for a bit of advice to nudge me in the right direction, i have an indicator that shows order flow delta on the current bar im looking for a way to store the value the the previous bar once it closes or show the value on all the previous bars but doing so gives me the You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart. error

Comment