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

Hi all:

I am new the quantopian and would like to start back testing some of the methods

If someone can post something simple then I can modify and start writing my own from that.

Example:

Buy when a stock gaps open down from Day 1. Sell at end of day 2.

thanks in advance

2 responses

sorry a little harsh, but "rtfd" on the help page: https://www.quantopian.com/help
at the bottom are a bunch of sample algorithms.

otherwise copy one of the algorithms posted in the threads, such as this: https://www.quantopian.com/posts/discuss-the-sample-algorithm?c=1

Hello Chien,

I suggest having a look at the recent blog posts: http://blog.quantopian.com/. You'll find links to the more popular posted algorithms, and a classification of their types.

Regarding your specific idea of "Buy when a stock gaps open down from Day 1. Sell at end of day 2." I've been working on something along these lines on https://www.quantopian.com/posts/market-closed-gap-trade. Sorry, the code is really messy, so don't be discouraged if you find it hard to follow (I'm starting to have the same problem and I wrote it!).

Grant