Hey there. Im attempting to display a label on my main 2min price chart showing whether a 5min vix chart is bullish/bearish via a 20ema/50ema crossover.
I'm running into trouble including 'VIX' into the mtf label. How do I reference VIX for the moving average?
input Period = aggregationPeriod.five_minute;
input AvgType = averageType.exponential;
input Length = 20;
input priceclose = close; ## def vix = close("VIX"); <-- not getting this to work
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
thanks for the help, cheers
I'm running into trouble including 'VIX' into the mtf label. How do I reference VIX for the moving average?
input Period = aggregationPeriod.five_minute;
input AvgType = averageType.exponential;
input Length = 20;
input priceclose = close; ## def vix = close("VIX"); <-- not getting this to work
plot AVG = MovingAverage(AvgType, close(period = Period), Length);
thanks for the help, cheers