Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Good-Til-Canceled (GTC) Orders

Hi,

Is there a way to create a GTC order instead of the default's day order ?

https://www.interactivebrokers.com/fr/index.php?f=588

Thank you in advance.
Chris

4 responses

In our backtester, we only support market, limit, stop, and stop-limit orders. We don't have GTC available.

In addition, for IB traders, we support VWAPBestEffort and RelativeOrder (docs

We get requests to support GTC orders, and we probably will in the future, but until then you will need to re-order any standing orders every morning.

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Thanks Dan, appreciate the response

Dan, how would I go about that (re-ordering open orders from previous day following morning)? Do I need to save open orders before close and then next morning check if

Thank you in advance.

From the viewing angle of real-time live trading, IMHO, this feature (GTC orders) is rated the highest!

Once in a while there will be a disruption of the connection between Quantopian and the broker’s server (see http://status.quantopian.com/).

Such loss of communication will require the user to re-enter Login Credentials in order to re-connect / re-launch the algorithm. This may take time, especially if you are not sitting next to your workstation daily.

Should such a disruption happen, GTC orders are the only way to liquidate positions, autonomously by the broker, before the algorithm owner initiated the re-connection (or even before being alerted by Quantopian that such outage happened).

With GTC orders, users shall keep such liquidation orders at about 5% below current price. Then, regularly whenever each asset price shifts (up or down) update such GTC liquidation orders. Working in this manner is the only feasible watchdog to save us from holding undesired positions which would have been sold by the algorithm (had it been connected to the broker during the disruption).

Prevention is better than cure: having such kind of orders stationed in the broker’s system, will keep all of us safe in case of trouble.

And, Dan, re your suggestion above, this is not practical for outage events. Technology might fail; for responsible live trading, you can't do without Good-Til-Canceled orders.

Thank you in advance.