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 5 Indicator | Directional_Volatility

Directional Volatility indicator. The indicator displays two volatility lines - bullish and bearish ones.

It has two configurable parameters:

  • Period - calculation period
  • Deviation - deviation

Calculation:

Short = ShortMA + Deviation * ShortDev Long  = LongMA  + Deviation * LongDev

where:

ShortMA - EMA(ShortS,Period)
ShortDev - StdDev(ShortMA,Period)
ShortS = PrevClose - Low

LongMA - EMA(LongS,Period)
LongDev - StdDev(LongMA,Period)
LongS = High - PrevClose

MetaTrader Experts, Indicators, Scripts and Libraries

22424