This would indicate that your variable is not a series and instead a double. A double is a single number that has a decimal. A series is a collection like an array that holds an integer value for each bar on the chart.
With a double this would not have a value for each bar on the chart.
Instead you are going to need custom logic to store the value from 5 bars ago to that or a different double variable and then not change the value for 5 bars so that this can be used 5 bars later.
Comment