
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
It compiles.
Result.
When do you need a macro for objects?
After these changes.
It compiles.
Result.
oh well...
Exactly for this you would need to use the object macro...
This compiles without altering the library:
By altering that part, you will create unnessary copies of the object. - Please use the O-Version of the macro for objects of type struct, class or interface....
BTW, this also compiles fine without editing the library...
Got it...
I never use if() without brackets....
Change this line (Line Number 3351 in lib_debug.mqh
to this line:
that will fix the error...
I will post the update on shared storage now... and update the CodeBase
Yes, MQLplus is a shared public project!
By altering that part, you will create unnessary copies of the object. - Please use the O-Version of the macro for objects of type struct, class or interface....
Thank you all for the steady contributions, its not as easy to have an overview of all use cases, and by such complex integration, its easy to miss some edges....
Hope everything is beginning to work as expected slowly.... :-)
I have taken a look at this phenomenon, and I am sorry to disappoint you, but there is no way this can be influenced by us.
The MQL compiler has a few very strange behaviours concerning performance, and I have had the most ridicolous findings within source code. - I reported all of these things to Alexey from Metaquotes, and I never received a satisactory answer.
It might be, by adding some comment to the lib_debug.mqh, this effect could change and move to another function. - Yes, I know, htat sounds completley like abracadabra, but thats what it is. - If you would like to investigate on that issue more, I am very willing to share the proof with you, which I have also given to metaquotes to investigate....
You will find lots of inconsistencies when regarding performance measurements. - As said, and I am sure you can see as well ,the cod eis exactly the same for both functions, still one takes significant longer than the other. - Thats due to whatever the compiler does.
If you want, Ill share the project with you, you will get an even more detailed version of that problem. - Unsolved.