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 Other classes in DoEasy library (Part 71): Chart object collection events has been published:
In this article, I will create the functionality for tracking some chart object events — adding/removing symbol charts and chart subwindows, as well as adding/removing/changing indicators in chart windows.
Compile the EA and launch it on a symbol chart.
Open a new symbol chart — get the following journal message from the OnDoEasyEvent() handler:
OnDoEasyEvent: Open chart: AUDNZD H4, ID 131733844391938634
Add a new window of any oscillator to the open chart — get the following journal message from the OnDoEasyEvent() handler:
Add any indicator drawn in the main window to the open chart — get the following journal message from the OnDoEasyEvent() handler:
Change the oscillator parameters — get the following journal message from the OnDoEasyEvent() handler:
Change the indicator parameters in the main window — get the following journal message from the OnDoEasyEvent() handler:
Remove the oscillator window — get the following two journal messages from the OnDoEasyEvent() handler:
Remove the indicator from the main window — get the following journal message from the OnDoEasyEvent() handler:
Close the previously opened chart window — get the following journal message from the OnDoEasyEvent() handler:
OnDoEasyEvent: Closed chart: AUDNZD H4, ID 131733844391938634
As we can see, all events are handled correctly and sent to the control program.
Author: Artyom Trishkin