This indicator does nothing but illustrate my problem:
So Buffer1 gets size 65084 and I can use that. However, Buffer2 gets size 0, so everything I do with it gives me an error (array out of range).
My solution now is to turn off the strict property, but I don't understand why Buffer2 gets size 0. Is there a way to fix this?
Build 670 here as well. I just restarted MetaTrader and indeed it works fine now...
Can't believe this, I must have tested at least 20 variations of this, and got the error every time!
Anyway, thanks for testing this. I guess this thread can be closed.
Regards,
Oliebol
Build 670 here as well. I just restarted MetaTrader and indeed it works fine now...
Can't believe this, I must have tested at least 20 variations of this, and got the error every time!
Anyway, thanks for testing this. I guess this thread can be closed.
Regards,
Oliebol
I still dont fully trust build 670
I have been writing two versions of my code, one using old mql4 and build 509 and one on the new compiler.
On the new compiler the EA I was working on compiles with zero errors but I had a problem with my error handling that I could not find. As it compiled with zero errors I was not looking for syntax errors
But when I compiled the same code on trusty old 509 ... 'iErrors' - comparison expression expected
if(iErrors(GetLastError()>1)) // should have been, if(iErrors(GetLastError())>1)
I still dont fully trust build 670
I have been writing two versions of my code, one using old mql4 and build 509 and one on the new compiler.
On the new compiler the EA I was working on compiles with zero errors but I had a problem with my error handling that I could not find. As it compiled with zero errors I was not looking for syntax errors
But when I compiled the same code on trusty old 509 ... 'iErrors' - comparison expression expected
How is it related to this topic ?
SDC: Because it is another compiler related problem. | The subject was 'array out of range' which is NOT a compiler related problem. |
Because it is another compiler related problem.
SDC: Because it is another compiler related problem. | The subject was 'array out of range' which is NOT a compiler related problem. |
I saw you are a little angry against Metaquotes, but please don't transform too much topics in a battle field. Agreed ?

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
This indicator does nothing but illustrate my problem:
So Buffer1 gets size 65084 and I can use that. However, Buffer2 gets size 0, so everything I do with it gives me an error (array out of range).
My solution now is to turn off the strict property, but I don't understand why Buffer2 gets size 0. Is there a way to fix this?