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

Trend-based informational signal indicator Volatility Quality Index displays the sections of up/down trends.

It has four adjustable parameters:

  • Period - calculation period
  • Method - calculation method
  • Smoothing - smoothing period
  • Filter - filter size

Calculations:

  • If VQ > 0
    The trend is up - a green signal pointer is placed
  • Otherwise
    The trend is down - a red signal pointer is placed

where:

  • If (Abs(VQnew) < Filter
    VQ = PrevVQ
  • Otherwise
    VQ = VQnew

VQnew = Abs(((Close - C2) / Max + (Close - Open) / (High - Low)) * 0.5) * ((Close - C2 + (Close - Open)) * 0.5)

Max = Maximum(High - Low, Maximum(High - C2, C2 - Low))

Open = MA(Open, Period, Method)
High = MA(High, Period, Method)
Low = MA(Low, Period, Method)
Close = MA(Close, Period, Method)

C2 = Close Smoothing bars ago

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

22699