Hi, when we limit the number of bars in the chart, the Buffer stays static, with a new bar the value of array  not turn array and is overwritten.
Is there a simple way to inhibit this, or is necessary to transpose the array using ArrayCopy or copy one value by one value?
The easiest way to make this work is with reverse indexing so instead of the entire array shifting when a new bar comes in you simple add one element to the end. If you're in MQL4 this means you need to use
on all the arrays you'll be working with.