iMAOnArray () should give me the value of the moving average and save it in the buffer and makes it from left to right while ArraySetAsSeries () from right to left. The problem is that in mql4 does not seem to be a "native" operation mine.
But I saw around someone who succeeds in this intent. In my case the value obtained differs from what appears on the chart.
D