Most guides to algo trading in India were written before the rules changed. They tell you algo trading is "expected to be regulated soon", quote broker API prices that are three years stale, and describe a market where NIFTY still has a Thursday expiry and a lot size of 75. All three of those facts are now wrong.
Since 1 April 2026, retail algorithmic trading in India runs under a framework that is fully in force, not pending. Your orders are tagged whether you asked for it or not. The platform you pick has to be on an exchange list. If you write your own code, you need a static IP and you own the hosting. And as of 1 April 2026 the Securities Transaction Tax on selling an index option is 50% higher than it was the year before, which quietly changes whether a high-frequency strategy is viable at all.
This guide covers what actually matters in practice: how the system works end to end, which of the four routes into automation you are on, what the whole thing costs in rupees, the capital and margin arithmetic, how to backtest without fooling yourself, the tax treatment, and an honest account of what automation does and does not fix. We run a proprietary NIFTY and SENSEX expiry-day option-selling desk out of Delhi, founded in 2006 and automated since 2018. Several of the numbers below come from our own 163-session study of real intraday option-chain data, not from a textbook.
One thing up front, because it governs everything else. EliteAlgo builds and runs analytical and execution software. It is not investment advice, and we hold no SEBI registration as an adviser or research analyst. Nothing here is a recommendation to buy or sell anything. Automation is a way to execute a decision consistently; it is not a way to be right.
The Short Version
If you read nothing else, read this table. Each row links to the section that explains it.
| Question | The honest answer in 2026 |
|---|---|
| Is algo trading legal in India? | Yes, and it always has been. Since 1 April 2026 it is also fully regulated for retail, under SEBI's February 2025 framework. |
| Do I need to register with SEBI? | No. An individual trading their own money does not register with SEBI. Your strategy may need exchange registration through your broker — only if it crosses 10 orders per second. |
| Do I need to code? | No. Three of the four routes in need zero code. Coding buys you control, not an edge. |
| Minimum realistic capital | Around Rs 1.5-2 lakh to sell one NIFTY option lot and survive a bad week. Below Rs 1 lakh, margin calls decide your exits for you. |
| Running cost | Roughly Rs 500-3,500 a month for a self-coded setup, before transaction costs. Broker-native no-code tools can be free. |
| Biggest hidden cost | Transaction costs. SEBI found individual F&O traders spent an average of Rs 26,000 each on them in FY24 — and STT on option sales rose again on 1 April 2026. |
| Does it make money? | Automation is not an edge. SEBI's own data shows 93% of individual F&O traders lost money FY22-FY24 — while 96-97% of proprietary and FPI profits came from algorithms. Same tool, opposite outcomes. |
| What breaks first | Your backtest's fill assumptions. On our own expiry-day book, realistic time-of-day slippage cut reported profit by roughly a quarter. |
What Algo Trading Actually Means in India (And What It Does Not)
Algorithmic trading is placing orders from a set of pre-written rules instead of from a judgement call made in the moment. That is the whole idea. The rules can be as plain as "sell a NIFTY straddle at 09:16 on expiry day and buy it back at 15:20" or as involved as a model that re-prices a dozen instruments every second. The defining feature is not complexity. It is that the decision was made before the market opened, and the machine does not get a vote.
Four words get used as if they mean the same thing. They do not, and in India the difference now has legal weight.
| Term | What it means | Does it apply to you? |
|---|---|---|
| Algorithmic trading | Orders generated by rules or a model. Covers everything from a one-line condition to a quant book. | Yes, if any order of yours is generated by code. |
| Automated / API trading | Orders reaching the exchange through a broker's API rather than the broker's own screen. | Under the exchange rules, every order received via API is treated as an algo order and must be tagged. There is no "I just placed a manual order through code" exemption. |
| High-frequency trading (HFT) | Latency-sensitive strategies measured in microseconds, usually co-located inside the exchange data centre. | Almost certainly not. HFT is a capital and infrastructure business, not a retail one. |
| Copy trading / signal following | Mirroring someone else's trades, automatically or by hand. | Different animal with different rules. If you cannot see the logic, you are buying research, and whoever sells it has obligations under SEBI's black-box provisions. |
And three things algo trading is not, however it is marketed:
- It is not artificial intelligence by default. The overwhelming majority of live retail algos in India are if-then rules on price, time, open interest or an indicator. That is fine. "AI-powered" on a landing page usually means a parameter was fitted to history.
- It is not a strategy. Automation executes a strategy. A bad strategy automated is a bad strategy that now loses money faster and without asking.
- It is not passive income. Someone has to watch the box, reconcile the fills, handle a broker API outage mid-session and decide when a strategy has stopped working. That someone is you.
Is Algo Trading Legal in India?
Yes. Algorithmic trading has been legal in India since SEBI permitted direct market access in 2008, and the first dedicated algo guidelines arrived with circular CIR/MRD/DP/09/2012 in March 2012. Nobody needs special permission to trade their own money using rules written in code.
What changed is that retail algo trading is now specifically regulated rather than loosely tolerated. SEBI's circular of 4 February 2025, Safer participation of retail investors in Algorithmic trading (SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/0000013), built a framework around three ideas: the broker is responsible, every algo order is traceable, and anyone selling you a strategy you cannot inspect is selling research and must be registered accordingly. It is six pages. Read it rather than a summary of it, including this one.
The go-live date slipped twice from an original 1 August 2025. A SEBI circular of 30 September 2025 (SEBI/HO/MIRSD/MIRSD-PoD/P/CIR/2025/132) set a milestone glide path instead — brokers who were ready could go live from 1 October 2025, the rest had to clear registration and mock-session milestones by 3 January 2026, and brokers who missed them were barred from onboarding new retail API algo clients from 5 January 2026. Since 1 April 2026 the framework applies to all stock brokers.
That last date is the single most common error in content on this subject. There is no pending phase left. If an article tells you the retail algo rules are "expected to come into force", it was written before April 2026 and has not been updated.
Three things remain plainly not allowed, and they are worth naming because they are exactly what dubious marketing does:
- Promising returns. No algo provider, platform or firm may promise, guarantee or imply assured returns from a strategy. If a pitch shows you a monthly percentage as an expectation, walk away.
- Selling a black box without registering. If you cannot see and replicate the logic, SEBI treats the product as research. The provider must be a registered Research Analyst with a documented research report for that specific algo.
- Running a strategy business off one retail registration. A self-coded algo registered through your broker may be used only for you and your immediate family — self, spouse, dependent children and dependent parents. Running your neighbours' money on it is not a grey area.
Who Regulates What: SEBI, the Exchanges and the Layer Underneath
People say "SEBI rules" when they usually mean an exchange circular. Knowing which body controls what saves you a lot of time when you are trying to find an answer.
| Body | What it controls | Where its answers live |
|---|---|---|
| SEBI (Securities and Exchange Board of India) | The principle-level framework: who is responsible, what must be disclosed, who must register as a Research Analyst, what brokers may and may not permit. | sebi.gov.in — Legal > Circulars |
| NSE and BSE | The operational detail: the orders-per-second threshold, the tagging format, empanelment of algo providers, registration of strategies, which order types algos may use, mock sessions. | nseindia.com circulars and bseindia.com notices |
| Your broker | Your actual day-to-day limits: API keys, whitelisted IP, risk limits, which empanelled providers it will connect you to, square-off policy. | The broker's own API docs and algo policy page |
| Clearing corporations (NSE Clearing, Indian Clearing Corporation) | Margin. SPAN and exposure requirements, intraday margin calls, what your position actually blocks. | Your broker's margin calculator, refreshed daily |
| Depositories (NSDL, CDSL) | Holdings and pledging — relevant if you fund margin by pledging securities instead of cash. | Your broker's pledge flow |
Practical consequence: when something about your algo setup does not work, the order of enquiry is almost always broker first, exchange circular second, SEBI circular last. SEBI set the principle; your broker implemented it, usually more conservatively than the rule required.
SEBI's Retail Algo Framework: Where It Actually Stands Now
We maintain a dedicated, detailed page on this — see SEBI algo trading regulations in India for the circular-by-circular account, the compliance checklist and the exact tagging format. What follows is the working summary you need to make decisions. The operational detail comes from the exchanges' implementation standards rather than the SEBI circular itself — principally NSE circular NSE/INVG/69255 of 22 July 2025, its September 2025 corrigendum, and NSE's retail algo FAQ, with BSE publishing its own parallel notices.
Every API order is an algo order
Under the exchange operational modalities, all orders received from a client via API are treated as algo orders and require tagging. What varies by size is the registration requirement, not the tagging. Below the threshold your orders carry a standardised tag. Above it, the algo itself must be registered with the exchange through your broker.
The threshold is 10 orders per second
SEBI left the number to the Brokers' Industry Standards Forum, which set the Threshold Order Per Second (TOPS) at 10 orders per second, per exchange. Exchanges may revise it with notice.
For the kind of trading this site is about, that is a large amount of headroom. A strangle entry is two orders. A four-leg iron condor is four. A basket of several strategies firing on the same minute still does not approach ten inside a single second. So most genuine retail option-selling automation sits comfortably under TOPS and needs no exchange registration of the strategy itself — while still being tagged and traceable like everything else.
The traders who do hit the threshold are running order-slicing logic, quote-chasing modify loops or scalping systems that re-price constantly. Count your modifies — a modify is an order. A loop that nudges a resting limit price every 200 milliseconds across five instruments is at 25 orders per second and nobody told you.
Static IP: only one route needs yours
This causes more confusion than anything else in the framework, because the answer genuinely depends on how you connect.
- You write your own code and call the broker API yourself. You must give your broker a static IP and host your algo behind it. This is the "tech-savvy investor" route in the exchange FAQs.
- You use an empanelled provider's platform. The static IP on record is the broker's server IP, not yours. You arrange nothing.
- You use the broker's own no-code tool. Same — nothing for you to do.
If you are in the first group, there is a practical trap nobody warns you about: home broadband is almost always a dynamic IP. The moment your ISP renews the lease and hands you a different address, your whitelisted IP stops matching and your order flow dies — not with a clean compliance error, but with authentication failures that look exactly like a broken API key. A fixed-IP VPS or an ISP static plan is the difference between an algo that survives a router reboot and one that silently stops trading mid-session.
White box, black box, and why it matters to the buyer
SEBI splits algos in two. A white box (or execution) algo has logic that is disclosed and replicable — you can read it and reproduce the result. A black box algo has logic the user does not know and cannot replicate.
If you are buying a strategy, this is the question to lead with. A black-box provider must register as a Research Analyst and maintain a detailed research report for each algo. And any change to the logic of a black box means registering it afresh as a new algo with a new report — so a vendor who quietly "tunes" a live black-box product between sessions is not operating within the framework.
Market orders are out
Easy to miss, genuinely disruptive. Algo orders with order type Market are not permitted, and in the commodity segment IOC and market orders may not be placed algorithmically.
A great many retail option-selling scripts exit at market, because it is the simplest way to guarantee you are out. That assumption now needs rework. The usual replacement is a limit order priced aggressively through the touch, which behaves almost identically in a liquid NIFTY or SENSEX option — but your code has to handle the case where it does not fill. That is real engineering, not a config change, and it is the most common reason a working script stops being compliant.
Check the provider against the exchange list, not its own website
Brokers may deal only with empanelled algo providers, and NSE publishes the list of empanelled algo providers on its own site. Empanelment covers background, infrastructure and systems, including a self-declaration of any cyber or adverse technical incident in the previous three years. Through 2026 the exchange has been converting provisional empanelments to final ones — NSE's 22 September 2026 circular confirmed final empanelment for AlgoBulls Technologies, Quantiply Technologies, Simply Algo Fintech, Stratzy Fintech and Modern Algos, with others added since.
This is now a hard filter that sits above features and pricing. A platform not on that list cannot route your orders through an Indian broker's API, however good its backtester looks.
And be clear what empanelment is not. SEBI's own circular says algo providers are not regulated by SEBI; empanelment exists for oversight and traceability. An empanelled provider has been vetted on background and systems — not on whether its strategies make money. Nothing in this framework vouches for performance, and no circular will protect you from a strategy that was curve-fitted to a backtest.
The Four Routes Into Algo Trading in India — Pick Yours First
Almost every other answer depends on this choice, so make it consciously rather than drifting into one. Most beginners should start at route 1 and move only when a specific limitation bites.
| Route | What it is | Code? | Static IP? | Typical monthly cost | Good when | |
|---|---|---|---|---|---|---|
| 1 | Broker-native no-code | A strategy builder inside your broker's own stack — Zerodha Streak, Angel One's and Upstox's in-house tools. | No | No | Free to low | You are learning, or your strategy is simple enough to express in the builder. Start here. |
| 2 | Empanelled third-party platform | A provider on the exchange list, hosted on the broker's servers — Tradetron, AlgoTest, Quantman, AlgoBulls and similar. | Usually no | No | Low to mid subscription | You need multi-leg option logic, better backtesting or a strategy marketplace, and you do not want to maintain code. |
| 3 | Self-coded via broker API | Your own Python or C++ talking to Kite Connect, SmartAPI, Upstox API, Fyers, Dhan and so on. | Yes | Yes | API fee + hosting | You need logic no builder can express, or you want full control of fills and risk. Also the most work by a wide margin. |
| 4 | Managed desk / prop software | A firm runs the research and the execution stack; you understand what it does and keep control of the account. | No | No | Engagement-dependent | You want systematic execution without building an engineering function. Insist on white-box logic. |
Two warnings on route 3. First, the static-IP requirement is not optional and a home connection will not satisfy it. Second, writing the strategy is maybe a fifth of the work — the rest is reconnect logic, order-state reconciliation, partial fills, a kill switch, logging you can audit afterwards, and what the system does when the broker API returns a 502 at 15:10 with four open legs.
If you are weighing specific platforms, we keep the comparisons current and separate from this guide: the best algo trading software in India for paid platforms, the free and freemium options, and head-to-heads like Tradetron vs AlgoTest vs Quantman.
What You Actually Need Before Your First Automated Order
In order. Each step gates the next, and people routinely discover step 4 after they have already written the strategy.
- A trading and demat account with a broker whose API or algo tooling you intend to use. Not all brokers expose the same things. Check before you open the account, not after.
- F&O segment activation. This is a separate step and it needs income proof — a salary slip, Form 16, an ITR acknowledgement or a six-month bank statement. Brokers reject vague submissions routinely, and this is the most common reason a first algo cannot place its first trade.
- Margin funded and settled. Options selling blocks SPAN plus exposure margin upfront. Transfers need to be settled, not in flight.
- Your route chosen and its prerequisite in place. Route 3 means a static IP registered with your broker and a host behind it before you build anything else. Test that order flow survives a reboot of the box.
- API credentials and the subscription active. Separate from the trading account, with its own billing cycle.
- Historical data you trust. For options this is the real constraint — see the backtesting section below.
- A paper-trading period you actually honour. Thirty sessions minimum, with the same logs and the same discipline you would run live. See paper trading an option-selling algo for how to do this so the results mean something.
- A written risk policy. Daily loss limit, maximum open lots, what trips the kill switch, who turns it back on and under what conditions. Written down before the first live order, because you will not write it fairly afterwards.
The Real Cost Stack: What Running an Algo Costs in India
Costs come in two layers, and most people only count the first.
Layer one: the subscriptions
| Item | What it costs | Notes |
|---|---|---|
| Zerodha Kite Connect | Personal tier free; Connect Rs 500/month | Connect includes real-time WebSocket streaming and historical candles. This is much cheaper than it used to be — older articles still quote Rs 2,000/month plus a separate historical-data add-on. Verify on Zerodha's API page before you budget. |
| Other broker APIs (Angel One SmartAPI, Upstox, Fyers, Dhan, Alice Blue) | Free to low | Several are free with the trading account. Pricing moves; check the broker's own page on the day rather than trusting any comparison article, this one included. |
| No-code builders and platforms | Free tier to mid-tier subscription | Broker-native tools often have a usable free tier. Third-party platforms generally price by strategy count, deployment count or credits. Several changed model during 2026, so a figure in an article is a starting point for your own check, not a quote. |
| Static IP or fixed-IP VPS | A few hundred to a couple of thousand rupees a month | Route 3 only. A small India-region VPS is the usual answer; an ISP static add-on is the other. Price it before you commit to self-coding. |
| Historical options data | Free (limited) to substantial | Clean minute-level option-chain history with correct expiry handling is the expensive part of serious backtesting. Platform-bundled data is the cheap route; a paid vendor feed is the honest one. |
Layer two: the transaction costs, which decide everything
This is where strategies die. SEBI's own study found individual F&O traders spent an average of Rs 26,000 per person on transaction costs in FY24, and about Rs 50,000 crore collectively over FY22-FY24 — 51% of it brokerage and 20% exchange fees.
And the biggest line item got more expensive this year. Budget 2026 raised the Securities Transaction Tax with effect from 1 April 2026:
| Charge | Rate on index options | Rate on index futures |
|---|---|---|
| STT (from 1 Apr 2026) | 0.15% of premium, on sale (was 0.10%) | 0.05% of traded value, on sale (was 0.02%) |
| STT on exercised options | 0.15% of intrinsic value (was 0.125%) | — |
| Exchange transaction charges | ~0.0355% of premium (NSE), ~0.0325% (BSE) | ~0.0018% of traded value (NSE) |
| SEBI turnover fee | Rs 10 per crore | Rs 10 per crore |
| GST | 18% on brokerage + transaction charges + SEBI fee | Same |
| Stamp duty | 0.003% on the buy side | 0.002% on the buy side |
| Brokerage | Typically a flat Rs 20 or less per executed order at discount brokers | Flat or 0.03%, whichever is lower |
Two things follow, and they are the whole reason this table is in a beginner's guide.
STT is charged on the sell side of an option, on the full premium. For an option seller, the sell leg is the opening trade. So a short strangle pays STT at entry on the premium it collects, regardless of how the trade ends. A 50% increase in that rate is a direct, unavoidable hit to every premium-selling strategy's net result, and it is not recoverable by being cleverer.
Flat per-order brokerage punishes order count, not trade size. At Rs 20 per executed order, a strategy that enters and exits four legs pays Rs 160 in brokerage per round trip before anything else. Run that twice a day and you are at roughly Rs 6,500 a month in brokerage alone on one lot. This is why order-count discipline matters more in Indian retail algo trading than raw speed, and why slicing a small order into pieces is usually self-harm.
The practical rule: put real, current costs into your backtest before you look at a single equity curve. A strategy showing 20% gross is a very different proposition at 6% net, and plenty of strategies that look fine gross are negative net. We treat this as a first-class problem, not a footnote — see the honest disadvantages of algo trading.
Capital, Lot Sizes and Margin: The Arithmetic Nobody Shows You
"How much do I need to start algo trading in India?" is usually answered with a round number and no working. Here is the working, for index options, which is where most Indian retail automation actually happens.
Current contract specifications matter, and they changed recently. Following SEBI's October 2024 derivatives measures and the expiry-day rationalisation that followed, there is now one weekly expiry per exchange, and lot sizes were revised with effect from the January 2026 contracts:
| Index | Lot size | Weekly expiry | Approx. contract value |
|---|---|---|---|
| NIFTY 50 (NSE) | 65 (was 75) | Tuesday | ~Rs 14.7 lakh |
| SENSEX (BSE) | 20 (was 10) | Thursday | ~Rs 14.6 lakh |
| BANK NIFTY | 30 | No weekly expiry — monthly only | Varies |
Bank Nifty's weekly expiry is gone. If a guide still describes a Thursday NIFTY weekly expiry or a weekly Bank Nifty strategy, it predates these changes and every backtest built on that assumption needs re-running. We cover the sizing consequences in NIFTY lot size and position sizing.
Margin. Selling an option blocks SPAN plus exposure margin upfront, because the loss is theoretically unlimited. In normal volatility, one short NIFTY option leg typically blocks somewhere in the region of Rs 1.2-1.35 lakh, and a two-leg short strangle broadly Rs 1-1.5 lakh once the offsetting benefit is applied. These numbers move with volatility and with your broker's own add-ons. Never budget from an article — including this one. Run your broker's SPAN calculator on the day, at the strikes you intend to trade.
So the honest capital answer, for one NIFTY option lot:
- Margin for the position: roughly Rs 1-1.5 lakh.
- Buffer for intraday margin moves and a losing streak: at least as much again. A position sized to your exact margin requirement gets squared off by your broker's risk system on the first adverse move, which means the market no longer decides your exits — your funding does.
- A realistic floor: about Rs 1.5-2 lakh to run one lot properly. Below roughly Rs 1 lakh you are not running a strategy, you are running a margin call with extra steps.
It is worth being blunt about a figure that circulates widely: several popular beginner guides say you can start algo trading in India with Rs 10,000 to Rs 25,000. For index options that is not a small start, it is arithmetically impossible — one lot's margin is several times that. The figure is only meaningful for cash-equity or small futures strategies, and it is quoted without that qualification often enough to get people hurt. Check the margin on the actual instrument you intend to automate before you believe any capital figure, including ours.
Also note what SEBI's leverage rules mean here: there is no intraday "extra leverage" on F&O any more. Peak-margin rules require the full upfront margin to be collected, so the days of a broker offering 10x intraday exposure on option writing are over. Budget for the real margin.
Strategy Types That Actually Get Run in Indian Markets
Most lists of algo strategies are copied from American textbooks and include things no Indian retail trader can run. This one is sorted by whether you can actually do it with a retail account. For strategy-level detail, see our algo trading strategies hub.
| Strategy | How it works | Retail-viable in India? | The honest catch |
|---|---|---|---|
| Option selling / premium capture | Sell straddles, strangles or spreads and collect time decay, usually intraday on expiry day. | Yes — the most common. | Undefined risk if unhedged, heavy margin, and STT is charged on your opening leg. A quiet 40 days then one day that erases them. |
| Trend following | Moving-average crossovers, MACD, breakout and channel systems on index or stock futures. | Yes | Long stretches of losses in range-bound markets are normal, not a bug. Needs the temperament to hold through them, which is exactly what automation does not give you. |
| Mean reversion | Fade moves that stretch too far from a reference level, then exit on reversion. | Yes | Works until it does not. The losing trade is the one that keeps going, and position sizing is the whole game. |
| Execution algos (VWAP, TWAP, slicing) | Break a large order into pieces to reduce market impact. | Technically yes, usually pointless | These exist to hide size. Retail does not have size. Slicing a two-lot order multiplies flat per-order brokerage and can push you toward the TOPS threshold for no benefit. |
| Cash-futures and calendar arbitrage | Capture the spread between related instruments. | Marginal | The spread is usually thinner than your round-trip cost after the April 2026 STT change. Do the cost arithmetic first; most retail "arbitrage" is negative net. |
| Statistical arbitrage / pairs | Trade the relationship between correlated instruments. | Possible, hard | Needs clean data, real statistics and a view on when the relationship has broken rather than stretched. |
| Market making | Quote both sides continuously, earn the spread. | No | Needs co-location, exchange schemes and institutional infrastructure. Any retail pitch describing this is describing something else. |
| Latency arbitrage / HFT | Exploit microsecond price differences. | No | A capital-expenditure business. Also the population SEBI's co-location reforms were aimed at. |
If you are starting out, the pragmatic observation is that the first three rows cover almost everything a retail account can genuinely do, and option selling is where most of the Indian retail automation actually sits. We write about that lane specifically: NIFTY option selling for beginners and short straddle vs short strangle.
Backtesting in India: Five Things That Quietly Break Your Numbers
A backtest is a hypothesis test, not a forecast. Done honestly it tells you whether an idea had an edge in a sample. Done the usual way it tells you what you wanted to hear. Five India-specific failure modes, in the order they cost people money.
1. Fill assumptions, especially on expiry day
Most engines model a single average spread for the whole session. An Indian expiry day is not a flat session. Premium decay on NIFTY and SENSEX options is non-linear, liquidity thins into the close, and spreads widen exactly when your exit logic fires.
We measured this on our own book. Strategies that looked profitable on a flat-fill backtest gave back 18-30% of reported P&L once re-run with time-of-day slippage bands. On a strategy backtesting at Rs 4,200 average day profit, that is a swing of Rs 760-1,260 a day. Nothing about the logic changed. Only the fill model did.
Test it yourself: compare a 09:15 entry against 09:16. If your engine fills you at the exact opening print, it is lying to you — and the gap between those two timestamps can be several hundred rupees a lot on a volatile open. We never test entries before 09:16 for this reason.
2. Costs excluded by default
Many platforms leave STT, brokerage, exchange charges and GST off unless you switch them on. With STT on option sales now at 0.15% of premium, a cost-free backtest of a premium-selling strategy is not optimistic, it is meaningless. Turn costs on first, then look at the curve.
3. Your history is from a different market
This is the one almost nobody accounts for. Since 2024 the Indian derivatives market has changed in ways that break historical comparability: Bank Nifty's weekly expiry was withdrawn, each exchange moved to a single weekly expiry on a fixed weekday, lot sizes were revised twice, and STT rose in October 2024 and again in April 2026.
A five-year backtest therefore spans several different markets. A Thursday-expiry NIFTY result from 2023 does not transfer to a Tuesday-expiry NIFTY in 2026 — the day-of-week behaviour, the overlap with SENSEX expiry and the cost base are all different. Say which regime your result comes from, and be suspicious of anyone quoting a long backtest without mentioning this.
4. Curve fitting dressed up as optimisation
If your strategy has six parameters and you tuned all six on the same data you are reporting, you have described history, not discovered an edge. Keep the parameter count low, hold out a period you never look at until the end, and expect live results to be worse than your out-of-sample test, not equal to it.
5. Option data quality
Equity history is cheap and mostly clean. Minute-level option-chain history with correct strike steps, correct expiry handling and no gaps is neither. A backtest built on thin or gap-filled option data will show edges that are artefacts of the data. If you cannot say where your option history came from and how expiries are handled in it, you do not yet know what your backtest measured. We go deeper on the tooling side in options backtesting software in India.
What Automation Does Not Fix — Numbers From Our Own Desk
This is the section most guides skip, and it is the one that would have saved readers the most money.
Automation removes hesitation, inconsistency and the temptation to widen a stop. It does not remove the market's behaviour. Below are figures from our own study of 163 NIFTY and SENSEX weekly-expiry sessions between January 2025 and July 2026 (83 NIFTY, 80 SENSEX), computed from real one-minute option-chain data. These are not simulations and they are not marketing numbers — several of them are uncomfortable.
Profit you see at the peak is mostly not profit you keep. For a short ATM straddle entered at 09:20 and held to the close:
| Measure | Result across 159 usable sessions |
|---|---|
| Median give-back from the best intraday mark to the close | 42.8% of the peak |
| Sessions giving back more than 30% of the peak | 86 of 159 (54%) |
| Sessions giving back more than 50% of the peak | 78 of 159 (49%) |
| Sessions where a profitable peak closed as an outright loss | 48 of 159 (30%) |
Read that last row again. Roughly one expiry day in three, a position that was in profit at some point during the session finished as a loss. No automation fixes that. An exit rule might — which is precisely the point: the edge was never in the entry.
The "premium bleeds steadily to zero" story is wrong. Averaged across all 163 sessions, ATM straddle premium relative to a 09:16 entry fell fast for about two hours — to 88.6% by 11:16 — and then chopped sideways in an 88-93% band for the rest of the day instead of grinding toward zero. The reason is that the strike is fixed while spot keeps walking, so theta decay nets against gamma re-pricing. Any strategy whose logic assumes smooth afternoon decay is assuming something our data does not show. We unpack this in the NIFTY expiry-day premium clock.
Your premium budget is set by volatility, not by your target. ATM straddle premium as a share of spot, measured at the 09:20 snapshot and grouped by that day's opening India VIX:
| India VIX band | Sessions | Median ATM straddle premium (% of spot) |
|---|---|---|
| Below 12 | 46 | 0.38% |
| 12-14 | 43 | 0.44% |
| 14-17 | 35 | 0.51% |
| 17-20 | 24 | 0.60% |
| Above 20 | 11 | 0.76% |
Premium roughly doubles from the calmest band to the most stressed, monotonically. So a fixed rupee profit target is a different ask in different regimes, and a strategy tuned in a low-VIX stretch is being asked to do something else entirely when VIX is above 20. More on this in what India VIX does to a short strangle's premium budget.
Now the market-wide number, and it is the most important one in this guide. SEBI's study published in September 2024 (PR No. 22/2024) found that 93% of over one crore individual F&O traders lost money over FY22-FY24, averaging about Rs 2 lakh of loss each, with aggregate losses above Rs 1.8 lakh crore. Only 1% made more than Rs 1 lakh after costs. Over 75% of those traders declared an annual income below Rs 5 lakh, and more than 75% of the loss-makers kept trading anyway. SEBI's follow-up for FY25 put the loss-making share at about 91%.
In the same study, proprietary traders and FPIs booked gross profits of roughly Rs 33,000 crore and Rs 28,000 crore in FY24 — and 96% of proprietary profits and 97% of FPI profits came from algorithmic trading.
Hold those two facts together, because the conclusion is not the one either side of the marketing argument wants. Algorithms are how the profitable participants make their money. Algorithms are also available to the 93% who lose. The tool is not the edge. The research, the cost discipline, the risk limits and the willingness to stop trading a strategy that has stopped working are the edge. Automation only makes you consistent — and if you are consistently doing something negative-expectancy, it makes you consistently poorer, faster.
Risk Management: The Part That Decides Whether You Survive
Almost every blown retail algo account traces to a missing item on this list, not to a bad strategy idea.
- A hard daily loss limit, enforced in code. Not a number in your head. When the day's loss hits the limit, the system flattens and stops. The limit should be a figure you can absorb several times in a month without changing how you behave.
- A kill switch you have actually tested. One command that cancels every pending order and squares every open position. Test it in a live session on a small position. An untested kill switch is not a kill switch.
- Position sizing from your capital, never from your margin ceiling. If your worst historical day would cost more than a small single-digit percentage of capital, you are too big. Max lots should be a configured limit the code refuses to exceed, not a judgement call.
- Defined behaviour when the broker API fails. Write down now what the system does on a 502 at 15:10 with four open legs. Retry? Alert and stop? Flatten at limit? Decide while calm, because this will happen.
- Alerts that reach you away from the screen. Order rejections, disconnects, position-versus-expectation mismatches. Push or SMS, not an email you read in the evening.
- Daily reconciliation. Compare what your system thinks it holds against the broker's position book, every day. Drift between the two is how small bugs become large losses.
- No manual overrides mid-session. Turning the algo off because of a few losing trades is the most common and most expensive mistake in retail automation. If you do not trust the system enough to let it run, you are not ready to deploy it. Change the rules between sessions, with a reason and a record — never during one.
Tax and Record-Keeping for Algo Traders in India
Automation generates far more trades than manual trading, which makes the tax and records side materially heavier. Get this set up at the start.
- F&O profit or loss is non-speculative business income under Section 43(5)(d) of the Income Tax Act — not capital gains. It is taxed at your applicable slab rate, and you file ITR-3.
- Losses are useful. A non-speculative business loss can be set off in the same year against most other heads except salary, and carried forward for eight years against future business income — but only if you file your return by the due date. Missing the deadline forfeits the carry-forward. This is the single most expensive avoidable mistake in the tax treatment.
- Expenses are deductible. Because it is business income, platform subscriptions, API fees, VPS and data costs, and a reasonable share of internet and hardware are deductible against it. Keep the invoices.
- Tax audit. Turnover for F&O is computed on the ICAI method, not on notional contract value. The Section 44AB threshold is Rs 1 crore, raised to Rs 10 crore where cash receipts and cash payments are each under 5% of the total — which is the normal case for a digitally-settled trading account. Presumptive taxation under 44AD is generally not the right fit for F&O and opting out has its own audit consequences, so take this to a chartered accountant rather than an article.
- Advance tax. Business income means quarterly advance tax. An algo that has a good June and a bad March still owes advance tax on the June.
- Keep your own trade records regardless. The exchange audit trail exists for the regulator. Your own per-order log — intended price, fill price, strategy tag, reason code — is what lets you tell whether the strategy is working or whether your execution is leaking.
Rates and thresholds change at every budget, and Budget 2026 already moved STT. Treat the above as the shape of the rules and confirm the current numbers with your CA for the relevant year.
How to Start Algo Trading in India: A Realistic 10-Step Path
With honest timelines. Anyone promising this in a weekend is selling something.
- Learn how the instruments behave before you learn to automate (4-8 weeks). Options pricing, margin, expiry mechanics, what moves premium. Automating an instrument you do not understand is the fastest route to a large loss. Zerodha's Varsity is free and good.
- Write down what you are trying to do (1 day). Instrument, holding period, capital, the maximum drawdown you can live with, and how you would know the strategy has stopped working. If you cannot write the last one, you do not have a strategy yet.
- Pick your route (1 day). One of the four above. Start at route 1 unless you have a specific reason not to.
- Open the account and activate F&O (3-10 days). Income proof ready. Expect at least one rejection and resubmission.
- Express the strategy in precise, testable rules (1-3 weeks). Entry condition, exit condition, stop, position size, what happens on a partial fill, what happens if the entry is missed. Every rule must be checkable without your opinion.
- Backtest with costs on and fills modelled honestly (2-4 weeks). Three to five years if your data allows, but state which regime each stretch belongs to. Hold out a period you do not look at. Expect to discard most ideas here — that is the step working, not failing.
- Paper trade for at least 30 sessions (6+ weeks). Same logs, same discipline, no exceptions. You are testing your plumbing and your own behaviour as much as the strategy.
- Go live on the smallest size that is real (1 month minimum). One lot. The goal is not profit, it is discovering the gap between your paper fills and your real fills. There will be one.
- Scale slowly, on evidence (3+ months). Add size only after several months of live results consistent with the backtest. If live is materially worse, the answer is to understand why, not to add lots.
- Review monthly, change deliberately (ongoing). Between sessions, with a written reason and a record of what changed. Strategies stop working; the discipline is noticing early rather than hoping.
Realistically, that is four to six months from starting to learn to running a small live automated position properly. People who compress it to two weeks are usually skipping steps 6, 7 and 8 — the three that protect capital.
Eleven Mistakes That Cost Indian Algo Traders Money
- Backtesting without costs. With STT on option sales at 0.15% of premium and flat per-order brokerage, a gross curve tells you nothing about a net one.
- Curve fitting. Six parameters tuned on the data you report. Low parameter count, real hold-out period, expect live to be worse.
- Treating a 2022-2023 backtest as current. Different expiry days, different lot sizes, different Bank Nifty, different STT. Say which market your result is from.
- Assuming fills at the touch. Particularly at 09:15, particularly in the last 45 minutes of expiry. Our own re-run with realistic slippage cut reported profit by roughly a quarter.
- No kill switch, or an untested one. Test it live, on small size, before you need it.
- Sizing to the margin ceiling. Then your broker's risk system picks your exits, not your strategy.
- Turning the algo off after three losing days. The most common and most expensive intervention in retail automation. Decide the rules while calm; change them between sessions or not at all.
- Running a black box you cannot inspect. If you cannot see the logic, you cannot know when it will fail — and the provider owes you Research Analyst registration and a research report for that algo.
- Ignoring the route rules. Self-coding on a dynamic home IP, or exiting at market. Both now break. The second one breaks quietly.
- Slicing small orders. Multiplies flat brokerage, adds nothing, and walks you toward the 10-orders-per-second threshold for no reason.
- Filing the return late in a loss year. Forfeits eight years of carry-forward on a loss you already paid for. Pure, avoidable waste.
Who Should Not Automate (Yet)
A guide that tells everyone to start is not a guide, it is an advertisement. Do not automate yet if any of these is true:
- You have never traded the instrument by hand. Automation multiplies whatever you already do. Multiply an understanding you do not have and you get a faster version of not knowing.
- The capital is money you need. SEBI found over 75% of individual F&O traders in FY24 declared annual income below Rs 5 lakh, and that 93% of traders lost an average of about Rs 2 lakh over three years. Those two facts together are the argument. Trade only money whose loss changes nothing about your life.
- You cannot answer "how would I know this strategy has stopped working?" Without that answer you have no exit from the strategy itself, only from individual trades.
- You are automating to stop feeling the losses. It does not work. You will override the system in the first bad week, which is worse than trading manually, because now you have the costs of both.
- You want a monthly percentage. Nobody can promise one, and anybody who does is telling you something useful about themselves.
Algo Trading Glossary for Indian Traders
| Term | What it means here |
|---|---|
| TOPS | Threshold Order Per Second — set at 10 orders per second per exchange. Above it, an algo must be registered with the exchange through your broker. Modifies count. |
| White box algo | Logic disclosed and replicable. You can read it and reproduce the result. |
| Black box algo | Logic not known to the user. Provider must be a registered Research Analyst with a research report per algo; any logic change means fresh registration. |
| Empanelled algo provider | A provider vetted and listed by the exchange. Brokers may only deal with these. Vetting covers background and systems — not performance. |
| Algo ID / order tag | The unique identifier every algo order carries, so the exchange can trace an order to the algo, the provider and the client, and halt a specific algo's orders. |
| Static IP | A fixed internet address whitelisted by your broker. Required for the self-coded API route. Home broadband is usually dynamic and will not do. |
| SPAN + exposure margin | The upfront margin to hold a short option position: a risk-scenario component plus a buffer. Changes daily with volatility. |
| STT | Securities Transaction Tax. On index options, 0.15% of premium charged on the sale leg from 1 April 2026 — so an option seller pays it at entry. |
| OTR | Order-to-Trade Ratio. An exchange surveillance measure on excessive order entry relative to trades, with penalty slabs for breaching it. It is not a "one trade per 500 orders" quota, and it rarely binds on low-order-count retail strategies. |
| Slippage | The gap between the price your logic assumed and the price you got. On Indian expiry afternoons this is the largest single difference between a backtest and reality. |
| Peak-to-close give-back | How much of a position's best intraday mark is surrendered by the close. On our 159-session sample, a median of 42.8%. |
| Co-location | Renting rack space inside the exchange data centre for minimum latency. Institutional. Not a retail option, and not needed for rule-based retail strategies. |
Frequently Asked Questions
Is algo trading legal in India?
Yes. It has been legal since direct market access was permitted in 2008, with dedicated guidelines from 2012. Since 1 April 2026 retail algo trading also operates under SEBI's February 2025 framework, which applies to all stock brokers. You do not register with SEBI to trade your own money with code. Your strategy needs exchange registration through your broker only if it crosses 10 orders per second.
How much money do I need to start algo trading in India?
For one NIFTY option lot, margin alone is roughly Rs 1-1.5 lakh in normal volatility, and you need a similar buffer again for intraday margin moves and a losing run. A realistic floor is about Rs 1.5-2 lakh. Verify the margin on your broker's SPAN calculator for the strikes and day you intend to trade — it moves with volatility and is never what an article says it is.
Do I need to know coding to do algo trading in India?
No. Three of the four routes need no code: your broker's own no-code strategy builder, an exchange-empanelled third-party platform, or a managed desk. Coding is only required if you call a broker API yourself — and that route also brings the static-IP requirement and all the engineering around reconnects, partial fills and kill switches. Coding buys control, not an edge.
Is algo trading profitable in India?
It can be, and usually is not. SEBI's study published in 2024 found 93% of over one crore individual F&O traders lost money across FY22-FY24, averaging about Rs 2 lakh of loss each, with only 1% making more than Rs 1 lakh after costs. The same study found 96% of proprietary-trader profits and 97% of FPI profits came from algorithms. The tool is not the difference — research quality, cost discipline and risk limits are. Nobody can promise you a return, and any platform that does is telling you something important about itself.
Do I need a static IP for algo trading?
Only if you write your own code and call the broker API directly. If you use your broker's no-code tool or an empanelled provider's platform, the strategy runs on the broker's servers and the static IP on record is the broker's. If you do self-code, note that home broadband is usually a dynamic IP — when the lease renews, your order flow stops with authentication errors that look like a broken API key. A fixed-IP VPS or an ISP static plan is the fix.
What is the 10 orders per second rule?
The Threshold Order Per Second (TOPS) is set at 10 orders per second per exchange. Below it, your algo orders are simply tagged. Above it, the algo must be registered with the exchange through your broker. Modifies and cancels count as orders, which is how quote-chasing loops breach it without the trader realising. A two-leg strangle or a four-leg condor is nowhere near the limit.
Can I sell my algo strategy to other people?
Not on a retail self-coded registration. A self-coded algo registered through your broker may be used only for yourself and your immediate family — self, spouse, dependent children and dependent parents. Offering a strategy to others means becoming an exchange-empanelled algo provider, and if subscribers cannot see the logic, also registering as a Research Analyst with a maintained research report for each algo.
Which is the best algo trading platform in India?
There is no single best one, and the first filter is not features — it is whether the platform is on the exchange's empanelled algo provider list, because a platform that is not cannot route your orders through an Indian broker's API. After that, broker-native no-code tools suit beginners and simple logic, third-party options platforms suit multi-leg option strategies and deeper backtesting, and a self-coded API setup suits logic no builder can express. We keep the current comparisons on separate pages for paid platforms and free options.
How is algo trading income taxed in India?
F&O profit or loss is non-speculative business income under Section 43(5)(d), taxed at your slab rate and filed on ITR-3 — not capital gains. Losses can be set off in-year against most heads except salary and carried forward eight years against business income, but only if you file by the due date. Platform, API, VPS and data costs are deductible as business expenses. The Section 44AB audit threshold is Rs 1 crore, raised to Rs 10 crore where cash receipts and payments are each under 5% of totals, which is the normal case. Confirm current figures with a chartered accountant.
What does algo trading actually cost to run in India?
Two layers. Subscriptions are modest — Zerodha's Kite Connect is free on the Personal tier and Rs 500 a month for Connect, several broker APIs are free, and a fixed-IP VPS runs a few hundred to a couple of thousand rupees a month. Transaction costs are the real bill: STT at 0.15% of premium on option sales since 1 April 2026, exchange charges around 0.035% of premium, 18% GST on brokerage and charges, stamp duty, plus flat per-order brokerage that punishes order count. SEBI found individual F&O traders averaged Rs 26,000 each in transaction costs in FY24.
Can I use market orders in my algo?
No. Algo orders with order type Market are not permitted, and in the commodity segment IOC and market orders may not be placed algorithmically. The usual replacement is a limit order priced aggressively through the touch, which behaves almost the same in a liquid NIFTY or SENSEX option — but your code must handle the case where it does not fill. If your script currently exits at market, that is real work, not a setting.
What changed for NIFTY and SENSEX contracts recently?
Quite a lot, and it invalidates older backtests. There is now one weekly expiry per exchange — NIFTY on Tuesday, SENSEX on Thursday — and Bank Nifty no longer has a weekly expiry at all. Lot sizes were revised with effect from the January 2026 contracts: NIFTY to 65 from 75, SENSEX to 20 from 10. Any strategy whose history assumes a Thursday NIFTY weekly or a weekly Bank Nifty needs re-running.
Is backtesting enough before going live?
No. A backtest tests the idea; it does not test your plumbing or your behaviour. Run at least 30 paper sessions with the same logs and discipline you would use live, then go live at the smallest real size for a month — the point of that month is to find the gap between your paper fills and your real fills. There is always a gap. On our own book, applying realistic time-of-day slippage to expiry-day strategies cut reported profit by roughly a quarter.
Does EliteAlgo give investment advice or manage my money?
No. EliteAlgo builds and runs analytical and execution software for systematic NIFTY and SENSEX strategies. We are not a SEBI-registered investment adviser, research analyst or portfolio manager, we do not offer advice, and we do not take custody of client funds. Nothing we publish is a recommendation to buy or sell, and we make no claim or promise about returns.
Where EliteAlgo Fits
We are a proprietary desk, founded in 2006 and running automated NIFTY and SENSEX strategies since 2018. The numbers in this guide — the 42.8% median peak-to-close give-back, the premium-versus-VIX table, the intraday decay curve that flattens after 11:16 — come from our own 163-session study of real option-chain data, because that is the kind of evidence we would want before trusting anyone else's guide.
What we build is analytical and execution software, not investment advice. We hold no SEBI registration as an adviser, research analyst or portfolio manager, we do not promise returns, and we do not take custody of anyone's funds. What we can do is show you how a systematic expiry-day book is actually researched, costed and risk-managed — logic visible, assumptions stated, including the uncomfortable ones.
If that is useful, the next steps depend on where you are. If you are deciding how to automate, start with our strategies hub and the full SEBI framework page. If you want the honest downside first, read the disadvantages of algo trading. If you would rather talk it through with people who run this for their own account, get in touch.
This guide is general information about how algo trading works in India, not investment advice or a recommendation. Derivatives trading carries a high risk of loss — SEBI's own data shows most individual F&O traders lose money. Rates, thresholds, lot sizes and regulations change; verify current figures with your broker, the exchange and a chartered accountant before acting. Paper trade first.