Discussion of article "Graphics in DoEasy library (Part 93): Preparing functionality for creating composite graphical objects"
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 93): Preparing functionality for creating composite graphical objects has been published:
In this article, I will start developing the functionality for creating composite graphical objects. The library will support creating composite graphical objects allowing those objects have any hierarchy of connections. I will prepare all the necessary classes for subsequent implementation of such objects.
Compile the EA, launch it on the chart and click somewhere away from the right edge of the chart.
The result is a trend line accompanied by price label objects along its edges:
The journal displays the properties of a trend line and the number of trend line pivot points for calculating X and Y coordinates of both price labels. Since a single pivot point per each label has been specified for them, this is displayed in the journal.
Currently, we simply construct separate graphical objects and set the properties indicating that the objects belong to the same extended standard graphical object. If we move a trend line, the price labels do not follow it. However, this was not my current objective anyway. My aim was to prepare the necessary functionality for creating full-fledged extended graphical objects.
Author: Artyom Trishkin