Skip to content

Common Algo Trading Mistakes and How to Avoid Them

From ignoring costs to overfitting and skipping risk limits, here are the most common algo trading mistakes and simple ways to avoid each one.

Common Algo Trading Mistakes and How to Avoid Them - Cirrus blog thumbnail
On this page
  1. 1. Ignoring costs
  2. 2. Overfitting to the past
  3. 3. Using bad data
  4. 4. Skipping paper trading
  5. 5. No risk limits
  6. 6. Sizing positions by feel
  7. 7. Changing rules mid-test
  8. 8. Setting it and forgetting it
  9. Four testing checks before you trust a result
  10. India-specific points: STT, F&O and SEBI's algo rules
  11. Avoiding the mistakes on Cirrus
  12. Frequently Asked Questions
  13. 1. What is the most common mistake in algo trading?
  14. 2. How do I avoid overfitting my strategy?
  15. 3. Do I need risk limits if my strategy is tested?
  16. 4. Is it safe to leave an algo running all day without watching it?
  17. 5. Why does my strategy work in the backtest but fail live?
  18. 6. Should beginners start with algo trading?
  19. At a Glance

Automation does not remove mistakes. It repeats them faster. A rule that loses a little on every trade will lose that little hundreds of times without a single complaint, and a missing safety limit will let a small error grow into a large one before anyone looks. The good news is that most algo trading mistakes are common and avoidable. Here are the ones we see most often, and what to do about each. If you are still deciding whether automation suits you, start with what algo trading is.

1. Ignoring costs

A backtest that leaves out brokerage, taxes and slippage describes trades that cannot exist in real life. Small costs repeat on every trade, so they hit active strategies hardest. The fix: include every charge and a realistic slippage setting in each test. Our post Why Most Trading Ideas Die After Costs shows how fast charges eat into a thin edge.

2. Overfitting to the past

If you keep adjusting settings until the backtest looks perfect, you are probably fitting noise rather than finding a pattern. The result looks great on old data and disappoints on new data. The fix: keep rules simple, hold back part of the data that you did not use while building the strategy, and test across different market conditions.

3. Using bad data

Missing candles, wrong prices and unadjusted splits can create profits that never existed. The fix: check the data before trusting the result. We explain what to look for in Why Trading Algorithms Need Clean Historical Data.

4. Skipping paper trading

Going straight from a backtest to real money means the first live trades are also your first real test of the rules in current conditions. The fix: run the strategy on paper with live prices, compare the results with the backtest, and go live only when they roughly agree.

5. No risk limits

Without limits, one bug, one fast market or one bad day can do serious damage. The fix: set a maximum order quantity, trading time windows and a daily loss limit before you automate anything. Safety guards for automated orders explains each of these, and you can also set a stop-loss and target automatically on every alert.

6. Sizing positions by feel

Trading bigger after wins and smaller after losses, or picking a size because it feels right, makes results hard to compare and losses hard to control. The fix: decide your size by the amount you are willing to lose per trade. See position sizing by risk for how to do it.

7. Changing rules mid-test

If you change the rules every time a trade loses, you will never know whether the strategy works. The fix: decide the rules in advance, run the test to the end, and change one thing at a time afterwards.

8. Setting it and forgetting it

Markets change, brokers go down and sessions expire. An automated strategy still needs someone to watch it. The fix: check your strategies daily, keep a plan for broker problems, and know the auto square-off timings that apply to your orders. Keeping a journal also helps; here is how to keep a trading journal you will actually use.

Four testing checks before you trust a result

Four flaws make a test look better than it is. Overfitting tunes the rules to past noise. Look-ahead bias lets a rule use information that was not yet available, such as a candle's close before the candle ended. Survivorship bias tests only on stocks that still exist, hiding the ones that were delisted. And without an out-of-sample test, the same data builds and judges the rules. Check for all four before you believe a result.

India-specific points: STT, F&O and SEBI's algo rules

Two Indian details are easy to miss. First, costs: from 1 April 2026, STT is 0.15% of the premium on option sales and 0.05% of the traded value on futures sales, according to an NSE circular dated 31 March 2026, and it is charged on the sell side. Second, rules: SEBI's circular of 4 February 2025 on safer participation of retail investors in algorithmic trading, in effect from 1 April 2026 according to NSE, expects strategies to run through the broker's systems. Also model lot size, expiry and margin, because futures and options trade in exchange-set lots.

Avoiding the mistakes on Cirrus

On Cirrus, a backtest can include Indian charges and a slippage setting, you can read every simulated trade afterwards, and you can run the same strategy on paper accounts with live prices before using real money.

Want to test your idea the careful way? Try backtesting on Cirrus.

Frequently Asked Questions

1. What is the most common mistake in algo trading?

The most common mistake is trusting a backtest that ignores real-world conditions. That usually means leaving out brokerage, taxes and slippage, assuming perfect fills, or using data with gaps. The strategy looks profitable on paper but loses money live, because costs repeat on every trade. Close behind are overfitting, where rules are tuned too closely to history, and missing risk limits. The remedy is the same in each case: test with realistic assumptions, confirm on paper with live prices, and set limits before you go live. Testing with honest assumptions is the cheapest way to avoid it.

2. How do I avoid overfitting my strategy?

Keep the rules simple and avoid tuning many settings to fit past data. Hold back a portion of the history that you do not touch while building the strategy, and test on it only at the end. Check that the idea works across different market conditions, not just one good period. If a tiny change to a setting makes results swing wildly, the strategy is probably fragile. Out-of-sample and walk-forward testing reduce the risk, although they do not remove it completely. Simple rules with few settings tend to hold up better than complicated ones.

3. Do I need risk limits if my strategy is tested?

Yes. A tested strategy can still hit a bug, a fast market or a day unlike anything in your data. Limits are the safety net for those moments. Useful ones include a maximum order quantity, trading time windows and a daily loss limit, plus a stop-loss on each trade. They do not make a strategy profitable, but they stop a bad day from becoming a disaster. Set them before you automate, not after the first problem appears. Think of them as insurance that you hope never to use but are glad to have when something unexpected happens.

4. Is it safe to leave an algo running all day without watching it?

It is safer with checks in place, but it should not be fully unattended. Markets change, brokers can go down, sessions can expire and orders can be rejected. Many traders check their strategies at the start and end of each session, use daily loss limits and have a plan for broker downtime. Know your broker's auto square-off timings as well, since open intraday positions can be closed automatically. Start small and watch closely while you learn how the strategy behaves live. Treat automation as a helper that still needs your attention, not as a replacement for it.

5. Why does my strategy work in the backtest but fail live?

Common reasons are missing costs, unrealistic fills, poor data and overfitting. Backtests often assume every order fills at the ideal price, while live orders face slippage, partial fills and rejections. Data errors can create profits that never existed, and rules tuned too closely to history may only describe the past. To find the cause, rerun the test with every charge and realistic slippage, check it on data you did not use while building the rules, and compare with paper trading. Fix one cause at a time so you can see what actually made the difference.

6. Should beginners start with algo trading?

Beginners can start, but they should go slowly and learn the basics first. Understand how orders, charges and risk work, write simple rules, test them with realistic assumptions, and practise on paper before using real money. Start with small size and firm limits, and avoid complicated strategies you cannot explain. Automation magnifies both good habits and bad ones, so the sensible path is to build the good habits first. If an idea cannot be written as plain rules yet, it is not ready to automate. Patience at the start usually saves money later.

At a Glance

TopicKey point
Ignoring costsInclude brokerage, taxes and slippage in every test
OverfittingKeep rules simple and test on data you did not use while building them
Bad dataCheck for gaps, wrong prices and unadjusted splits
Skipping paper tradingConfirm with live prices before using real money
No risk limitsSet order size, time window and daily loss limits first
Sizing by feelSize each trade by the amount you are willing to lose
Changing rules mid-testDecide rules in advance and change one thing at a time
Set and forgetCheck strategies daily and plan for broker problems
Testing checksOverfitting, look-ahead bias, survivorship bias and out-of-sample testing
India specificsSTT rates by date, F&O lot size and expiry, and SEBI's algo-trading framework

Disclaimer: This blog is for education only and is not investment advice. Backtest results do not guarantee future returns. Cirrus is a technology platform and does not give investment advice.

All guides