Learn › Q&A › What are the biggest risks of automated trading?

What are the biggest risks of automated trading?

Ranked by realized damage to retail accounts: (1) Oversizing — a fine strategy at 100% of a too-large allocation; position sizing failures dwarf signal failures. (2) Overfitting — deploying a backtest mirage that degrades immediately live. (3) Execution bugs and edge cases — the fat-fingered limit, the order loop, the strategy that didn't handle a halted ticker; platform-level guardrails (price bands, notional caps, kill switches) exist for exactly this class. (4) Regime change — a strategy meeting a market it never saw in testing. (5) Set-and-forget rot — automation running unwatched for months past the point its assumptions died. Note what's absent: 'the bot steals my money' — with scoped, non-withdrawal broker permissions, that risk is structural, not behavioral.

Automated trading removes the human from the order button. It does not remove the market, and it adds failure modes that manual trading does not have. This page lists five risks in the order that tends to cost retail accounts the most, and puts measured numbers next to each one using the same 2021-01-04 to 2026-10-02 window DeployQuant uses for every backtest on this site.

The five are oversizing, overfitting, execution bugs, regime change and set-and-forget rot. A sixth worry that people raise first, that the bot or the platform will take the money, sits outside the list. With a broker connection that can trade and read but cannot withdraw or transfer, the platform has no route to move cash out of the account. The realistic damage is what a bad strategy can lose by trading, which is the same loss you would take trading it by hand. The related answer on whether connecting a broker to a platform is safe covers the permission questions in detail.

Everything below is a backtest or a description of a control. Backtests are hypothetical, run on one window of 5.74 years, with no fees or slippage in the headline run. They show how large these risks were in that window. They do not forecast anything.

Risk 1: oversizing

Position sizing is the decision of how much to buy when a signal fires. The position sizing entry puts it this way: the same signals at 98% of equity and at 25% produce different drawdown profiles. The signal can be fine and the account can still be wrecked, because the size set how much of the account the next bad stretch could reach.

The market data on this site shows how wide the range of bad stretches is. Buy-and-hold on SPY had a maximum drawdown of 23.99% in the window, from the peak on 2022-01-03 to the trough on 2022-10-12. Buy-and-hold on QQQ went down 34.23%. Buy-and-hold on IWM went down 31.34%. Those are the drawdowns of unleveraged index funds that most people consider ordinary holdings.

TQQQ tracks three times the daily move of QQQ. Its buy-and-hold drawdown was 80.77%, from the peak on 2021-11-19 to the trough on 2022-12-28, and it took until 2024-12-04 to recover. Its calendar 2022 return was -79.07%. In 2023 it returned 198.32%. The same fund produced a 25.35% CAGR and a $36,585 ending balance from $10,000 in buy-and-hold. A strategy that holds TQQQ with all of the account is therefore carrying an 80% hole in the equity curve inside a five-year sample, and a person who sizes for the 25.35% CAGR without sizing for the hole has made a sizing error, whatever the signal says.

UVXY is the extreme case. Its annualized volatility was 103.95%, its average intraday range was 7.03% and its buy-and-hold total return was -97.84%, with an ending balance of $216 from $10,000. Over the full window its calendar returns were negative every year, from -89.67% in 2021 to -52.77% in the partial year 2026. A rule that happens to catch the good weeks in a fund like that can look attractive in a backtest, yet a single oversized position held through the wrong week is enough to end the account.

Sizing errors also come from the account side rather than the strategy side. If two strategies each assume they own the whole account, their combined exposure can be twice what either one was tested at. DeployQuant addresses that case with sleeves. Each deployed strategy has its own cash, positions and P&L, and every order is checked against that sleeve's cash before it is sent, so one strategy cannot spend another's money. Per-order and per-position dollar caps add a second limit, and the caps never block an order that reduces exposure.

The test stops here: a cap limits how much can go wrong in one position, and it does nothing about a strategy that was a bad idea at any size. The 98% figure in the headline backtests is the same as the buy-and-hold baseline, which puts 98% of the account in at the first open. The backtest tables do not tell you what size is right for your account, and nothing on this page does either.

Risk 2: overfitting

The overfitting entry lists the symptoms: many parameters, a spectacular backtest, sharp sensitivity to small parameter changes, and disappointing live results. The risk is larger for automated trading because the whole selection process is automated too. A person can test hundreds of combinations of rule and fund in an afternoon, and the best one will look good partly by chance.

The library behind this site shows the scale of that selection effect. It tests 12 strategy templates on 59 ETFs over the same window. Median results across those 59 funds are modest. The weekly 7% target has a median CAGR of 6.61% and the monthly cycle has 5.46%. RSI(2) snapback has 4.74%. The 3-month momentum template has a median of 0% and so does the momentum breakout. The 200-day regime filter has 1.84% and the golden cross has 2.05%.

The best single combination on a page is far above those medians. A reader who skips straight to the best fund for a rule is picking the top of a distribution after seeing the answer. Beat-buy-and-hold counts show how often a rule did better than holding: RSI(2) snapback beat buy-and-hold on 34 of 59 funds and the weekly 7% target on 34 of 59, while the monthly cycle beat it on 14 of 59 and the trend plus trailing stop on 20 of 59. A rule that beats buy-and-hold on 34 of 59 funds also fails to on the rest, which is information a single-fund backtest hides.

Sample size is the other half of the problem. On SPY, the 14-day RSI closed below 30 on 18 sessions in the window. The median 5-day forward return after those sessions was 3.74% against a baseline of 0.42%, and the median 20-day forward return was 2.86% against 1.73%. Those look like an edge, but 18 sessions is a small count, and they cluster in a handful of selloffs. On TQQQ the same trigger fired on 18 sessions with a median 5-day forward return of 10.3%. On TLT it fired on 61 sessions, and the median 20-day forward return was -1.63%. The identical rule gave opposite answers on two funds, which is what sensitivity to the sample looks like.

The golden cross shows the same issue from the other end. Its median round-trip count is 3 per fund over 5.74 years. A strategy with three trades has three data points behind it, and any parameter that was tuned to fit those three is tuned to noise. The golden cross hub lists the results per fund, and the spread between them is wide.

The defenses in the glossary entry are fewer knobs, out-of-sample testing, walk-forward validation, and suspicion of your own best results. DeployQuant's backtests on this site show parameter variants and 5 and 10 basis point cost runs on every page for that reason: a result that collapses when a lookback moves a little, or when a cost is added, was probably a fit to the window. The limit of the test is the window itself. Every figure here comes from one 5.74-year sample that includes the 2022 bear market, and no out-of-sample period is held back.

Risk 3: execution bugs and edge cases

A strategy can be correct on paper and still send a wrong order. The usual cases are a limit price with a misplaced decimal, a stale quote, a loop that resubmits an order, or a symbol that is halted when the order arrives. These are software and plumbing failures. They show up as sudden large losses on a single day, unrelated to what the strategy's logic wanted.

The price band entry describes the first line of defense: a validation rule that refuses orders priced too far from the current market, and a companion check that refuses limit orders that would execute instantly by accident. DeployQuant's live trading lists the following controls:

The accounting item matters more than it looks. If a platform keeps its own idea of the position and the broker holds a different one, every later order is sized from a wrong number. Reading positions from fill reports keeps the sleeve's books tied to what the broker actually executed.

Market microstructure is a source of edge cases that a daily-decision backtest does not exercise. SPY has a median minute volume of 107,870 shares and trades about 30,453,859,411 dollars on an average day. UVXY has a median minute volume of 1,145 shares. A market order in a thin product is filled at whatever price is available, and the backtest fill model is a simplification of that. Overnight gaps are another place where the live price differs from the price a rule was written against. The average overnight gap was 0.44% on SPY, 1.78% on TQQQ and 2.53% on UVXY. A stop order placed at a level can fill well beyond its level when the market opens past it.

Each broker also supports a different set of order types and times in force. Alpaca supports limit, market, stop, stop-limit and trailing-stop orders, and also the cls, day, fok, gtc, ioc and opg time-in-force values. Webull supports limit, market, stop and stop-limit with day and gtc. Schwab adds limit-on-close and market-on-close. A strategy that relies on an order type the broker does not offer behaves differently live than in a backtest, which is a bug class of its own. Webull's API has no paper environment, and Schwab has none either, so those two connections go straight to live money. Alpaca is the broker in the list with a paper account, and DeployQuant's own paper mode runs on the live market data feed with no broker at all.

The kill switch is the control for the cases nothing anticipated. The kill switch entry says the first move when behavior surprises you is stopping new orders, and debugging comes afterward. One switch pauses a single strategy. Another pauses every strategy on a broker connection. Neither one repairs a bad order that already filled, so the controls reduce the damage and do not remove it.

Risk 4: regime change

A strategy is built from one market. The test window here runs 5.74 years, and its major features are the 2021 rally, the 2022 bear market, the recovery through 2023 and 2024, and a selloff and rebound in 2025 and 2026. A rule that fits those years has seen one bear market.

The data shows how much the asset itself changes the rules' meaning. SPY closed above its 200-day average on 77.99% of sessions and crossed it 30 times. QQQ was above it on 75.18% of sessions with 20 crossings. TLT was above it on 35.18% of sessions and crossed it 95 times. A trend rule that works on a fund that spends most of its time above the average meets a different market on a fund that crosses back and forth every few weeks. TLT's buy-and-hold CAGR was -8.64% on the price series, with a maximum drawdown of 44.06% that had not recovered by 2026-10-02. For most of 2021 to 2026 a bond fund did not behave like the safe haven that an older sample would suggest.

The 2022 calendar year makes the point on one page. SPY returned -18.16%, QQQ returned -32.39% and TQQQ returned -79.07%. TLT returned -31.21% in the same year. Over the whole window the correlation between TLT and SPY was 0.08, so a portfolio built on the idea that the two move independently looked diversified for five years and was not diversified in 2022. TLT fell in the year when stocks fell, and the strategy designer who tested only on calmer years would have had no way to see it.

Mean-reversion rules show the regime dependence most clearly. After the 14-day RSI closed below 30 on SPY, the median 20-day forward return was 2.86%. The same signal on TLT gave -1.63% and on UVXY gave -5.82%. RSI(2) below 10 on UVXY was followed by a median 20-day return of -10.02%, against a baseline for the fund of -11.36%. The signal worked as buying weakness on a fund that tended to recover and as catching a falling knife on one that kept falling. A strategy that bought every oversold reading on a decaying volatility product was following the fund's structure, not a market pattern.

Regimes also change inside a fund. The lag-1 autocorrelation of daily returns was near zero on every fund in the table: -0.02 on SPY, -0.04 on QQQ and -0.05 on TLT. Short-term returns carried almost no memory of the day before, which is why rules that depend on streaks of momentum or of reversal are fragile. The share of up days was 54.4% on SPY, 49% on TLT and 40.26% on UVXY, and those shares move from year to year.

The practical limit is that no backtest can contain a regime it did not include. The 2022 sell-off is in the sample, and a bear market with different characteristics is not. Using the IWM data as a check, its drawdown from 2021-11-08 recovered only on 2024-11-06, which is a longer stretch under water than SPY's. The same strategy meets different regimes on different funds, and a larger sample of funds is a partial substitute for a longer sample of years.

Risk 5: set-and-forget rot

Automation makes it easy to stop looking. A strategy that trades rarely can sit unattended for months, and the assumptions it was built on can stop holding without any single event to flag it.

The templates in the library show how long a strategy can go without doing anything. The median golden cross had 3 round trips in 5.74 years. The dip buyer had 2. The trend plus trailing stop had 4 and the momentum breakout had 6. A reader checking in monthly on one of those strategies could see no activity for most of a year. Silence from such a rule is expected behavior, and it is also how a broken connection or an expired credential looks from the outside.

The opposite case has its own cost. RSI(2) snapback has a median of 166 round trips and the weekly 7% target has 106. The monthly cycle has 69. These strategies trade often enough that small per-trade costs matter, and the headline run does not charge them. DeployQuant's pages add runs with 5 and 10 basis points of slippage so that the sensitivity can be read directly. A strategy that stopped paying for itself after costs went up, because spreads widened or the fund became less liquid, is a case of rot that the trade count predicts.

Long drawdowns are the other thing that tests attention. Buy-and-hold on SPY spent 488 sessions below a prior peak. QQQ spent 516 sessions, IWM spent 752, TQQQ spent 762 and TLT spent 1,443 sessions under water through the end of the window. An automated strategy that is down for that many sessions invites two bad decisions: switching it off at the bottom, and leaving it on after its premise has gone. Neither is a software failure, and both are the reason a regular review has to be a habit and not a feature.

Some of the rot is mechanical. A broker token expires, an order type is deprecated, a symbol is delisted or changes ticker, a fund is closed. DeployQuant sends Webull order errors on live accounts by email, and the portfolio page shows equity, cash, holdings and each strategy's share, with returns adjusted for deposits so that adding money is never counted as profit. Those are tools for noticing. They do not replace the owner deciding at intervals whether the original reason for the strategy still applies.

Review is easier when the strategy states its own reason. Each trade in the platform's decision log carries the prices and indicator values the strategy saw at that moment, which makes it possible to check whether recent trades look like the ones in the backtest. A strategy whose trades have drifted from the tested pattern is the rotting kind.

How the five risks line up

Oversizing is a decision made once, and it sets the scale of every later loss. Overfitting is a decision made in the research stage and shows up as a gap between the backtest and live results. Execution bugs come from software and are bounded by guardrails such as price bands, dollar caps, dry runs and kill switches. Regime change comes from the market. Set-and-forget rot comes from the owner.

The order matters because the controls are different. A price band cannot help with overfitting, and a backtest cannot help with a fat-fingered limit. Of the five, only the execution risk is mostly addressed by platform design. The other four are addressed by decisions: how large to run, how much to trust a result, what to assume about the next year, and how often to look.

Measured in the window on this site, the cost of getting the first one wrong is the largest. The TQQQ drawdown of 80.77% is the largest in the market data here, ahead of TLT at 42.77% for buy-and-hold and QQQ at 34.23%. The drawdown a strategy can reach is mostly a property of what it holds and how much of it, which is why sizing comes first.

Where to look next

The strategy hubs list each template's rules and its results on 59 funds, which is the quickest way to see how much a rule's outcome depends on the fund. The weekly 7% target and RSI(2) snapback pages show high-turnover rules, and the trend plus trailing stop page shows a rule that trades a handful of times.

Frequently asked questions

What is the biggest risk of automated trading?

Oversizing ranks first on this page, because position size sets how much of the account any bad stretch can reach. Buy-and-hold on TQQQ had an 80.77% maximum drawdown in the window and on SPY 23.99%, so the same signal at the same account share carries very different risk depending on the fund and the size. Overfitting and execution bugs follow.

Can an automated trading bot steal my money?

A broker connection with trade and read permissions only cannot withdraw or transfer money. DeployQuant's connections have those permissions only and can be disconnected at any time. A strategy can still lose money by trading badly, which is the same loss it would cause if you placed the orders yourself.

Can an automated strategy lose my whole account?

It can lose most of it if sized badly on a volatile fund. UVXY buy-and-hold lost 97.84% of its value in the window, ending at $216 from $10,000, and TQQQ fell 80.77% from peak to trough. Dollar caps per order and per position, and a paused strategy, limit how much a single strategy can put at risk.

Is a good backtest enough to trust a strategy?

A backtest answers whether the rules would have worked in one sample, and it does not say whether they will work again. This site's backtests cover 5.74 years with no fees in the headline run, and each page adds 5 and 10 basis point cost runs and parameter variants. A result that depends on one parameter value or collapses with costs is a warning about overfitting.

What controls stop a bad order from reaching my broker?

DeployQuant lists price bands that refuse limit orders priced too far from the market, per-order and per-position dollar caps, a cap on orders per sync, and a dry-run mode that runs the order flow without sending anything. Real money only moves after a typed confirmation, and one switch pauses a strategy or a whole broker connection.

Why does the same rule work on one fund and fail on another?

The fund's behavior decides what the rule means. The 14-day RSI below 30 on SPY was followed by a median 20-day return of 2.86%, while on TLT it was followed by -1.63%. TLT crossed its 200-day average 95 times and SPY 30 times, so trend and reversal rules face different markets on each.

How often should an automated strategy be reviewed?

The data on this site shows why no single interval fits. The golden cross template made a median of 3 round trips in 5.74 years, so it can be silent for months by design, and RSI(2) snapback made 166. Checking that recent trades match the pattern in the backtest, and reading any broker error message, are the two checks the platform's decision log and email alerts support.

Run your first strategy 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.

Terms used here

Position SizingdefinitionOverfittingdefinitionKill SwitchdefinitionPrice Band (Order Guardrail)definition

Related questions

Is it safe to connect my brokerage account to a trading platform?answered

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.