Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Well, I'm studying the code according to your proposal of following the steps.
At the moment I'm finalising the study of Article 1. And I stopped right after the implementation of the protected class constructor.
This piece of code I sent you has an error after compilation. It's in the section that returns the flag for closing the position by TakeProfit.
Apparently the'Status' identifier is not declared.
Нашел "проблему" .... Была между клавиатурой и компьютером ... МЕНЯ!
После вставки всех методов переменная была определена ...
Так как я еще не дошел до конца кода, то искал ошибку ... Но в последовательности переменная определена и все решено.
Извините за неудобства.
Спасибо
Well, I'm studying the code according to your proposal to follow the steps.
At the moment I'm finalising the study of Article 1.And I stopped right after the implementation of the protected class constructor.
This piece of code I sent you has an error after compilation. It is in the section that returns the flag for closing the position by TakeProfit.
Apparently the'Status' identifier is not declared.
So, somewhere they did something wrong. Missed something.
Just download the files attached to the article to your terminal folder and compile the EA.
And only then disassemble everything step by step as described in the article.
So, somewhere they did something wrong. Missed something.
Just download the files attached to the article to your terminal folder and compile the EA.
And only then disassemble everything step by step as described in the article.
Thank you.
Implementing the protected class constructor:
Hello Artyom,
can we use:
m_long_prop[ORDER_PROP_TICKET] = (long)ticket; // ticket is the parameter passed in.
this . OrderTicket ();
If
returns the value of m_ticket set above, then it is possible.
But I wrote this so long ago that I can’t remember right away.
I looked. This method writes the ticket to the order property:
Decide for yourself whether you need to replace it with a simple assignment or not.