Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Need help with tweaking/understanding algorithm

I attempted to code a very poorly written EWMA algorithm. Frankly speaking I was just happy to see the algorithm itself work. Now that I have something working, I was wondering if someone could explain to me why the algorithm itself is faulty either fundamentally or within the code as the returns are horrendous. Anything is greatly appreciated, and I apologize if I lack understanding I'm fairly new to the whole Quantopian thing.

2 responses

Also target leverage should be set to 1.0 in the code I don't know why it didn't update when I changed it before running the backtest. Results are still terrible lol.

I also apologize if some things have weird names such as "remove_penny_stocks" I started changing numbers around without regards for their precedents