Discussion of article "Step-by-Step Guide to Writing an Expert Advisor in MQL5 for Beginners" - page 19

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
Hello everyone,
has anyone here found a solution?
LG Georg
Hello everyone,
Has anyone here found a solution?
LG Georg
For which problem exactly?
For which problem exactly?
When compiling I get this message twice:
return value of'OrderSend' should be checked my_first_ea.mq5 217 10
I use: the MetaEditor 5.00 build 2280
VG Georg
This is a hint, not a direct error.
How did you write the code for Order Send?
This is a hint, not a direct error.
How did you write the code for Order Send?
I downloaded the code 1 : 1 from the article, it was there "ready to go",
to the article: https: //www.mql5.com/de/articles/100
to the download: https://www.mql5.com/en/articles/download/100.zip
I downloaded the code 1 : 1 from the article, there it was "ready to go",
to the article: https: //www.mql5.com/de/articles/100
to the download: https://www.mql5.com/en/articles/download/100.zip
Such errors are obtained if the strict option is enabled:
To fully control all errors, it is recommended to use the strict compilation mode, which is specified with the following instruction:
This mode simplifies debugging considerably.
(from: https://www.mql5.com/en/articles/1391)
The note shows you that the code does not 'react' and informs you if and why the execution of OrderSend has failed. This can be fatal if, for example, you want to close an existing position with a new order, but this does not happen and nothing and nobody tells you this!
Have a look at the documentation to see what a better version of OrderSend could look like.
has no effect in MQL5 and is obsolete.
Incidentally, the code of article 100 is not exactly the yellow of the egg either.
The many comments are very annoying, the system library 'Include\Trade\Trade.mqh' is not used.
@georgOBE: if this is really important to you, I will rewrite this EA
has no effect in MQL5 and is obsolete.
Incidentally, the code of article 100 is not exactly the best of the best either.
The many comments are very annoying, the system library 'Include\Trade\Trade.mqh' is not used.
@georgOBE: if this is really important to you, I will rewrite this EA
I have programmed software for many years, unfortunately never in C++, the transition to MQL5 is not easy for me, I find the example very functional, I wanted to use it as an introduction, YES, I would be very grateful if you would do the work and make the FA executable
LG Georg
I have programmed software for many years, unfortunately never in C++, the transition to MQL5 is not easy for me, I find the example very functional, I wanted to use it as an introduction, YES, I would be very grateful if you do the work and make the FA executable
LG Georg
Which language(s) did you programme in?
As an old Pascal freak, I didn't manage to get started in C for a long time, nor did I want to, but that was probably due to the Microsoft compilers.
MQL5 is as simple as Turbo Pascal was back then. Delphi was better, of course.
Yes, I'll do that and then post it here.
LG Otto
Which language(s) did you programme in?
As an old Pascal freak, I didn't manage to get into C for a long time, and I didn't want to, but that was probably due to the Microsoft compilers.
MQL5 is as simple as Turbo Pascal was back then. Delphi was better, of course.
Yes, I'll do that and then post it here.
LG Otto
Hello Otto,
I took my first steps with TurboPascal, I was young and cool (or stupid?:-) ) and switched to assembler languages, that was all 25 years ago, privately I last dealt with PHP, Java, everything around WEB app languages, on the job for many years with MS-Fox-Pro and wrote database programs, back in mechanical engineering for over 10 years, so much for the CV :)
LG Georg