Learn › Glossary › Kill Switch

Kill Switch

A single control that halts all automated trading immediately — per strategy or account-wide. Every automated setup needs one before it needs anything else: when behavior surprises you, the first move is stopping new orders, not debugging live. Well-designed platforms make pausing instant and resuming deliberate.

A kill switch is a control that halts automated trading when you press it. The glossary definition on this site describes it as a single control that stops all automated trading immediately, either for one strategy or for the whole account. The idea is older than retail bots: any system that sends orders without a person watching every tick needs a way for a person to say stop, and that way has to be simpler than the system it stops.

DeployQuant has two levels of it. One switch pauses a single strategy. Another pauses every strategy on a broker connection. The first is for a rule that is misbehaving while the rest of the account is fine. The second is for the moment you do not know which rule is at fault, or when something outside the strategies has changed.

The measured behaviour of SPY, QQQ, TQQQ, TLT, IWM and UVXY from 2021-01-04 to 2026-10-02 shows why the switch matters more on some funds than on others, after a description of what pausing does and does not do. The backtests behind those numbers start with $10,000, use no margin and decide once a day, and the headline runs include no fees or slippage. They are hypothetical, and a switch protects against a live problem that a backtest cannot show. The neighbouring ideas are risk management and dry-run mode.

What pressing the switch changes

The definition on this site puts the priority plainly: when behaviour surprises you, the first move is to stop new orders, and debugging live is the second move. The reason is ordering. A strategy that keeps sending orders while you read its logs is still changing your position. Pausing first freezes the position at what it is and gives you time to look.

A pause stops the strategy from acting. It does not sell anything by itself. Orders already working at the broker and shares already held are a separate matter, and a person decides what to do with them after the halt. The definition also says that well-designed platforms make pausing instant and resuming deliberate. Pausing has to be one action with no questions. Resuming can ask for a second look, because starting a strategy that just misbehaved deserves one.

In DeployQuant the same sleeve model that separates strategies also scopes the switch. Every deployed strategy runs in its own sleeve, with its own cash, positions and P&L. A user can pause, resume or stop one strategy without touching the others, and add cash to one sleeve at a time. A strategy that sells everything only sells its own positions, so stopping one sleeve leaves the rest of the account as it was. Cash that is not allocated to any sleeve is never traded, and positions the user trades by hand stay theirs, which means a halt never has to reach into holdings the platform does not manage.

Strategy level and connection level

The strategy-level switch is the narrow tool. If a golden cross sleeve on one fund has started sending orders you did not expect, pausing that sleeve leaves a monthly rule on another fund running. The sleeves share one broker connection and one login, and an order management system sends every order down that one connection, so the connection is also the place where everything can be stopped at once.

The connection-level switch is the wide tool. It pauses every strategy on that broker connection with one action. It fits situations where the fault could be anywhere: a broker outage, an order error that repeats, a market event that makes all the rules suspect at the same time. On Webull live accounts, order errors are sent to the user by email, which gives a person the signal to reach for the switch.

Neither switch is a withdrawal control. Broker connections have trade and read permissions only. They cannot withdraw or transfer money, and a user can disconnect at any time. Disconnecting is the third layer, beyond the two pauses, and it sits entirely on the user's side.

The other rails around a halt

A kill switch is the last manual rail. Several automatic ones sit in front of it, and they decide how often anyone needs to reach for the switch.

The fill-report rule is worth a second look in the context of a halt. After a pause, the first question is what the account holds. Because the books come from the broker's fills and not from the strategy's intentions, the answer on screen is the answer the broker would give.

Dry-run mode is the rehearsal that makes a halt less likely. It exercises the exact production path against the real account without risking a share, so a bad order size or a rule that fires twice shows up as a log line and not as a position. The dry-run entry covers the mechanics. Paper trading on the live market data feed needs no broker and is the earlier step.

Why fast funds make the switch matter more

A halt matters in proportion to how far a position can move before a person reacts. The six market examples in the library differ a great deal on that. Annualized volatility over the window was 16.41% for SPY, 22.39% for QQQ, 22.35% for IWM, 15.33% for TLT, 67.11% for TQQQ and 103.95% for UVXY.

The average intraday range gives the same picture in daily terms. SPY's was 1.15%, QQQ's 1.58%, TLT's 0.94% and IWM's 1.75%. TQQQ's was 4.74% and UVXY's was 7.03%. A strategy that holds TQQQ can move by almost five percent between the high and the low of an ordinary session, so an order that repeats during an hour is a different size of problem from the same order on SPY.

Overnight gaps matter because no switch works while the market is closed. The average overnight gap was 0.44% on SPY and 0.59% on QQQ. On TQQQ it was 1.78%, and on UVXY 2.53%. A pause pressed in the evening does not change where a fast fund opens the next morning. It stops the strategy from adding to the position at that open.

The average up day and down day were about the same size on SPY, 0.74% each way. On TQQQ they were 3.01% up and 3.22% down. On UVXY they were 5.15% up and 4.02% down. A person who has seen a quiet fund hold still for a week may carry that expectation to a fund that does not.

Drawdowns that outlast a reaction time

The kill switch is for software behaving unexpectedly. A drawdown is a market doing what it does. They are different events, and the library's drawdown figures show why a halt does not substitute for a plan for losses.

SPY fell 24.51% from 2022-01-03 to 2022-10-12 and recovered on 2023-12-13. The longest drawdown ran 488 sessions. QQQ fell 35% from 2021-11-19 to 2022-11-03 and recovered on 2023-12-12. TQQQ fell 81.68% from 2021-11-19 to 2022-12-28 and did not recover until 2024-12-04. IWM fell 31.92% from 2021-11-08 to 2022-06-16 and recovered on 2024-11-06. TLT fell 44.06% from 2021-01-04 to 2023-10-19 and had not recovered by the end of the window. UVXY fell 99.95% from 2021-01-29 to 2026-09-22 and had not recovered either.

On buy-and-hold terms, which put 98% of the account in on the first open, the maximum drawdowns were 23.99% for SPY, 34.23% for QQQ, 80.77% for TQQQ, 31.34% for IWM, 42.77% for TLT and 98.42% for UVXY. Ending equity from $10,000 was $21,820.48 on SPY, $24,264.64 on QQQ, $36,585.29 on TQQQ, $15,145.24 on IWM, $6,106.38 on TLT and $215.70 on UVXY.

Pausing a strategy during any of these drawdowns would have frozen the position, and that is all. If the strategy holds the fund, a pause leaves the holding in place and the drawdown continues. The decision to sell is a separate decision. The Q&A on stopping a strategy in a drawdown takes up that question directly. The switch is the mechanism for either choice, and it does not make the choice.

How much a pause interrupts, by template

Strategies differ in how often they act, and that decides what a pause costs. A rule that trades twice in five years has little to interrupt. A rule that trades every few days has a lot.

The median round trips across 59 ETFs were 2 for the dip buyer, 3 for the golden cross and 4 for trend with trailing stop. The 3-month momentum template had 12, and the RSI mean reversion template had 15. SMA 10/50 trend had 17, the 200-day regime filter 18 and EMA 12/26 trend 22. The monthly cycle had 69, the weekly 7% target 106 and the RSI(2) snapback 166.

A slow template that is paused for a week will probably miss nothing. A fast one paused for a week may miss several entries or exits, and when it resumes it will act on the day's signal with no memory of the pause. That is a reason to treat resuming as deliberate: a person checks that the position the strategy believes it has is the position the account holds, then restarts.

Templates also differ in how deep they went at the median, which is a rough guide to how often a person might feel the urge to halt. Median maximum drawdown was 17.47% for the RSI(2) snapback and 20.1% for the momentum breakout. It was 21.84% for the golden cross, 22.16% for the 200-day regime filter and 22.87% for EMA 12/26 trend. SMA 10/50 trend had 23.02%, RSI mean reversion 24.63%, the dip buyer 26.19%, 3-month momentum 26.23% and the weekly 7% target 26.26%. Trend with trailing stop had 31.15% and the monthly cycle 36.63%. These medians come from 59 very different funds and describe the spread, not any one account.

What counts as surprising behaviour

The library gives a way to describe what a normal strategy looks like, which makes surprise easier to spot. Each backtest page logs every trade with the prices and indicator values the strategy saw. The live decision log does the same, so a person can compare what a rule did against what it said it would do.

Take RSI(2) below 10 as an example. It fired on 146 sessions on SPY, 144 on QQQ, 152 on TQQQ, 165 on IWM, 203 on TLT and 301 on UVXY. A user who sees the RSI(2) snapback template trade a few times a year on SPY has no reason to worry. A user who sees ten orders in one session has a reason to pause first and read second. The count of normal firings is the yardstick.

The 14-day version fires much less. RSI(14) fell below 30 on 18 SPY sessions, 15 QQQ sessions, 18 TQQQ sessions, 33 IWM sessions, 61 TLT sessions and 116 UVXY sessions. A rule built on it that fires twice in a day on SPY is out of pattern against 18 sessions in 1,444.

The forward returns after those signals show why a person might want to let a rule run. On SPY the median 5-day return after RSI(14) fell below 30 was 3.74%, against a baseline of 0.42%. On TLT it was 0.02% against a baseline of negative 0.14%, and the 20-day median was negative 1.63%. A pause during a signal that has historically paid on one fund and not on another is a decision about the fund as much as the rule.

The question on the risks of automated trading lists the failure types the switch is built for.

Resuming after a halt

The definition of a kill switch asks for deliberate resuming, and there are a few concrete checks that fit. The first is the position. The books are built from the broker's fill reports, so the position on screen can be compared with the broker's own statement. The second is the cash in the sleeve, since each order is checked against that sleeve's cash before it is sent. The third is whether the cause of the halt is understood.

If the cause is a rule that misfired, a dry run is the next step. Dry-run mode sends nothing to the broker and logs what would have happened, so a fix can be tested against the real account. If the cause is outside the strategy, such as a broker error, the check is that the error has cleared.

If the strategy is only being paused because a drawdown is uncomfortable, the backtest data speaks to what that costs. A stop and a restart are two timing decisions in place of one, and the library does not measure whether such overrides help. It measures rule behaviour with no overrides, and the Q&A on safe broker connections covers the permissions side of the same control surface.

Limits of the evidence

The market numbers on this page come from one window, 2021-01-04 to 2026-10-02, which holds the 2022 decline and a strong recovery after it. The strategy medians cover 59 ETFs and say little about any single fund. Backtests decide once a day and fill on minute bars, with no fees or slippage in the headline run. Backtests also cannot show an outage, an order error or a bad fill, which are the events the switch exists for. The measured behaviour of the funds is a guide to how fast things move. It is not a record of any halt.

The definition and the product reference describe what the switch does. They do not measure how quickly a person reacts, and no response time is claimed here. Live trading can lose money, including the money you put in.

Frequently asked questions

What is a kill switch in trading?

A kill switch is a control that halts automated trading when pressed. The glossary definition describes it as a single control that stops all automated trading immediately, per strategy or account-wide. It stops new orders so a person can investigate before the position changes further.

Does a kill switch sell my positions?

A pause stops the strategy from acting, and it does not sell anything by itself. Shares already held stay in the account until a person decides what to do. If the strategy holds a fund that is falling, the drawdown continues during the pause.

How does DeployQuant's kill switch work?

One switch pauses a single strategy. Another pauses every strategy on a broker connection. Because each strategy runs in its own sleeve with its own cash, positions and P&L, pausing one leaves the others running.

Can a kill switch protect me from a market crash?

It stops the software from adding orders. It does not change the price of what you hold. TQQQ buy-and-hold fell 80.77% at its deepest in the window, and SPY buy-and-hold fell 23.99%, so a pause on a holding strategy leaves the exposure in place.

When should I use the kill switch instead of waiting?

The glossary definition says that when behaviour surprises you, the first move is stopping new orders. Surprising means the strategy is doing something its rules do not describe, such as many orders in one session from a rule that normally trades a few times a year. The decision log shows what the rule saw when it acted.

Is the kill switch different from disconnecting my broker?

Yes. Pausing stops strategies from sending orders while the connection stays in place. Disconnecting removes the connection, and a user can do it at any time. Connections have trade and read permissions only, with no ability to withdraw or transfer money.

What should I check before resuming a paused strategy?

Compare the position on screen with the broker's statement, confirm the sleeve's cash, and understand the cause of the halt. A dry run, which sends nothing to the broker, can test a fix against the real account first.

Run a strategy that uses this yourself, free →

Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.

Related terms

Risk ManagementEverything that bounds what a strategy can lose: position sizing, stop…Dry-Run ModeExecuting a strategy's full order pipeline — signal, sizing, validatio…

Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.