Discussion of article "Library for easy and quick development of MetaTrader programs (part I). Concept, data management and first results" - page 7
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
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.