Simple strategy that buys stocks (using QLD) when the VIX RSI is high and the Index RSI is low. Switches to bonds using TLT when VIX rsi is low and Index RSI is high.
Still new to coding and I'm sure I've got some mistakes in there but I'm open to suggestions/changes to improve performance. One thing I'd like to try is to change code to buy a basket of high beta stocks instead of QLD. i suspect the high beta stocks would outperform QLD during a market move up.