Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
market timing strategy

simple strategy that goes long the market when SPY rsi is low and VIX high and sells when SPY rsi is high and VIX low. When not in stocks switch to bonds using ticker LQD. Code could use some cleanup but ready to use as is.