Hello.
Don’t kick hard, but the question is:
There is an indicator (no code), which when an event occurs makes a record in global variables, there is also an alert function. An Expert Advisor is planned that will receive information from the indicator and continue to perform the necessary actions. So I wonder if it is possible to make it somehow understand that the alert has worked and take the necessary information from there, or do you have to check global variables, search for the necessary one, and so on?
Question: Global variables and their specific use
Share
komposter
Alerts can be read using the DLL.
But the main variables will be easier and cheaper in terms of resources.
andy912
Thanks for the answer.
There are no arrows, the indicator makes small records of different colors. Can you tell me where to check for records of this very buffer? I am not strong yet in all this, very not strong
marketeer
so far, only the analysis of global variables suggests itself.
in principle, the mql api lacks broader support for alerts, in particular onalert events with source and text indication. and by the way, now in mt there are 2 independent types of aletres: those that generate mql programs by calling the alert function, and those that can be configured in the user interface. In theory, the essence is the same and the API should be one.
PS. if the indicator gives an alert for some signal that is displayed in the buffer (for example, as an arrow), then it is best to read from the buffer.