Volatility Quality indicator

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Volatility Quality indicator

Postby Alexander.Gettinger » Mon Jan 23, 2012 2:06 am

This indicator is a ported MQL5 indicator from http://www.mql5.com/en/code/709.

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.25*abs((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].

VQ.png


Download:
VQ.lua
(5.15 KiB) Downloaded 881 times


For this indicator must be installed AVERAGES indicator (viewtopic.php?f=17&t=2430).

The indicator was revised and updated
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Volatility Quality indicator

Postby Alexander.Gettinger » Mon Jan 23, 2012 2:07 am

Indicator paints the bars, in accordance with VQ.

VQ_Candles.png


Download:
VQ_Candles.lua
(5.42 KiB) Downloaded 1087 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Volatility Quality indicator

Postby Alexander.Gettinger » Mon Jan 23, 2012 2:58 am

Strategy based on this indicator :http://fxcodebase.com/code/viewtopic.php?f=31&t=12173.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: Volatility Quality indicator

Postby Apprentice » Thu Mar 23, 2017 2:56 pm

Indicator was revised and updated.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Custom Indicators

Who is online

Users browsing this forum: Baidu [Spider] and 126 guests