Page 1 of 1

William VIX FIX

PostPosted: Thu Feb 05, 2015 2:53 am
by hansenlauw
Is this indicator already coded in LUA?
Here's the code paste from public library in tradingview.com:
study("CM_Williams_Vix_Fix", overlay=false)
pd = input(22, title="LookBack Period Standard Deviation High")
bbl = input(20, title="Bolinger Band Length")
mult = input(2.0 , minval=1, maxval=5, title="Bollinger Band Standard Devaition Up")
lb = input(50 , title="Look Back Period Percentile High")
ph = input(.85, title="Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%")
pl = input(1.01, title="Lowest Percentile - 1.10=90%, 1.05=95%, 1.01=99%")
hp = input(false, title="Show High Range - Based on Percentile and LookBack Period?")
sd = input(false, title="Show Standard Deviation Line?")

wvf = ((highest(close, pd)-low)/(highest(close, pd)))*100

sDev = mult * stdev(wvf, bbl)
midLine = sma(wvf, bbl)
lowerBand = midLine - sDev
upperBand = midLine + sDev

rangeHigh = (highest(wvf, lb)) * ph
rangeLow = (lowest(wvf, lb)) * pl


col = wvf >= upperBand or wvf >= rangeHigh ? lime : gray


plot(hp and rangeHigh ? rangeHigh : na, title="Range High Percentile", style=line, linewidth=4, color=orange)
plot(hp and rangeLow ? rangeLow : na, title="Range High Percentile", style=line, linewidth=4, color=orange)
plot(wvf, title="Williams Vix Fix", style=histogram, linewidth = 4, color=col)
plot(sd and upperBand ? upperBand : na, title="Upper Band", style=line, linewidth = 3, color=aqua)

Re: William VIX FIX

PostPosted: Thu Feb 05, 2015 3:48 am
by Apprentice
Requested can be found here.
viewtopic.php?f=17&t=6362&p=14632#p14632

Re: William VIX FIX

PostPosted: Thu Feb 11, 2016 3:25 am
by Coondawg71
Can we please amend this newest version of William Vix Fix. I would like to see the "tops" highlighted as well.

wvf<= lowerband or wvf <= rangeLow then red histogram bar else gray

Makes MTF use much easier.


Thanks!!!

sjc

Re: William VIX FIX

PostPosted: Sun Feb 14, 2016 5:25 pm
by Apprentice
Your request is added to the development list.

Re: William VIX FIX

PostPosted: Sat Jan 20, 2018 5:32 pm
by Alexander.Gettinger
Coondawg71 wrote:Can we please amend this newest version of William Vix Fix. I would like to see the "tops" highlighted as well.

wvf<= lowerband or wvf <= rangeLow then red histogram bar else gray
sjc


Please, try this version:
William VIX FIX2.lua
(6.22 KiB) Downloaded 660 times