Source: https://fxcodebase.com/code/viewtopic.php?f=48&t=65308
Forum: 48 · Topic 65308 · 1 post(s)
Alexander.Gettinger · Sat Oct 28, 2017 2:42 pm
Formulas: VQ[i]=MA_C[i] and UP color if Dir[i]>0 or DN color if Dir[i]<0, where Dir[i]>0 if Var>0 and Dir[i]<0 if Var<0, if abs(Var)<Filter(in pips) Dir[i]=Dir[i-1], Var=0.25abs((MA_C[i]-MA_C[i-Smoothing])/Max+(MA_C[i]-MA_O[i])/(MA_H[i]-MA_L[i]))(2*MA_C[i]-MA_C[i-Smoothing]-MA_O[i]), Max[i]=Max(MA_H[i]-MA_L[i],MA_H[i]-MA_C[i-Smoothing],MA_C[i-Smoothing]-MA_L[i]), MA_H - moving average for High, MA_L - moving average for Low, MA_O - moving average for Open, MA_C - moving average for [MainPrice].
Download:
VQ candles:
Indicator paints the bars, in accordance with VQ.
Download:
VQ trigger:
Download:
VQz indicator:
Download:
Volatility quality index:
Download: