Can double click event be handled in MQL5?
I tried with standard library in MQL4, but it always return single click event.
Thanks for this useful article and for the whole cookbook's serie.
Only I've noticed that ,in this artcle, all the string comment in the code are in Russian...:(
Thanks for this useful article and for the whole cookbook's serie.
Only I've noticed that ,in this artcle, all the string comment in the code are in Russian...:(
Sorry, it is fixed, now the code is with English comments.
Sir.
Please help !
I need to synchronize between 3 charts. use what event and how to set ?
now I use global object setted in one chart, and use one timer for one chart, and then use OnTimer() to check the value of globe object, but there are some delay. but there are some delay.
Is it possible use only one global timer and then response it on multi-charts with OnTimer() ?
- cn.bing.com
Sir.
Please help!
I need to synchronize between 3 charts. use what event and how to set ?
now I use global object setted in one chart, and use one timer for one chart, and then use OnTimer() to check the value of globe object, but there are some delay. but there are some delay.
Is it possible use only one global timer and then response it on multi-charts with OnTimer() ?
I know, use CharEvent.... not timer
- 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 MQL5 Cookbook: Handling Typical Chart Events has been published:
In my article I would like to describe the capabilities and hands-on practice of using OnChartEvent() with typical (standard) events predefined by MQL5 developers. The MQL5 articles and Code Base already contain examples of using this handler.
However, my purpose is to analyze this instrument in the context of Event-Oriented Programming (EOP). I believe that this handler can be successfully used for fully automatic and semi-automatic trading systems.
1. "ChartEvent" Event
So, first let's see what this type of event is.
According to the Documentation, the ChartEvent event may appear when working with a chart, in particular when:
Thus, this event brings interactivity and allows interacting with a chart. Moreover, such an interaction may be a result of manual trading, as well as of some algorithmic operations (automated trading).
MQL5 developers classify the ChartEvent event by types specified in the ENUM_CHART_EVENT enumeration.
It is important to note that this list has a range of user-defined events, that act as a hidden reserve to serve the programmer. MQL5 developers provide 65535 IDs for custom events.
To work with custom events, a special generator function EventChartCustom() is available for programmer's needs. However, this article does not consider custom events.
Author: Dennis Kirichenko