Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Quantopian: Are stop and limit order types fully disallowed?

It makes sense that order_optimal_portfolio (required in the contest and fund) will not execute if stop or limit orders are present.

Requesting a clarification:
Would the existence of any stop and/or limit orders eliminate an algorithm from consideration in the fund?

The reason for the question is that stop and limit orders could still be used. The easiest would be letting them cancel at end of day and running optimize at or near market open. Optimize could be run any time of day canceling all open orders beforehand also (if stop, limit were created at market open). Stops and limits to close positions could be entered afterward, for example just on orders that have completed.

Because the error generated by order_optimal_portfolio about existing stop or limit orders is not very difficult to work around, it would be beneficial for authors to know Quantopian's viewpoint.

2 responses

I have the same question. Have you ever found work around?

Cancel all orders before order_optimal_portfolio, but that would feel like trying to cheat in the contest,
plus they can see the orders, they would know of course.
Maybe they would rather not comment.
I understand IB has bracket orders with OCO, wonder if the new clearing broker does.