in old compiler everything is ok.but i have problem in new mql4.... :(
If you can't code, why are you compiling the program with the new mql4 ?
Compile it with the old compiler 509, and copy the .ex4 to the new folder. Otherwise you have to find a way to fix the code.
i haven't problem with comple bro.ok?
my problem is in catching position .... after a while metatrader say that : array out of range ...do u know this error in mql4 ?
Your problem is that you are hard of reading.
The old compiler allowed out of range references and returned zero. The new doesn't.
Asked and previously answered: "You can FIX the broken program or compile it under the old compiler."
hi friends .
i have a problem with new MQL4.... in this version my expert dont work properly... this Error appear : array is out of range...and 4051 error...i have a array in this EA and it worked very good in old MQL4... what can i do ????
If you have the source file, when you get the array out of range report in the experts tab, it should also include the line and column number, so you can pinpoint the error
hi friends .
i have a problem with new MQL4.... in this version my expert dont work properly... this Error appear : array is out of range...and 4051 error...i have a array in this EA and it worked very good in old MQL4... what can i do ????
find the lines where the array is used and where its index (position) is calculated
and check the values before to assign them
before each line calling the array you can add a:
if (index > max OR index < min) Alert("line XXX");
this is the way to spot the problem

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
hi friends .
i have a problem with new MQL4.... in this version my expert dont work properly... this Error appear : array is out of range...and 4051 error...i have a array in this EA and it worked very good in old MQL4... what can i do ????