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

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
Strike again) This time I represent from the magazine, to understand such a caprice of the EA ? FXopen, five-digit, the initial stops corrected by doubling them manually. It went on strike. This is from the demotorg of our second variant, with the first code fixes of the first. And the third one is trading, though unprofitable, but it works, so far without problems.
2022.05.06 00:59:59.106 Trades '999003732': failed market buy 0.1 EURUSD sl: 1.05408 tp: 1.05608 [Unsupported filling mode]
2022.05.06 01:59:59.188 Trades '999003732': failed market buy 0.1 EURUSD sl: 1.05296 tp: 1.05496 [Unsupported filling mode]
2022.05.06 02:59:58.950 Trades '999003732': failed market buy 0.1 EURUSD sl: 1.05324 tp: 1.05524 [Unsupported filling mode]
2022.05.06 03:59:58.916 Trades '999003732': failed market buy 0.1 EURUSD sl: 1.05406 tp: 1.05606 [Unsupported filling mode]
2022.05.06 04:32:50.916 Network '999003732': scanning network for access points
2022.05.06 04:32:54.441 Network '999003732': scanning network finished
2022.05.06 05.06 05:59:58.676 Trades '999003732': failed market buy 0.1 EURUSD sl: 1.05314 tp: 1.05514 [Unsupported filling mode]
2022.05.06 06 06:59:58.975 Trades '999003732': failed market sell 0.1 EURUSD sl: 1.05357 tp: 1.05157 [Unsupported filling mode]
2022.05.06 07:59:58.716 Trades '999003732': failed market sell 0.1 EURUSD sl: 1.06285 tp: 1.04285 [Unsupported filling mode]
Hello, Rustam! If there are problems and doubts, please show us the codes you use in your work. We will try to understand these problems.
Regards, Vladimir.
By the way, did you add the code highlighted in yellow in the first two variants of the EA:
Hello, Rustam! If there are problems and doubts, please show us the codes you use in your work. We will try to understand these problems.
Regards, Vladimir.
By the way, did you add the code highlighted in yellow in the first two versions of the EA:
I did not add it, but show me where to insert it, I will insert it and test it, and then we will see. I am ready to submit here the whole EA, together with changes, to compress it somehow, or what ?
Tried to insert live responded wrong file types, I will try to compress and send.
I didn't add it, but show me where to put it, I'll put it in and test it, and then we'll see. I am ready to submit here the whole EA, together with changes, to compress it somehow, or what ?
Attach the file below, which is mq4 or mq5.
Attach the file below which is mq4 or mq5
*.mt5, replied wrong file type, I will compress it now. Neither Zip nor Rar, both responded, wrong file type. I will dig for a way to send, try it.
Yes, *.mt5, wrong file type replied, I'll compress it now.
mq5 extension
mq5 extension
Enlighten please, this apparently simple, that something I really rusted over the winter) How did you send this file ? And I will try to send from another editor, other brokers.
I didn't add it, but show me where to put it, I'll put it in and test it, and then we'll see.
There is a code on lines 211 and 257 of the EA:
OrderSend(mrequest,mresult);
Add to this code in each line:
bool check=
then every line 211 and 257 will have this code:
I don't know if this will help to eliminate the problems in the EA that prevent it from working properly, but I know for sure that after compiling the EA the 2 warnings will disappear.
Regards, Vladimir.
Please enlighten me on this apparent simplicity, I'm really rusty over the winter) How did you send this file ? And I'll try sending from another editor, other brokers.
Reply or New comment, at the bottom Attach file.
There is a code on lines 211 and 257 of the EA:
To this code in each line add:
then each line 211 and 257 will have this code:
I don't know if this will fix the problems in the EA that prevent it from working properly, but I do know that after compiling the EA, the 2 warnings will disappear.
Regards, Vladimir.
Dear Vladimir ! I got to your titanic work for dummies, I change my priorities, demotorg will be its own way, and the main thing is now your school for beginners, chew valuable squeezes of your experience, it is invaluable, there are no words. If I get to how to insert a trailing stop in this EA, I will probably do it as a priority, because as a result of forward optimisation, the EA creates long takeprofits, their safety net has become screaming. And in the course of training in your school I will probably learn to see mistakes, without which there are no working programmes, and correct them. THANK YOU.
Sincerely, Rustam.