Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 410
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
Can you tell me, does if check the conditions && if one of them is already false?
For example if (a && b && c && d && e), if a is false, does it check the following conditions?
Can you tell me, does if check the conditions && if one of them is already false?
For example if (a && b && c && d && e), if a is false, does it check the following conditions?
No
No
In MQL4 it depends on the strict directive.
In MQL4 it depends on the strict directive.
how does it depend? if on, it will?
In MQL4 it depends on the strict directive.
Yes, that's right. I forgot about it. I enable it all the time myself.
Another tip about optimization.
I have 2 two-dimensional array Array[10][5] in my indicator, and each array contains the structure of 3 variables, that is roughly speaking 3*5*10=150 variables per array, it is to ****, and because of this the terminal always fails to respond?
And because the size of the array is set dynamically in my program, maybe my memory is clogged? Do I need to free it programmatically or will it be automatic?
Just everything was fine, I was running the index at max speed several times and everything was fine, but suddenly with the same parameters it says "MT4 is not responding".
Another tip about optimization.
I have 2 two-dimensional arrays Array[10][5] in my indicator, and each array contains a structure with 3 variables, so roughly speaking 3*5*10=150 variables per array, is it up to 150, and because of this my terminal constantly fails to respond?
Without a bottle of code it's hard ...
Without a bottle of code it's hard ...
Well, is there a similar to Delete in mql4, as in C? Only not for objects, as they write in google, but for "pointers".
Maybe use ArrayFree()?
Maybe use ArrayFree()?
It's almost impossible to answer without code.