codypd

UVXY Contango Rate - my quick and dirty indicator

Feel the force ... read the source.

Give you an idea of the contango headwind / backwardation tailwind that UVXY is experiencing.

Works on Daily time frame only unless you buy the VIX feed.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study("UVXY Contango Rate")
VIX = security("VIX", "D", close)
UVXY = security("UVXY", "D", close)

contangoRatio = UVXY/VIX
contangoRate = 1-(contangoRatio[1]- contangoRatio[0])
fastemaCR = ema(contangoRate,7)
slowemaCR = ema(contangoRate,27)

h0 = hline(1, color=white)

plot(contangoRate, color=gray)
plot(fastemaCR, color=white)
plot(slowemaCR, color=black)
bgcolor(slowemaCR > .996 ? red : blue, 60 )