Please edit your post and
use the code button (Alt+S) when pasting code
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
Keith Watford:
Noted and thank you.
Please edit your post and
use the code button (Alt+S) when pasting code
I know that it is not obvious, but topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.
You can't get iMAonArray unless the array that you are using it on has at least enough elements filled.
ie iMAonArray [3] will only have iMA[3] to work with as iMA[4] and iMA[5] are both zero.
You must fill the necessary elements of the iMA array first and THEN use iMAonArray.
ie. 2 for loops.
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
I'm new to mql4 coding so please assist me in understanding why the results from the iMA() are correct
yet the iMAOnArray() is giving me wrong results compared to the ones i have on the charts.
Please review my code and assist me in getting the results as expected.
Code attached.