Cancel open orders first
Cancel open orders first controls whether TradersPost cancels the ticker's existing open orders before it sends this signal's order. It is most useful for an exit when the broker has take profit or stop loss orders open that would block it.
- Default follows the setting on the strategy subscription (Cancel existing open orders before placing new orders, off unless you turned it on).
- Yes cancels the open orders first for this signal only.
- No does not cancel them for this signal.
When it cancels, TradersPost waits for the cancels to finish (up to the Cancel open order wait time) before it submits the new order. A signal with the Cancel action does the same. In a signal's JSON the field is cancel, true or false.
{
"ticker": "AAPL",
"action": "exit",
"cancel": true
}
When you choose Yes, a Cancel order type field appears. It limits which open orders are canceled to those of one order type, and leaving it on Default cancels the open orders of every type. In a signal's JSON the field is cancelOrderType: one of market, limit, stop, stop_limit or trailing_stop. This example cancels only the open stop orders (such as a stop loss) before it sends the exit:
{
"ticker": "AAPL",
"action": "exit",
"cancel": true,
"cancelOrderType": "stop"
}
Do not cancel open orders first for this signal, even if the strategy does:
{
"ticker": "AAPL",
"action": "exit",
"cancel": false
}
Ready to put Cancel open orders first to work?
Free 7-day trial
Set-up in 3 minutes
Paper account for testing
By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.