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

I'm new to this and wanted to try my hand at making an algorithm. This is one of my first attempts, and seems to do pretty good when the market falls, but when the market comes back up my algo does the opposite and heads down. I can't figure out for the life of me how to get it to ride with the market after it survives a market crash.

If anybody has any ideas or suggestion I would love to hear them!

Thanks