With the recent interest in Vix and Vix Fix I found a study on a forum reply. So no idea of original author. I changed the study which plotted the William's Vix Fix formula and dev. bands to an inverted plot. To me much easier to read then normal a vix type plot. Also posting for those who prefer an actual plot to interpret rather than just going off an arrow or candle color. The principles of trading bands should also work here in a more visually logical format.
Just finished the study and played a bit with inputs on 5 Min and 55 period looked good. Feel free to play with inputs and please share any great ones you find.
Code:
# Changed the existing study, author not listed to an inverted Vix Fix.
# Changes by Horserider 9/28/2019
#
# Original study notation below:
#hint period: The number of bars used to calculate the VIX <b>(Default is 10)</b>
#hint Num_Dev_Up: The amount of stdev up. <b>(Default is 1.645</b>, 90% probability)
#hint Num_Dev_Dn: The amount of stdev down.<b>(Default is -1.645</b>, 90% probability)
declare lower;
input period = 10;
input Num_Dev_Up = 1.645;
input Num_Dev_Dn = -1.645;
def WVF = (Highest(close, period) - low) / (Highest(close, period)) * 100;
plot inv_WVF = - WVF;
inv_WVF.HideBubble();
def sDev = stdev(data = inv_WVF, period);
def MidLine = Average(data = inv_WVF, period);
plot LowerBand = MidLine + num_Dev_Dn * sDev;
LowerBand.HideBubble();
plot UpperBand = MidLine + num_Dev_Up * sDev;
UpperBand.HideBubble();
LowerBand.SetDefaultColor(CreateColor(0, 224, 0));
inv_WVF.SetDefaultColor(CreateColor(221, 18, 255));
inv_WVF.SetLineWeight(2);
UpperBand.SetDefaultColor(CreateColor(224, 0, 0));
AddCloud(UpperBand, LowerBand, Color.LIGHT_GRAY);
Just finished the study and played a bit with inputs on 5 Min and 55 period looked good. Feel free to play with inputs and please share any great ones you find.
Last edited: