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
This is mainly something for the compiler and hardware. Not something for average MQL coder.
The example in the second video with the double loops is very bad. Unfortunately we can't check the assembler code produce by MQL compiler, but here is the C++ result :
MQL coders don't have much to worry about "branches in your code".
Please explain us, MQL coders, how you "avoid branches in your code" ? And how it improves performance ?
Can I expect the default constructors of member objects to be called before the constructor body starts executing?
The following test shows that it works:
But can I expect this to work always (I didn't find anything in the documentation about this)?
Or is it better to explicitly call the default constructors for member objects in the initialization list?
That is, is what I highlighted redundant?
Is it necessary to check a pointer before deleting an object?
Here is a typical case of unsuccessful EA initialization
Is this code correct? Deleting a non-existent object does not cause runtime errors. Or is it better to do it like this:
Can I expect the default constructors of member objects to be called before the constructor body starts executing?
The following test shows that it works:
But can I expect this to work always (I didn't find anything in the documentation about this)?
Or is it better to explicitly call the default constructors for member objects in the initialization list?
That is, is what I highlighted redundant?