MQL5 seems to be having some issues with calling functions, despite correctly not only including the the file with which the function is situated in
but I have also correctly instanted the required variables, or in this case, no variable needs to be passed.
Having been using MQL4 for the past 10 years, I'm really beginning to think that Metaquotes did not think this through when they released MQL5. It constantly returns non-existent errors. No, I have not just copied and pasted from MQL4 to MQL5 but these sorts of error should just not exist, as everything that MQL5 needs is present.
What other expression is this expecting exactly? Does this thing need its eyes tested, as clearly it cannot see the blatantly obvious semi-colon at the end of the function call.
Even tried
Nope, that's not good enough for it either, all I get is:
Utterly ridiculous.
where is the include file located ?
does the compiler acknowledge its inclusion?
RunDiagnostics(void); <= don't put void there
-
Why did you post your coding question in the MT5 Trading Systems (the strategy category) instead of the MT5 EA section (non-indicator coding)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread. - TheFlyingPrussian #: The include file is located at the top of the EA, yes it does acknowledge its there, and yes I am now aware as to not to pass "void".
Wrong. If it is at the top of the EA code, then it's not an include file. An include file is a separate file.
Be precise and informative about your problemDo you really expect an answer? There are no mind readers here and our crystal balls are cracked, so we can't see your machine.
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
-
Why did you post your coding question in the MT5 Trading Systems (the strategy category) instead of the MT5 EA section (non-indicator coding)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. I have moved this thread. -
Wrong. If it is at the top of the EA code, then it's not an include file. An include file is a separate file.
Be precise and informative about your problemDo you really expect an answer? There are no mind readers here and our crystal balls are cracked, so we can't see your machine.
We can't see your broken code.
Always post all relevant code (using Code button) or attach the source file.
Don't tell me how to ask a question, William. I've been asking questions since the day I learned to talk.
As for the whole "you not being able to see my code" thing you think you have going on here. You can, it's right there. It's called a Minimal Reproducible Example and it oh so really helps in situations like these so other people can see what the bloody hell the requester is on about. Also, that big yellow box you see with the different font in it? That's the code, and it also means I used the "Code" button.
You seem to be the only who can't see my code because other people have answered it with no problems.
It's OK, William, we've all got start somewhere.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
MQL5 seems to be having some issues with calling functions, despite correctly not only including the the file with which the function is situated in
#include <RunDiagnostics.mqh>but I have also correctly instanted the required variables, or in this case, no variable needs to be passed.
Having been using MQL4 for the past 10 years, I'm really beginning to think that Metaquotes did not think this through when they released MQL5. It constantly returns non-existent errors. No, I have not just copied and pasted from MQL4 to MQL5 but these sorts of error should just not exist, as everything that MQL5 needs is present.
What other expression is this expecting exactly? Does this thing need its eyes tested, as clearly it cannot see the blatantly obvious semi-colon at the end of the function call.
Even tried
Nope, that's not good enough for it either, all I get is:
Utterly ridiculous.