Download MetaTrader 5

Discussion of article "MQL5 Cookbook: Developing a Multi-Symbol Volatility Indicator in MQL5"

To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
MetaQuotes Software Corp.
MetaQuotes Software Corp. 2014.01.06 10:34 

New article MQL5 Cookbook: Developing a Multi-Symbol Volatility Indicator in MQL5 has been published:

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.

MQL5 Cookbook: Developing a Multi-Symbol Volatility Indicator in MQL5

Author: Anatoli Kazharski

Aaronsebaronse 2014.01.06 16:47  


I think you need to re-base the numbering for the yen pairs. The EURJPY pair has an ATR around 2, which shrinks the other pairs so you cant read them. Try dividing the ATR on the yen pairs by 10.

Gear 2014.01.19 14:23  
Looking good :)
To add comments, please log in or register