Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Placing an Order in Pipeline (Newbie Question)

I recently went through both of the Quantopian Tutorials (Getting Started + Pipeline). I'm having trouble creating a simple strategy with the Pipeline because I'm not sure how to place orders within Pipeline.

How would I be able to write the following ordering criteria (for simplicity, all orders can be at market):

1. Buy all stocks at a 30D breakout (consistent $10,000 in stock) with >1 standard deviation move in volume.

2. Hold the stock for 30 days or sell if down >10% from entry price.

3. Do not purchase the same stock twice. Can only re-enter if I currently have no position in the stock.

I think I created the filters in the Pipeline already... but my sincere apologies if it's not correct either.

I would be eternally grateful if someone would be willing to help me. I've been stuck on this for several hours now and I really think I'd be able to keep practicing on my own if I'm able to jump this one hurdle. Thank you so much.

1 response

Not sure why but I can't see your backtest or source code, just a faded out box