Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
VIX strategy running into a memory problem. Can anybody help?

This algorithm plays on fact that vxx and its opposite xiv have built in loss over time due to rollover effects
Getting good results but also have some type of memory leak

VXI  less than 14 or greater than 45  -> short vxx  
VXI  > 22   and less than 45 -> short xiv  

otherwise stay in last position.