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
I think these codes may be a clue which the "union" will generate stack overflow:
I think these codes may be a clue which the "union" will generate stack overflow:
MT4 (backtest) report an error and doesn't crash. It does the same under build 1090.
2018.12.16 12:56:06.961 2016.04.13 22:00:00 Testing pass stopped due to a critical error in the EA
2018.12.16 12:56:06.961 2016.04.13 22:00:00 Stack overflow in 'D:\MT4\Alpari\MQL4\Experts\Forum\294630.ex4'
MT4 (backtest) report an error and doesn't crash. It does the same under build 1090.
2018.12.16 12:56:06.961 2016.04.13 22:00:00 Testing pass stopped due to a critical error in the EA
2018.12.16 12:56:06.961 2016.04.13 22:00:00 Stack overflow in 'D:\MT4\Alpari\MQL4\Experts\Forum\294630.ex4'
Thanks for your reply, the similar thing, compiler complain some weird error:
'operator=' - expression of 'void' type is illegal MACD Sample.mq4 66 26
'operator=' - object required MACD Sample.mq4 66 17
And please, can I download the build 1090 and not got auto-updated?
It works for me and I still have some important codes to write.
I really need it caused my project is really reaching the deadline.
If you want it to be fixed, you probably have to provide a testcase code to reproduce the problem. (maybe just remove the trading logic or something).
I am pretty sure the MT4 crashed in strategy tester for 3 months data issue must be related with "operator overload" of "union".
These are CRASHED codes:
BUT, when I instead those operators with NORMAL functions and using the SAME BODY CODES, then MT4 gets stable and no crash any more:
Seems like those "operator" functions have some memory leak or something else.
I am pretty sure the MT4 crashed in strategy tester for 3 months data issue must be related with "operator overload" of "union".
These are CRASHED codes:
BUT, when I instead those operators with NORMAL functions and using the SAME BODY CODES, then MT4 gets stable and no crash any more:
Seems like those "operator" functions have some memory leak or something else.
If you don't provide code that I can compile and test, I can't help.
If you don't want auto-update you have to block the updates yourself.
If you don't provide code that I can compile and test, I can't help.
If you don't want auto-update you have to block the updates yourself.
If you insisted, these codes may not reproduce the issue, because the times to do calculations and calls may not be so few:
Such situation must be caused by the MQL compiler or inner executing functions where to do "operator" of the "union",
but.... maybe just fine to keep this bug, I had found other way to do it, and it works. i.e. I will avoid to do any "operator"
codes in the future.
This part seems never be done and always having something wrong with syntax or compiler since the "union" was supported.
Thanks anyway.
And please, can I download the build 1090 and not got auto-updated?
If you want to block automatic updates, just find folder "webinstall" and change security, adding "deny" permission to user "everyone".
This will block the folder to everyone, including MT4, which will be unable to auto-update.
Folder is located in roaming user profile AppData\Roaming\MetaQuotes\WebInstall
I still have build 1090 archive just in case.
Bug report.
There is a way to compare doubles that for a long time has been recommended by senior forum members.
See https://www.mql5.com/en/forum/136997/page7
This piece of code contains "return (-1);", and with this version it does no longer go through the compiler since the function is supposed to return a boolean.
I have this function in hundreds of EAs and indicators, spread to hundreds of clients. And I am sure I am not the only one since it has repeatedly been recommended on the forums. With this version, each and everyone of those EAs and indicators will no longer compile. Please fix change this back in a new build, otherwise there will be thousands and thousands of EAs out there that do no longer work.
If you want to block automatic updates, just find folder "webinstall" and change security, adding "deny" permission to user "everyone".
This will block the folder to everyone, including MT4, which will be unable to auto-update.
Folder is located in roaming user profile AppData\Roaming\MetaQuotes\WebInstall
I still have build 1090 archive just in case.
Hello, Philippe, thanks for kindly sharing information. :)
I am cool with the 1160 build now, just NEVER USE OPERATOR OVERLOAD / OVERLAP FUNCTIONS, then things go well.
Bug report.
There is a way to compare doubles that for a long time has been recommended by senior forum members.
See https://www.mql5.com/en/forum/136997/page7
This piece of code contains "return (-1);", and with this version it does no longer go through the compiler since the function is supposed to return a boolean.
I have this function in hundreds of EAs and indicators, spread to hundreds of clients. And I am sure I am not the only one since it has repeatedly been recommended on the forums. With this version, each and everyone of those EAs and indicators will no longer compile. Please fix change this back in a new build, otherwise there will be thousands and thousands of EAs out there that do no longer work.
Hello, Mr. MetaTrader!
Why did you spread a boolean function that returns -1 to hundreds of clients?