Volatility Quality indicator

Here you can post and download custom indicators written in JavaScript.

Moderator: admin

Volatility Quality indicator

Postby 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.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_JS.PNG


Download:
VQ_JS.jsl
(5.2 KiB) Downloaded 512 times


VQ candles:

Indicator paints the bars, in accordance with VQ.

VQ_Candles_JS.PNG


Download:
VQ_Candles_JS.jsl
(5.47 KiB) Downloaded 476 times


VQ trigger:

VQ_Trigger_JS.PNG


Download:
VQ_Trigger_JS.jsl
(5.11 KiB) Downloaded 485 times


VQz indicator:

VQZ_JS.PNG


Download:
VQz_JS.jsl
(4.33 KiB) Downloaded 483 times


Volatility quality index:

VQI_JS.PNG


Download:
VQI_JS.jsl
(3.41 KiB) Downloaded 478 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to JavaScript Indicators and Strategies

Who is online

Users browsing this forum: No registered users and 7 guests