This script was an exercise in learning Pinescript and exploring the futures curve of the VIX in relation to SPY. Was deleted by TV, trying to republish it now with updated parameters for slippage and commission and a more detailed description.
"VIX Futures Spread Strategy" is a trading strategy that capitalizes on the spread between the 3-month VIX futures...
Very basic strategy that goes long on a VIX ETF whenever the futures curve shows signs of backwardation and gets out when it shows signs of contango. Makes no effort whatsoever to avoid getting faked out by monthly futures rollover.
Surprisingly good at not incinerating money while still providing diversification benefits in a long SPY portfolio. Useful for...