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

My friends and I have created this algorithm in an attempt to learn more about algorithmic trading. We have some limited familiarity with Python very little knowledge about algorithmic trading. We would like to make our algorithm more consistent and get rid of the context.simplerating variable to make it so that we can trade stocks based on NetRtg only. We have a basic "momentum reversion" concept, but we would like to know how to make this more consistent. Also, what is the best way to do stop-losses? Is there a way to bypass set_universe and make it so that we can trade a larger range of stocks.

4 responses

Ah yes. Great Algo keep on going!

I'm one of Grant's friends and we would also like to know how we can get our schedule function to update minutely instead of only at the market open?

Hi Austin,
Here is a cloned version that schedules the 'rebalance' function call for every 20 minutes rather than just at market open.

Austin, if you wanted a minutely re-balance, I believe you can just call a function from handle_data as it is run every minute already.