tracking previous bar indexes (e.g. when re-drawing trendlines) can be difficult due to bar re-numbering (... -3, -2, -1, 0).
this could be made easier with something like:
getAbsoluteBarIndex()
whose returned values were ... -3 -2 -1 0 +1 +2 +3 ...
0 would be the last bar on the chart at study loadtime. Each arriving bar would then be assigned a +ve incrementing value.
This would allow index values to be stored/referenced knowing they won't change.
this could be made easier with something like:
getAbsoluteBarIndex()
whose returned values were ... -3 -2 -1 0 +1 +2 +3 ...
0 would be the last bar on the chart at study loadtime. Each arriving bar would then be assigned a +ve incrementing value.
This would allow index values to be stored/referenced knowing they won't change.
Comment