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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!