Bots & Automation

When to Stop a Trading Bot: Kill Switches and Human Oversight

Automated trading still needs human oversight. Which limits should pause a bot automatically, which decisions stay with you, and how to tell a normal drawdown from a broken strategy.

By AlgoXP3 min readUpdated

Kill-switch decision: the bot trades within limits, otherwise it pauses until a person reviews it

A trading bot removes emotion from individual trades, but someone still has to decide when the bot itself should stop. Stopping too early - in the middle of a normal drawdown - throws away the edge you tested. Stopping too late can cost far more than any backtest suggested. The answer is to decide in advance which situations pause the bot automatically, which call for a human review, and which are simply normal.

Three kinds of stop

1. Automatic kill switches. Hard limits the bot enforces itself, without asking:

  • daily loss limit (for example 2% of equity);
  • weekly or total drawdown limit;
  • maximum number of open positions or total exposure;
  • technical faults: a position without a stop, repeated order rejections, missing data.

When triggered, the bot closes or protects positions, blocks new trades and sends a high-priority alert.

2. Review triggers. Conditions where a person should look before the bot continues:

  • drawdown beyond the 95th percentile of your Monte Carlo analysis;
  • trade frequency or win rate far outside backtest ranges for several weeks;
  • slippage or spreads consistently above assumptions;
  • a major change in market conditions the strategy was never tested on (for example, a currency peg removed, a broker changing contract specifications).

3. Planned pauses. Known periods when the bot should not trade:

  • around high-impact news if the strategy was not designed for it;
  • holidays with thin liquidity;
  • broker maintenance windows.

A decision flow

When something unusual happens, ask in order:

  1. Is it a technical fault? Missing stop, duplicate positions, errors, disconnections. → Stop and fix. Do not restart until the cause is known.
  2. Is a hard limit breached? → The kill switch should already have acted. Review before restarting.
  3. Is performance outside the expected range? Compare with backtest and Monte Carlo distributions. → If yes, pause and review the strategy and the data. If no, the drawdown is normal; continue.
  4. Has the market changed in a way the strategy cannot handle? → Pause and decide deliberately.

Normal drawdown or broken strategy?

This is the hardest call. Useful evidence:

Evidence Points to normal variance Points to a broken strategy
Drawdown depth Within backtest/Monte Carlo range Beyond 95th-99th percentile
Trade frequency As expected Much higher or lower
Win rate and average R Within ranges for the sample size Persistently outside
Execution costs As assumed Consistently higher
Trades themselves Look like backtest trades Different times, sizes or setups

A losing streak of eight trades in a strategy with a 40% win rate is not evidence of anything. Trades appearing at times the strategy never traded in the backtest are.

Designing kill switches well

  • Express limits in equity percentages, not money, so they scale with the account.
  • Use equity, not just balance, so floating losses count.
  • Act once and clearly: close or protect, block, alert. No partial measures.
  • Require a human to re-enable trading after a limit is hit.
  • Test the switch on a demo account by forcing the condition.

Prop-firm and account rules

Funded-account programmes often have strict daily and total loss limits. A bot that respects only its own limits can still breach the firm’s rules - for example, if the firm measures daily loss from the start-of-day equity including open positions. Encode the stricter rule in the bot, and leave a buffer below it.

Restarting after a stop

Before restarting:

  1. Write down why the bot stopped.
  2. Check that the cause is understood and fixed (technical) or that the strategy review is complete (performance).
  3. Consider restarting at reduced size.
  4. Log the restart and the reason.

Key takeaways

  • Decide in advance which events stop the bot automatically, which trigger a review, and which are normal.
  • Kill switches act on hard limits and technical faults; restarting is a human decision.
  • Judge drawdowns against the ranges your testing predicted, not against your feelings.
  • Encode the strictest account rules and test the switches before you rely on them.

Related: monitoring trading bots and Monte Carlo simulation.

FAQ

Should I stop a bot during a drawdown?

Not automatically. If the drawdown is within the range your backtest and Monte Carlo analysis predicted, it is normal behaviour. Stop when the drawdown exceeds that range, or when the bot behaves differently from its design.

What is a kill switch?

A predefined rule that closes positions and blocks new trades when a limit is reached - for example a daily loss of 2% of equity, or a technical fault such as a position without a stop.

Who should be allowed to restart a stopped bot?

A person, after reviewing why it stopped. Automatic restarts after loss limits defeat the purpose of the limits.

Sources and further reading

  1. cTrader Help: Start and stop a cBot - help.ctrader.com
  2. Bailey et al.: The Probability of Backtest Overfitting - papers.ssrn.com