What is Algorithmic Trading?
Algorithmic trading, or algo trading, means using a computer program to decide and place trades by fixed rules, such as entering at a set time or price and exiting at a stop or target. The program sends orders through a broker without a person clicking each one.
Also called: algo trading, automated trading, algo trading in India
Upcoming NIFTY expiries
The next NIFTY expiry is 1 Dec 2026, 8 days away. Options of that expiry stop trading at the close that day and are settled.
| Expiry | Days left | Max pain | PCR |
|---|---|---|---|
| 1 Dec 2026 | 8 | 25,500 | 0.70 |
| 8 Dec 2026 | 15 | 25,500 | 0.79 |
| 15 Dec 2026 | 22 | 25,500 | 0.50 |
How it works
An algo has three parts. Rules: the exact conditions for entry, exit, size and risk. Data: live prices to act on, and past data to test with. Execution: the link to a broker that places, modifies and cancels orders. Once started, the program checks its rules continuously and acts within moments.
Before going live, the rules are usually tested on past market data, called backtesting, to see how they would have behaved in different conditions after costs and slippage. Past results do not promise future results, but testing catches errors and unrealistic ideas early.
In India, retail algos connect to the market through broker APIs. SEBI has set out a framework for retail algo trading in which such algos run through the broker and algo orders are identified to the exchange. Brokers apply these rules in their own ways, so check what your broker requires.
Worked example. a simple rule says: on the morning of each expiry day, at a set time, sell one lot of the NIFTY ATM straddle, and exit both legs if the combined premium rises 25%. If the straddle is sold at 200, the stop is 200 × 1.25 = 250. With an illustrative lot of 50 units, the planned loss at the stop is (250 − 200) × 50 = ₹2,500, before slippage and charges. The algo places and watches all these orders on its own.
Reading today's live example
The live example above lists NIFTY's upcoming expiries. For an algo, the expiry calendar is part of the rulebook. Option strategies often decide which expiry to trade, when to enter and when to roll based on the days left to expiry. Time decay speeds up near expiry, so the same rule can behave very differently on expiry day and a week before.
Expiry days can be changed by the exchange and shifted by holidays. A well-built algo reads expiry dates from current data, like the dates in the box, rather than assuming a fixed weekday.
How traders use it
Common F&O algos include time-based option selling, trend-following on futures, spread and hedge management, and execution algos that split large orders. An algo applies the same rules every time, without hesitation or second-guessing.
Many traders write a rule, backtest it on past data, run it in a simulated mode with live prices, and only then use real money in small size.
Common mistakes
Over-fitting: tuning a strategy until it looks perfect on past data, which often makes it fail on new data. Testing on one period and checking on a separate period helps catch this.
Ignoring real-world failures. Slippage, charges, rejected orders, internet drops and broker outages all happen. An algo without a stop-loss, a daily loss limit or a way to switch it off quickly can keep trading in ways the trader never intended.
Frequently asked questions
What is algo trading in simple words?
Algo trading means a computer program places your trades for you, following rules you set in advance. For example: buy when this happens, sell when that happens, and exit if the loss reaches a set amount.
Is algo trading legal in India?
Yes. Algorithmic trading is allowed in India within SEBI and exchange rules. Retail traders run algos through their brokers, who must follow the framework for algo orders. The rules have been updated in recent years, so check your broker's current requirements.
Do I need coding to do algo trading?
Not always. Some platforms let you build rule-based strategies without writing code. Coding gives more control. Either way, the rules must be precise and tested before they are used with real money.
Can algo trading lose money?
Yes. An algo follows its rules exactly, including weak ones. Losses can come from the strategy itself, from market conditions it was never tested on, from slippage or from technical failures. Testing and risk limits reduce these risks but do not remove them.
Related terms
Go deeper
For education only; not investment advice. Live figures from NSE via Quantsapp. Derivatives trading carries substantial risk. Disclaimer