What Is Algo Trading? A Plain Guide for India
Algo trading is trading in which orders are generated by automated rules instead of being typed in by hand. SEBI's own wording, in its circular of 30 March 2012, is short: "Any order that is generated using automated execution logic shall be known as algorithmic trading." In India, retail investors can use it only through a stock broker, within SEBI and stock exchange rules.
Risk note, up front: algo trading automates decisions. It does not make them better. A badly designed rule loses money faster when a computer runs it. This article is education, not investment advice, and it names no strategy, signal or expected return.
What does "algo" actually mean?
An algorithm is a fixed set of steps. In trading, those steps say when to place an order, for which instrument, at what price and in what quantity. Once the rules are written down, software can check them against market data and send the orders without a person clicking each time.
A few terms used throughout this guide:
- Algo: shorthand for an algorithm that generates orders.
- API (Application Programming Interface): in SEBI's footnote, "a set of rules and protocols that allows different software applications to communicate and exchange data with each other." For traders, it is the door through which a program talks to a broker.
- Backtest: running your rules on past data to see what they would have done. It describes the past. It does not predict the future.
- Kill switch: SEBI describes it as "an emergency function and the last level of defence against any Algorithm malfunction" that is expected to halt trading activity automatically when pre-defined conditions are met.
How does algo trading work, step by step?
- Write the rules. Entry, exit, position size and the maximum loss you will accept, in plain words first.
- Turn them into code or a configured tool. This is where a developer, a coding course or a no-code product comes in.
- Test on past data. See how to backtest a trading algorithm without fooling yourself.
- Run it on paper, meaning live prices with no real money. Paper trading vs live trading explains what this stage can and cannot show.
- Connect to a broker's API. Your broker decides what access you get and under what conditions.
- Go live with small limits and monitoring. Cap order size and daily loss, log every order, and keep a way to stop the program quickly.
What are the main types of algo?
| Type | What it does | Main thing to watch |
|---|---|---|
| Rule-based entry and exit | Places orders when conditions you defined are met | Rules that fit past data too closely |
| Order slicing and timing | Splits or times a given order to place it in a planned way | It carries out a decision; it does not make one |
| Black box | The user cannot see the logic | You cannot judge what you cannot see |
SEBI's February 2025 circular uses a different split. It sorts algos into "Execution Algos or White box Algos" where the logic is "disclosed and replicable", and black box algos where "the logic is not known to the user and is not replicable". For black box algos, it says the algo provider must "register as a Research Analyst and maintain a detailed research report for each such algo."
Is algo trading legal in India for individuals?
Yes, through a broker. SEBI's circular of 4 February 2025, "Safer participation of retail investors in Algorithmic trading", says the aim is to let retail investors use algo facilities "with requisite safeguards". Key points from it:
- Brokers are the principal. An algo provider "shall act as its agent" when using the broker's API.
- All algo orders sent through broker APIs must be tagged with a unique identifier provided by the exchange.
- Brokers must not allow open APIs. Access goes through a client-specific API key and a static IP whitelisted by the broker, with OAuth-based and two-factor authentication.
- Algos written by "tech-savvy retail investors themselves" must be registered with the exchange, through the broker, only if they cross the specified orders-per-second threshold.
- Algo providers are not regulated by SEBI, but must be empanelled with the exchanges, and brokers must do due diligence before onboarding them.
The exact thresholds and dates have been set by the exchanges and have moved more than once. Our longer guide, is algo trading legal in India, walks through the NSE standards and the timeline, with the circular numbers.
What controls does the broker apply to algo orders?
SEBI's 2012 circular lists minimum risk checks that a broker must have before releasing algo orders. They include a price check against the exchange's price bands, a quantity check, an order value check, and an automated execution check. That last one says an algo "shall account for all executed, un-executed and unconfirmed orders" before releasing more, and the algo system should have pre-defined parameters for automatic stoppage if execution is "leading to a loop or a runaway situation".
Your own program sits behind these checks, so your code must handle a rejected order safely. For one broker's practical limits, see Kite Connect API for algo trading: what to check first.
What are the risks?
- Rule risk: the logic itself is wrong, or only worked on one period of data.
- Technical risk: a lost connection, a bad data feed or an expired login at the wrong moment.
- Runaway risk: a loop that sends orders repeatedly. This is why the controls above exist.
- Cost risk: brokerage, taxes and slippage reduce results, and simple backtests often leave them out.
- Vendor risk: a seller promising returns. SEBI cautioned investors in June 2022 against unregulated algo platforms and barred brokers from associating with platforms that advertise an algorithm's past or expected returns.
- Credential risk: anyone with your API key can place orders in your account. Never share it.
A short checklist before you try it
- Can you state your rules in two sentences, with the maximum loss you accept?
- Has your broker confirmed in writing that you can use its API, and under what conditions?
- Did you test on past data, then on paper, before using real money?
- Do you have an order size cap, a daily loss cap and a kill switch you can reach?
- If a vendor is involved, is it empanelled with the exchanges, and does it avoid promising returns?
Frequently asked questions
Is algo trading the same as high-frequency trading? No. Algo trading covers any order generated by automated logic, including a program that sends one order a day. High-frequency trading is a narrow, speed-focused subset. SEBI's definition does not mention speed.
Do I need to know coding? Not always. Some people write their own code, some use a broker or vendor tool, and some work with a developer. Whichever route you pick, you are still responsible for understanding the rules your program follows.
Can algo trading guarantee profits? No. Nothing in the SEBI circulars cited here suggests it can, and SEBI has acted against platforms advertising returns. Treat any guarantee as a warning.
Does a backtest tell me what will happen next? No. It shows how the rules behaved on past data. Markets change, and costs and fills in live trading differ from a simulation.
Where do I start? Start with the broker. Ask whether it offers API access to retail clients and what it requires. Then read the sources below.
Where a custom build fits
Some traders want software built to their own written rules, with backtesting and options analytics, connected to their broker's API. The home page describes the kinds of systems built, and the FAQ answers common questions. A developer can make your rules explicit and run them consistently. A developer cannot make a strategy profitable.
Limits of this article
It was written from the SEBI circulars listed below. It does not cover later circulars, exchange standards in detail, taxation, or your broker's terms. Read the current rules from SEBI, the exchanges and your broker before you trade.
Sources
- SEBI, circular CIR/MRD/DP/09/2012, "Broad Guidelines on Algorithmic Trading", 30 March 2012 (definition in paragraph 3; broker risk controls in paragraph 6): https://www.sebi.gov.in/sebi_data/attachdocs/1333109064175.pdf
- SEBI, circular SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/0000013, "Safer participation of retail investors in Algorithmic trading", 4 February 2025: https://www.sebi.gov.in/sebi_data/attachdocs/feb-2025/1738665456458.pdf
- SEBI, press release PR No. 20/2022, "Caution to investors against dealing with unregulated platforms offering algorithmic trading", 10 June 2022: https://www.sebi.gov.in/media/press-releases/jun-2022/caution-to-investors-against-dealing-with-unregulated-platforms-offering-algorithmic-trading_59672.html
- SEBI, circular SEBI/HO/MIRSD/DOP/P/CIR/2022/117, 2 September 2022: https://www.sebi.gov.in/legal/circulars/sep-2022/performance-return-claimed-by-unregulated-platforms-offering-algorithmic-strategies-for-trading_62628.html
This article is general information, not legal or financial advice. Trading involves risk of loss.