Discussion of article "Library for easy and quick development of MetaTrader programs (part XVII): Interactivity of library objects"
This is not the author's first article and looking through all of them I am surprised - what a huge (titanic) work has been done. What kind of motivation should it be to do all this?
Thank you Artem for your hard work and for sharing your findings with everyone.
What kind of motivation do you have to do all this?
$200 an article.
Thanks to the author, the work is great, "serialised"!
This is not the author's first article and looking through all of them I am surprised - what a huge (titanic) work has been done. What kind of motivation does it take to do all this?
Thank you Artem for your hard work and for sharing your findings with everyone.
Thank you for the feedback. Motivation is the name.
You are welcome ;) There will be many more interesting things to come.
$200 per article.
Is that all you could see?
Of course, the fact that MetaQuotes pays authors for their labour is a huge plus. It allows authors not to look around for income, but just to work. Don't you agree with that? Is it bad that labour is paid?
But the fact that you answered for me that motivation for me is only $200, you have not put me in the position of a hoarder, but have shown your own narrow world.
Thanks to the author, the work is great, "serialised"!
Lots more planned for publication. Should be interesting.
Lots more planned for publication. Should be interesting.
> 2Mb of source already. Writing is many times slower.
Optimisation on
0 error(s), 0 warning(s), 27694 msec elapsed 1 1
off
0 error(s), 0 warning(s), 448 msec elapsed 1 1
Apparently, lack of complex language constructs allows you to cope in half a second.
> 2Mb of sources already. I write many times slower.
I also wanted to estimate the weight of the programme, but the expediency is still doubtful.
if it is not difficult, tell me how much the call of any simple function of the discussed package of classes weighs (the minimum size of .ex5 is interesting), for example, to print the properties of the symbol, I suspect that the interrelationships between classes will pull a decent size of .ex5.
ZY: I think that even the developers did not plan such a ruthless use of MQL5 - to combine everything into one executable file, usually programs (not necessarily MT) perform a highly specialised task, maybe I still do not understand the general concept of the articles? - this is RAD (rapid application development) ? - i.e. we should still wait for the result ?
Everything that is not used is thrown out by the compiler.
It's all clear, we are talking about using the minimum functionality (print properties of a symbol) suggested in the series of articles.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article Library for easy and quick development of MetaTrader programs (part XVII): Interactivity of library objects has been published:
In this article, we are going to finish the development of the base object of all library objects, so that any library object based on it is able to interact with a user. For example, users will be able to set the maximum acceptable size of a spread for opening a position and a price level, upon reaching which an event from a symbol object is sent to the program with the spread or price level-based signal.
Compile and launch the EA in the tester:
As we can see, when a spread is increased or decreased beyond the specified control values, the appropriate entries are sent to the journal. Changes in the Bid price (its increase or decrease by more than 10 points) are also accompanied by journal entries. Finally, when the Bid price crosses the specified control level, an event is sent as well and the journal entry appears.
Thus, we have created the base object allowing us to track events of any of its descendant objects and send them to the control program where the program can track them and react according to its built-in logic, as well as set new tracked values and levels enabling flexible management of the program operation logic.Author: Artyom Trishkin