
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
Hey guys,
I'm busting my head a couple of days on this issue,
And I couldn't find the answer wherever I looked,
So I would really appreciate any input you have.
Basically I try to replicate to functionality of mql4's iMAOnArray in mql5
I have tried using both MetaQuotes' built-in function of ExponentialMAOnBuffer() (As seen here- https://www.mql5.com/en/code/77),
And iMAOnArrayMQL4 function as seen here- https://www.mql5.com/en/articles/81
HOWEVER each of the above function seems to give different result, and non of them match the output of the built-in iMA function.
I've also tried 'flipping' the arrays, setting as series and not as series, and changing periods, but it doesn't seem to make any difference.
This is my function-
This is solely for testing the functionality of the above 2, so it is independent from the rest of my code.
It is called in the beginning of OnInit()
This is the output of the above function-
What am I missing guys?