Back to Strategy Fields
Strategy Fields

Cancel existing open orders before placing new orders

Cancel existing open orders before placing new orders controls a pre-submit safety step.

When enabled, TradersPost first cancels existing open orders for the ticker, then submits the new signal order (entry or exit). This is commonly needed when broker-side take-profit or stop-loss orders are already open and would block a new exit signal.

When disabled (the default), TradersPost does not fetch/cancel existing open orders before placing the new order, which keeps execution faster.

This setting does not control the delayed cancel of the newly submitted order itself. That is handled separately by Cancel open entry order after delay and Cancel open exit order after delay.

Default behavior

Order canceling is off by default. TradersPost will only run this pre-submit cancel step when you enable this option or opt in per signal (see below).

When to enable: take profit and stop loss

  • Enable order canceling when your strategy sends exit signals and you use take profit or stop loss with the entry in the broker. When an exit signal is sent, the broker will often reject it until those TP/SL orders are canceled first; enabling order canceling ensures TradersPost cancels them before submitting the exit. If your strategy only sends entry signals and you rely solely on the broker's take profit/stop loss to close the position, you do not need order canceling.

How to enable

  1. Subscription settings: Check Cancel existing open orders before placing new orders in the Open Orders section of your subscription settings.
  2. Per signal (webhook): In the webhook/signal JSON, you can opt in for that signal only by sending "cancel": true or by using action=cancel (e.g. "action": "cancel" in the payload).

Webhook examples

Enable pre-order canceling for this signal:

{
    "ticker": "AAPL",
    "action": "exit",
    "cancel": true
}

Do not request pre-order canceling for this signal:

{
    "ticker": "AAPL",
    "action": "exit",
    "cancel": false
}

Explicit cancel action for this signal:

{
    "ticker": "AAPL",
    "action": "cancel"
}

Trade-off

Enabling this pre-submit cancel step requires querying the broker for open orders and can slow trade execution. Enable it only when you need it.

If you do not enable it, you can still request a cancel for that signal by sending "cancel": true or "action": "cancel" in your webhook payload; TradersPost will process and submit the cancel order as requested.

The setting only controls whether TradersPost automatically cancels existing open orders first before submitting a new entry or exit order.

Ready to put Cancel existing open orders before placing new orders 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.