Discussing the article: "From Basic to Intermediate: Object Events (II)"

 

Check out the new article: From Basic to Intermediate: Object Events (II).

In this article, we will look at how the last three types of events generated by an object work. Understanding this will be very interesting, because in the end we will do something that may seem crazy to many people, but it is entirely possible and produces a very surprising result.

In the previous article From Basic to Intermediate: Object Events (I) the first basic part was explained and demonstrated, focusing mainly on events that occur in objects. However, we still need to discuss three other events that can be triggered when an object interacts with the user. For MetaTrader 5 to actually enable one of these three strategies, at least one must be activated. Otherwise, even if our code is prepared to handle this event, it will never receive a notification that it has occurred.

It is very important to understand each of these event types before using them together, so we will proceed as follows: we will create short sections solely to explain how and when MetaTrader 5 generates each of these last three types of events. Once you understand them, we can look at how to use them together to implement some interesting functionality. So, let us begin.


Author: CODE X