Discussion of article "Library for easy and quick development of MetaTrader programs (part I). Concept, data management and first results" - page 4
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
Thank you, it is clearly explained. But still there is a question - it is clear that it is faster in MT4, but if we are talking about 5 - is it faster to execute all methods separately than to call one CopyRates? If yes, then it makes sense to create a bar structure/class instead of MQLRates, which would write not all fields, but only the necessary ones in our case, by mask, for example.
Thank you, it is clearly explained. But still there is a question - it is clear that it is faster in MT4, but if we are talking about 5 - is it faster to execute all methods separately than to call one CopyRates? If yes, it makes sense to create your own bar structure/class instead of MQLRates, which would write not all fields, but only the necessary ones in our case, by mask, for example.
Try this.
Won't you update?
Не понял вопроса.
I do not understand the question.
As it is a library in development I will wait further articles before doing any global remark.
However I noticed 2 potential problematic situations in this first part :
Firstly.
Sometimes, you may want to get the number of decimal places in a symbol lot. Let's enter this function to our file of service functions:
Secondly.
Thanks for the comments, but this is just a test.
A test check in OnInit () is needed just for checking. And only there I get the history of orders in this way. In collections of orders, deals and positions - otherwise.
All this in subsequent articles.
-------------
Спасибо за комментарии, но это всего лишь тест.
Тестовая проверка в OnInit() нужна всего лишь именно для проверки. И только там историю ордеров получаю таким образом. В коллекциях ордеров, сделок и позиций - иначе.
Всё это в последующих статьях.Thanks for the comments, but this is just a test.
A test check in OnInit () is needed just for checking. And only there I get the history of orders in this way. In collections of orders, deals and positions - otherwise.
All this in subsequent articles.
1. Good.
2. It's not needed if you normalize your lot correctly, something like :
Using lot digits can only lead to problem.
3. log10 has the same problem, it's not universal. It was just to avoid the useless call to log(10).
4. Good.
I know it's only to check but even with test code publicly available, I think we have a responsibility to show and use good practices.
I will read other articles.
1. Good.
2. It's not needed if you normalize your lot correctly, something like :
Using lot digits can only lead to problem.
3. log10 has the same problem, it's not universal. It was just to avoid the useless call to log(10).
4. Good.
I know it's only to check but even with test code publicly available, I think we have a responsibility to show and use good practices.
I will read other articles.
Hello
You can consider me your entrant or student so to speak.
I decided to study your library, but it is difficult for me, although I know something in MQL, but I stumbled on the first step.
I came to the point Implementation of the method of comparing two orders with each other by a given property:
This is the code in the library, where to write it
after
or in the protected class of the abstract order.
Please understand that I am not young anymore, young people can grasp this on the fly.
And also I have opened a topic on the forum in Articles and technical library on automated trading (12560) I am a student there I will duplicate this topic I would like an answer from you in detail about the structure,
working step by step according to the article . You can be wrong and do not understand.
Hello
You can consider me your applicant or student so to speak.
I have decided to study your library, but it is difficult for me, although I know something in MQL, but I stumbled at the first step.
I reached the point Realisation of the method of comparing two orders with each other by a given property:
This is the code in the library, where to write it
after
or in the protected class of the abstract order
Please understand that I am not young anymore, but young people can grasp it on the fly.
And also I opened a topic on the forum in Articles and technical library on automated trading (12560) I am a student there I will duplicate this topic I would like a detailed answer from you about the structure,
working step by step according to the article . You can be wrong and do not understand.
There are two ways to create a class method - it is directly in the class body:
and outside the class body:
In the first case, the method is defined and implemented directly in the class body - it's convenient to do so for short methods that don't take up many lines. But if the method is large, it is more convenient to declare it in the class body, and put the implementation outside the class body - as in the second example.
It is clear that it is more convenient to write the method inside the class body. But the method you are asking about - it is more convenient to write it separately from the class body.
However, you can download all the files attached to the article - they already contain everything, they are ready for use - and use them to study what is described in the article.