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

NA

1 response

Don't. You will be overfitting if you are looking for a perfect SMA. Go with a general rule (15 50 165 is mine) and modify it slightly if you know that the stocks you are using move quickly, tighten ur SMA, but dont try to make it perfect... it will ruin you in the long run. Over fitting is very real and can wipe out entire portfolios.