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 | Damiani_Volatmeter

Damiani Volatmeter - trend/flat determining algorithm.

There are five inputs:

  • Viscosity;
  • Sedimentation;
  • Threshold;
  • Lag suppressor - whether to limit lagging (Yes/No);
  • Applied price - price used for calculations.

Calculations:

  • If Lag suppressor:

    LineP = ATR_V / ATR_S + (LineP[1]-LineP[3]) / 2.0
  • Else:

    LineP = ATR_V / ATR_S
LineM = Threshold - StdDevV / StdDevS

where:

ATR_V - ATR(Viscosity)  ATR_S - ATR(Sedimentation)  StdDevV - StdDev(Viscosity)  StdDevS - StdDev(Sedimentation)  
If the M line (red) is below the P line (green), there is a flat in the market. If above, there is a trend.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Damiani_Volatmeter + Lag suppressor

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Damiani_Volatmeter without Lag suppressor

21700