Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
My first algo, am I on the right path?

I wanted to create an algorithm that looked at the past 50 day average and the past 200 day average. The algorithm would trade if the 50 day average was greater than the 200 day average. I don't think this is a novel idea, I just wanted to try create my first attempt. Did I do it right, and why does it say the return is so high?

Thanks,
Milap

2 responses

Hi ,

The return is high for two reasons :

1 . You are using AAPL

2 . We've been in a bull market for 6 years now .

Instead of AAPL, use SPY and backtest your algo from 2003. Attached, is your algo tested with SPY, same period.

Thanks for the tips, I'll try doing those two tips instead.

Milap