Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Martingale-ish algo fun

I never liked the idea of unlimited doubling down every time a loss is taken and always wondered what if we limited it to on doubling down lets say only 5 times in a row to limit going tilt with our accounts. The is a augmentation of pure Martingale some one else has written and I have adjusted it to reset after 5 losses. I think it would be neat to test it on a much larger basket of stocks but my python coding ability is limited. If someone would like to take this code a little farther and adjust the code so it can trade a basket of symbols that would be pretty neat. The commented out area with the list of symbols is as far as I could get.