How to create an array?

Guin  

Hello friends!


Well, im trying to create a moving average of an array.

The array I want is fed everytime the price goes up or down a certain number of ticks. In other words, it is possible the array will be updated many times in the same candle.

Then, I want to make an moving average of the last X values of this array.

Is it possible to do it in MT5?

I really appreciate any help!

Thanks very much in advance!

Fernando Carreiro  
Guin: Well, im trying to create a moving average of an array. The array I want is fed everytime the price goes up or down a certain number of ticks. In other words, it is possible the array will be updated many times in the same candle. Then, I want to make an moving average of the last X values of this array. Is it possible to do it in MT5? I really appreciate any help! Thanks very much in advance!
Yes, you can use the functions in the "Include/MovingAverages.mqh" file provided with MetaTrader.
Reason: