In
this article, we will consider the development of a multi-symbol
volatility indicator. The development of multi-symbol indicators may
present some difficulties for novice MQL5 developers which this article
helps to clarify. The major issues arising in the course of development
of a multi-symbol indicator have to do with the synchronization of other
symbols' data with respect to the current symbol, the lack of some
indicator data and the identification of the beginning of 'true' bars of
a given time frame. All of these issues will be closely considered in
the article.
We will get values of the Average True Range (ATR) indicator
already calculated for each symbol based on the handle. For illustrative
purposes, there will be six symbols whose names can be set in the
external parameters of the indicator. The names entered will be checked
for being correct. Should a certain symbol specified in the parameters
not be available in the general list, no calculations will be made for
it. All the available symbols will be added to the Market Watch window, unless they are already available there.
In the previous article entitled "MQL5 Cookbook: Indicator Subwindow Controls - Scrollbar"
we already talked about the canvas on which you can print text and even
draw. This time, we are not going to draw on the canvas but we will use
it to display messages about the current program processes to let the
user know what is happening at a given point of time.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
New article MQL5 Cookbook: Developing a Multi-Symbol Volatility Indicator in MQL5 has been published at mql5.com:
In this article, we will consider the development of a multi-symbol volatility indicator. The development of multi-symbol indicators may present some difficulties for novice MQL5 developers which this article helps to clarify. The major issues arising in the course of development of a multi-symbol indicator have to do with the synchronization of other symbols' data with respect to the current symbol, the lack of some indicator data and the identification of the beginning of 'true' bars of a given time frame. All of these issues will be closely considered in the article.
We will get values of the Average True Range (ATR) indicator already calculated for each symbol based on the handle. For illustrative purposes, there will be six symbols whose names can be set in the external parameters of the indicator. The names entered will be checked for being correct. Should a certain symbol specified in the parameters not be available in the general list, no calculations will be made for it. All the available symbols will be added to the Market Watch window, unless they are already available there.
In the previous article entitled "MQL5 Cookbook: Indicator Subwindow Controls - Scrollbar" we already talked about the canvas on which you can print text and even draw. This time, we are not going to draw on the canvas but we will use it to display messages about the current program processes to let the user know what is happening at a given point of time.
Author: Anatoli Kazharski