Automatically exit all trades in a strategy when aggregate profit or loss crosses a threshold.
Kill Switch monitors the combined unrealized P&L of every active trade in a strategy and automatically exits all of them when aggregate P&L crosses a threshold you configure. No manual intervention — it runs on every Trade Manager decision cycle.
Kill Switch is a Pro feature. It requires Trade Manager (TM) to be active. Free-tier accounts running BYOS execution only do not have Kill Switch available.
Two triggers are available per strategy:
| Trigger | Config field | Fires when | Action |
|---|---|---|---|
| Profit lock | pullplug_profit | Aggregate open P&L ≥ threshold | Exits all open trades in the strategy |
| Loss limit | max_loss | Aggregate open P&L ≤ −threshold | Exits all open trades in the strategy |
Both triggers evaluate aggregate unrealized P&L across all active trades in the strategy, across all accounts, on every TM cycle. Either trigger can be set independently — you do not need both.
A strategy can run three solid trades in the morning and then give it all back in the afternoon. With pullplug_profit set, Execute exits everything as soon as aggregate gains cross your target — the session ends profitable, no giveback.
When a strategy starts misfiring — multiple losing trades in the same session — losses compound faster than any single-trade SL can contain. max_loss exits every open trade the moment aggregate drawdown hits your limit. You stop the session, review what happened, and redeploy on your terms.
Both triggers work together. Set both and whichever trips first exits the strategy.
Kill Switch is configured in the Killswitch tab of your Google Sheet (exact tab name required). The format is a transposed table: one column per strategy, one row per parameter.
Example:
Parameter | sst | cst | gss
pullplug_profit | 50000 | 30000 | (blank)
max_loss | 15000 | 10000 | 8000
mode_profit | full_exit| full_exit | (blank)
mode_loss | full_exit| full_exit | full_exit
Parameter reference:
| Field | Type | Description |
|---|---|---|
pullplug_profit | Number | Profit threshold. Exits when aggregate P&L ≥ this value. Leave blank to disable. |
max_loss | Number | Maximum loss (enter as a positive number). Exits when aggregate P&L ≤ −this value. Leave blank to disable. |
mode_profit | String | Exit mode when profit trigger fires. Only full_exit is supported. |
mode_loss | String | Exit mode when loss trigger fires. Only full_exit is supported. |
Threshold values are in the local currency of your accounts (INR for Zerodha, USD for IBKR).
Mixed-currency accounts: P&L from all accounts in a strategy is summed numerically without currency conversion. If you run the same strategy on both a Zerodha (INR) and IBKR (USD) account, their P&Ls are added together directly. Set Kill Switch thresholds only when all accounts for a strategy use the same currency.
Aggregate P&L is computed on every TM decision cycle from:
P&L is unrealized — it reflects open positions, not closed trades. Kill Switch does not factor in exits that already closed during the same session.
PENDING_EXIT or RETRY_EXIT state are excluded from the P&L calculation — they are already exiting.PENDING_EXIT.Telegram alerts require Telegram to be configured in your account hub. If Telegram is not set up, the exits still fire — but you receive no notification.
To disable a trigger, clear (blank) the corresponding threshold cell in your Killswitch tab. The change takes effect on the next TM cycle — no redeploy required, subject to the sheet config cache (up to 55 minutes).
To disable Kill Switch entirely for a strategy, blank all four fields in that strategy's column.