Strategy Field

Enable canceling open orders

When Enable canceling open orders is enabled, TradersPost cancels all open orders for the ticker (for example, before submitting an exit or entry order). When it is disabled—the default for new strategies and subscriptions—TradersPost does not fetch or cancel open orders, which keeps trade execution faster.

Default behavior

Order canceling is off by default. TradersPost does not query the broker for open orders unless 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. Strategy or subscription settings: Check Enable canceling open orders in the Cancel section of your strategy or 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).

Trade-off

Enabling order canceling requires querying the broker for open orders and can slow trade execution. Enable it only when you need it—for example, when your strategy sends exit signals and you use take profit or stop loss with your entry.

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 open orders before submitting new entry or exit orders.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now