Plot VIX in Subgraph w/Moving Average and Invert Chart



New member
Hello. I'd like to plot VIX in a sub graph with a moving average. Here's what I've got so far. I was successful in plotting the VIX but not the moving average. Any help would be greatly appreciated!

declare lower;

def Data = close(“-VIX”);

input data_averageType = AverageType.EXPONENTIAL;
input length = 20;

plot Close = (Data);
plot data_Average = Avg(data_averageType,data_average_length);
Last edited:

Similar threads