Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Support/resistance, z-scores, leveraged sp500, bollinger band

Taking advantage of the vega in SPXL/SPXS. Really dirty code with notes and experiments, but I thought I'd share anyways. I'm going to set this to paper trade.

2 responses

Without looking at the actual code, I can tell you have a leverage problem...
Try implementing a leverage tracker and then see if your returns are the same

Just FYI, to get some idea how the algo would have performed before 2008 , i replaced spxl ans spxs with spy.