Discussion of article "Graphics in DoEasy library (Part 90): Standard graphical object events. Basic functionality"
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
New article Graphics in DoEasy library (Part 90): Standard graphical object events. Basic functionality has been published:
In this article, I will implement the basic functionality for tracking standard graphical object events. I will start from a double click event on a graphical object.
Compile the EA and launch it on the chart after opening another chart and placing both charts horizontally. Clicking on a chart with an EA creates vertical lines — one line per each chart. Now change their properties and see how the messages about obtained events are displayed in the journal:
As we can see, messages about object events are displayed in the journal. When creating objects programmatically, the object creation event is not created since a programmer already knows at what point in time a graphical object is created. Therefore, there is no need to duplicate the fact by sending the event.
Of course, a simple display of generalized messages in the journal is insufficient for handling events. But these are only the messages about base events whose parameters contain all data about an event defined later.
Author: Artyom Trishkin