Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Indicators | Volatility.mq4 | MQL5 Code

New free code from MQL5: indicators, EAs, and scripts for traders.


On this basis, the number in the indicator name indicates the amount of decimal places, which determines the applying of the indicator to one symbol or to another.

However, it is sometimes necessary to grade symbols by their volatility. For example, you may need to select the most or the least volatile symbol at a moment to enhance the operating efficiency of a trading system. In this case, you can use Volatility 3 pairs.mq4:

Recover from drawdowns intelligently with the Auto Recovery Expert Advisor for MT4/MT5. Perfect for hedging strategies. Learn more.

Image for Volatility.mq4

In this case, the indicator is adjusted for determining the volatility of three pairs: GBPUSD, USDJPY, GBPJPY. So, whatever chart you attach it to, it will calculate volatility only for these three pairs. However, you can easily change this by opening and editing the program in MetaEditor:

Image for Volatility.mq4

Don't forget to make the corresponding changes in the upper part of the code:

Image for Volatility.mq4

Besides, you can also increase the amount of symbols to calculate volatility for. For this, you should add the amount of buffers (not exceeding 8, though) and make the corresponding changes in the code.


Build better strategies with RobotFX professional tools – check them out.

8049

Best MetaTrader Indicators + Profitable Expert Advisors