Download MetaTrader 5

ArraySetAsSeries(low, true) or not

To add comments, please log in or register
samjesse
205
samjesse  

Hi

I am thinking, why bother and ArraySetAsSeries(low, true) where one can work with low[rates_total] as if it was low[0]?

Why did the MQL5 developers set the arrays index with in OnCalculate (like low and high) so that the index 0 is at the start of the chart and not the most current?

Is there a universal way "program wide" to set the index of all the arrays so that the latest index is 0? so that I do not have to remember to do ArraySetAsSeries ever time I need to?

thx

To add comments, please log in or register