Here is the chart study, which includes 2 user inputs so you can adjust the ticker symbols for each element of the ratio. Which means you can use this for a much wider range of solutions than just the VIX.
Two screenshots are included below. The first one shows the current list of ticker symbols available for VIX. The two ticker symbols used as default values for this study are marked. The second screenshot shows what this looks like on a current daily chart of SPX.
declare lower;
input tickerOne = "VIX3M";
input tickerTwo = "VIX";
plot centerLine = if !IsNaN(close) then 1 else Double.NaN;
plot ratio = close(tickerOne) / close(tickerTwo);
ratio.AssignValueColor(if ratio > 1 then Color.DARK_GREEN else Color.DARK_RED);
AddCloud(ratio, 1, Color.GREEN, Color.RED);