Register
Product

Algo Trading for Retail Traders: Run Your Own Rules as Bots

Algo trading for retail traders means turning your own trading rules into an algo that places orders on your own broker account. In QuantPower you build the strategy without code, test it on past data and on live prices, and then run it as an algo through your broker's official API, with its stop-losses, exit time and the account's daily loss limit set before it starts.

QuantPower Research · Updated 16 Nov 2026 · 17 min read

QuantPower is trading software, not a broker or an adviser, and it gives no tips or calls. The strategy is yours and every rule is visible to you, always. Orders go to your own broker account through its official API, from the two static IPs that come with your QuantPower account, and your funds and securities stay with your broker. Since 1 April 2026, every retail algo in India runs under SEBI's framework for algo trading, and this page explains what that framework asks of you, how an algo in QuantPower is built and switched on, and the controls that sit above every algo you run.

What an algo does

An algo is a set of orders, called legs, with rules: when to enter, when to exit, and what to do on a target or a stop-loss. A new algo is off. Once you switch it on, live or in Forward test, it is fully automated: it waits for its entry, places the orders, watches the stops and targets, exits by its rules and logs every step, with no further tap.

Part of the algoWhat you decideSample setting
InstrumentWhat to trade and how strikes are pickedNifty weekly options, at the money
LegsBuy or sell, call, put or future, lotsSell 1 call and 1 put
EntryAt a time, wait and trade, or an opening range breakout9:20 am
StopsA stop-loss on each leg, and one for the whole algo30% on each leg; ₹4,000 for the algo
TargetAn optional profit exit₹3,000
Exit timeWhen open positions close3:15 pm
DaysThe weekdays it tradesMonday to Friday
Where it runsForward test or liveForward test first

The sample settings show the format, not a recommendation. An algo can run an options strategy with several legs, a futures strategy or a stock strategy, as long as its rules are complete.

A short history of retail algo trading in India

Algo trading in India began with institutions. In April 2008 SEBI allowed direct market access, which let institutional clients send orders to the exchange through a broker's systems without a dealer keying them in.1 Exchanges offered co-location, where a member's servers sit beside the exchange's own. In March 2012 SEBI published its first broad guidelines on algo trading: brokers needed exchange approval for each algo, and exchanges had to put risk controls in place.2

Retail traders arrived through broker APIs. From the mid-2010s, discount brokers opened APIs that let clients connect their own code and third-party platforms to their accounts. Algo platforms for retail traders followed, many of them unregulated, some of them advertising past or expected returns. SEBI's consultation paper of 9 December 2021 described the risks: algos running through APIs without approval, the exchange unable to tell an algo order from a manual one, and investors sold strategies on promised returns.3 On 2 September 2022 SEBI told brokers not to refer to past or expected returns of algos, and not to associate with platforms that did.4

The full framework came in SEBI's circular of 4 February 2025 on safer participation of retail investors in algorithmic trading.5 It made the broker responsible for every algo order that passes through it, asked exchanges to empanel algo providers, gave approved strategies an Algo ID, and tied API access to a registered static IP. The NSE published implementation standards on 5 May 2025. After two changes of date, the framework came into force for every broker from 1 April 2026.6

For a retail trader, the history explains the rules. Each one answers a problem the market saw in the years before, and each is easier to live with once you know why it is there.

Who uses algos

  • Option traders who sell straddles, strangles, iron flies or condors and want the same exits applied every day.
  • Intraday traders whose setups depend on a time or an indicator, and who cannot watch the screen all session.
  • Positional traders who manage defined-risk positions to fixed rules over several days.
  • Manual traders moving to automation who want to watch an algo in Forward test before they trust it with money.
  • Traders with day jobs who cannot be at a screen at 9:20 am or 3:15 pm, and want the entry and the exit to happen at those times whether or not they are watching.

Algos do not suit anyone looking for tips or for someone else to trade for them. Results depend on your rules and the market, and SEBI's study of individual traders in equity derivatives, published on 23 September 2024, found that about 93% of them lost money over the three years to March 2024.7 Rules, testing and limits do not remove that risk, but they make it measurable and controllable.

Algo trading for retail traders under SEBI's framework

For your own rules on your own account, SEBI's framework comes down to six conditions. The SEBI rules for option trading page covers the framework and the other F&O rules in full.

ConditionWhat it means for you
Orders through your broker's official APINo open APIs. QuantPower places orders only through the API your broker provides
Your own API connectionYou create it with your broker, and it is unique to you
A static IP registered with your brokerAPI orders are accepted only from that IP. QuantPower gives you 2 static IPs free, a primary and a backup, to register
A daily sign-in to your brokerEvery API session ends before the next trading day, so you sign in each morning
Fewer than 10 orders a secondYour own algo for your own account needs no exchange registration below this rate
A kill switchThe exchange can switch off a malfunctioning algo at once, and you can stop your algos in QuantPower

Below the order-rate threshold, your broker tags your algo orders with a generic ID from the exchange. A strategy-specific Algo ID is needed when an algo is registered: one that sends more orders a second, or one that a provider offers ready-made to many clients. QuantPower's templates are not in that group. You load a template such as a straddle or an iron fly, change it and run it as your own algo, with every rule visible, so it stays a client algo.

The static IP

The IP you register with your broker must be the one your orders leave from. Every QuantPower account gets 2 static IPs free: a primary and a backup. Whichever broker you trade with, these are free from QuantPower. No subscription. No questions asked. Your orders leave through a forwarding proxy that uses them. If that route is down, orders are held; they are never sent from another address. QuantPower shows your two addresses on the broker row in the app, so you can register them with your broker once. Algos keep running when your phone or computer is off, so you can close the app or switch off your computer while they run. You still sign in to your broker each trading day. The broker connection requirements page lists each item to set up.

Building an algo in QuantPower

Start from a template or your own legs

QuantPower's Algo builder offers open templates in four groups:

GroupTemplates
BullishBuy Call, Bull Call Spread, Bull Put Spread, Synthetic Long, Call Ratio Back Spread, Sell Put
BearishBuy Put, Bear Put Spread, Bear Call Spread, Synthetic Short, Put Ratio Back Spread, Sell Call
NeutralShort Straddle, Short Strangle, Iron Fly, Iron Condor, Call and Put Butterflies, Jade Lizard, Broken Wing Butterflies, Ratio Front Spreads
VolatileLong Straddle, Long Strangle, Reverse Iron Fly, Reverse Iron Condor

A template is an open sample. Once loaded, it is your own algo, and you can change every part. You can also start from your own legs on an index option chain, from futures, stocks, stock options, commodity or currency contracts, or from a position built in the option strategy builder, where "Run as algo" turns the legs on the payoff screen into an algo.

Legs and strikes

A fixed leg trades one exact contract. A rule leg picks its contract fresh at each entry, so the algo keeps running week after week. A rule leg can pick its strike at the money, a number of strikes in or out of the money, nearest a premium, nearest a delta or another Greek, or at a width based on the at-the-money straddle. If the prices or Greeks it needs are missing, the algo waits and says why. It never guesses a strike.

Entry and exits

  • Entry: at a time; wait and trade, where each leg waits for the price to move by the points or per cent you set; or an opening range breakout over the first 1 to 180 minutes.
  • Order of legs: buy legs go first, and sell legs only after the buys have filled, so the hedge is in place before the sold option. On exit, sold legs are bought back first.
  • Each leg's exits: a target and a stop-loss in points, per cent, underlying points or a Greek; a trailing stop; a move of the stop to cost; and re-entry or reversal after a hit, 1 to 20 times a day.
  • The whole algo's exits: an exit time; an MTM target or stop in rupees or per cent; a band for net delta or theta; and a lock that protects part of a profit and trails it upward.

Limits

You can keep up to 50 saved algos, run up to 20 at a time, and run up to 6 legs in an algo. A quantity multiplier from 1 to 50 scales every leg.

From rules to a running algo

Every algo should pass the same five checks before it trades real money. An algo that fails one goes back a step.

From idea to live: write the rules, backtest, check on unseen data, run a forward test and go live small (illustration)From idea to live: write the rules, backtest, check on unseen data, run a forward test and go live small (illustration)
From idea to live: write the rules, backtest, check on unseen data, run a forward test and go live small (illustration)
  1. Write the rules with no gaps: entry, legs, strike selection, size, stops and exit time.
  2. [Backtesting](/backtesting): test them on past data, with costs and slippage.
  3. Check for overfitting by testing on a period the rules were not built on.
  4. Forward test on live prices with no real money for at least a few weeks. Switch the algo on in Forward test instead of live.
  5. Go live small: one lot, a stop for the algo and a daily loss limit for the account.

After that, review each algo's results every week and stop any algo that breaks its limits.

What happens when you switch an algo on

Before an algo starts, QuantPower checks, in this order, and if a check fails the algo stays off, you are told why in plain words, and no tokens are taken:

  1. Live needs a broker. With no stock broker connected, the app offers Forward test instead.
  2. Which broker. With two or more brokers connected, you pick one. Every leg goes to that broker.
  3. The kill switch. If you stopped that segment and it would still be stopped at the algo's first entry, the switch-on is refused.
  4. The daily loss limit. If today's loss has already reached your limit and the algo would enter today, the switch-on is refused.
  5. The broker sign-in. If the algo would enter now and your broker is not signed in for today, the switch-on is refused and asks you to sign in.
  6. Expired contracts. A fixed leg whose contract has expired cannot be switched on.
  7. Safety caps. Up to 20 algos running and 6 legs in a running algo.
  8. Tokens. The wallet must cover the charge.
  9. Changes since you looked. If the algo was edited after your screen loaded, you are asked to check it again.

A restart stays where the algo ran. A Forward-test algo restarts in Forward test, and a live algo restarts at the same broker. It never moves from test money to real money, or from one broker to another, on its own.

While an algo runs

  • The card shows the algo's state, today's legs with their fills, the MTM, and a line for anything the algo is waiting on.
  • Pause stops new entries. Open legs keep their targets, stops and exit time. "Resume new entries" undoes it.
  • Stop and square off closes the algo's legs, then stops it.
  • Stop and keep positions stops it at once. The positions are then yours to manage; the algo no longer watches them, so they have no stop or exit time from it.
  • Restart today runs it again today, in the same place.
  • Several algos can be paused, stopped or exited together.

Every switch asks first, so a stray tap never starts or stops an algo.

Algos, signals and webhooks

An algo can run on a clock, from its entry time each day, or it can be started by something else:

  • A signal watches a condition on a chart, such as an indicator cross or a candle pattern, on every closed candle. When it fires, it can switch on one of your algos, or stop one.
  • A webhook is your own private URL. An Arth.live price alert, an alert from other charting software, a scanner or any tool that can call a URL can hit it: an entry hit switches on the linked algos for today and enters now, and an exit hit stops them and squares off.

Either way, the algo still runs by its own rules, with its own stops and exit time, and in the same place it ran before. A hit outside market hours or after the algo's exit time does nothing, and the log says why. This lets the chart decide whether the strategy runs today, and the algo decide how it trades.

Algos with Quanty and your own AI app

Quanty, the AI assistant in the QuantPower app, can build an algo from your description: "sell the at-the-money Nifty straddle at 9:20 on expiry day, 30% stop on each leg, exit at 3:10". It builds the legs and rules for you to check, backtests them, and runs a risk check that flags a missing stop-loss or a sold option without a hedge. It saves the algo switched off. It can also prepare a start in Forward test, which appears as a confirm card that only your tap acts on.

If you use your own AI app, such as Claude or ChatGPT, Connect AI links it to your account with the permissions you choose. It can read your algos and their day, backtest your rules and save an algo switched off. It cannot switch an algo on, and it cannot place, change or cancel an order.

Both are software, not advisers. They help you write and test your own rules; they do not tell you which strategy to run.

Common mistakes

  • Going live before a forward test. A backtest cannot show a missed sign-in, a rejected order or the spread at 9:20 am.
  • No stop for the whole algo. Separate stops on each leg can still add up to a large loss when the market runs.
  • No account limit. Three sensible algos can lose more together than you meant to risk in a day. Set the daily loss limit and Smart Exit.
  • Forgetting the daily sign-in. A broker session ends every day. Make the sign-in part of the morning.
  • Changing rules while positions are open. Square off first, or wait until the algo is flat.
  • Too many algos, too soon. Start with one algo, at one lot, and add others only when it behaves as it did in testing.

A worked example: a daily short straddle

An algo sells one lot each of the Nifty at-the-money call and put at 9:20 am, with a stop of 30% on each leg, a ₹4,000 stop for the algo and a 3:15 pm exit.

  • On a quiet day, neither leg reaches its stop, and the algo squares off both at 3:15 pm.
  • On a day when Nifty runs one way, the losing leg's stop fires and that leg is bought back. The other leg stays open with its own stop. If the combined loss reaches ₹4,000, the algo closes everything.
  • On a day the broker session has expired, the switch-on or the entry is refused with the reason, and the card asks you to sign in. Nothing signs in for you.

The figures are samples to show how the limits work together. Run it in Forward test for a few weeks before it trades real money.

A worked example: an opening range breakout on a stock

An algo watches a large bank stock from 9:15 am, records the high and low of the first 15 minutes, and buys a fixed quantity, intraday, on the first price above the high. Its stop-loss is the low of the range, its target is twice the range, and it exits at 3:00 pm.

Because stock legs are intraday, the position is always closed the same day. If the price never breaks the high, the algo never enters, and nothing is charged beyond the algo's 28-day price.

Risk controls for every algo

Five layers of risk control: a stop on each leg, a stop and target for the algo, the account's Smart Exit and daily loss limit, the kill switch, and your broker's own app (illustration)Five layers of risk control: a stop on each leg, a stop and target for the algo, the account's Smart Exit and daily loss limit, the kill switch, and your broker's own app (illustration)
Five layers of risk control: a stop on each leg, a stop and target for the algo, the account's Smart Exit and daily loss limit, the kill switch, and your broker's own app (illustration)
  • A stop-loss on each leg exits one position at its limit.
  • The algo's stop and target close the whole algo at a set loss or profit.
  • Smart Exit squares off every position in the segments you pick at your stop, target, locked profit or trail for the day. The guide on how to place stop loss order across all positions explains it.
  • The daily loss limit refuses new orders once the day's loss reaches it.
  • The kill switch stops a segment until its next session and stops the algos running in it.
  • Your broker's app still shows every position, so you can exit there if anything fails.

Set them before an algo goes live. A gap or a rejected order can still make the final loss larger than a limit, so size each algo for its worst day, not its average one.

When something goes wrong

What happensWhat the algo does
An entry order is refusedIt closes the legs already in, stops and shows the reason
An exit order is refusedIt tries again, up to 8 times, with a growing gap, and the card shows what is still owed
Prices or Greeks are missingIt waits and says why
The broker is not answeringOrders are refused, not assumed; nothing is treated as "no position"
Tokens run out at the end of the 28 daysThe algo is stopped and you are told; open positions are kept and no longer watched

Every entry, exit, re-entry, change and refusal is a line in the algo's activity log, so you can see what happened and why.

What stays with you

  • Your money. Funds and securities stay in your broker account. QuantPower takes no money into a trading account.
  • Your broker login. For brokers that sign in on their own page, such as Zerodha, Upstox and Fyers, your password never touches QuantPower. For others, the API keys you enter are stored encrypted and never shown again.
  • Your rules. Every rule is visible and editable. There is no hidden logic in an algo you built.
  • Your positions. They sit in your broker account, where you can see and close them at any time.

Costs to plan for

An algo has three kinds of cost, and the software is usually the smallest.

  1. QuantPower tokens: 200 per live algo per 28 days, whatever the number of orders it places.
  2. Brokerage: set by your broker, often ₹20 per executed order. A two-leg straddle entered and exited every trading day places four orders a day, about ₹80 a day or roughly ₹1,700 a month at ₹20 an order.
  3. Statutory charges: STT, exchange transaction charges, SEBI fees, stamp duty and GST on every trade, the same whichever software you use.

Add slippage to these: the gap between the price your rules expect and the price your orders get. Count all four in your backtest before you decide whether a strategy is worth running.

Where retail algo trading is going

Retail algo trading in India has moved from scripts on home computers and unregulated platforms to a regulated path through brokers, with registered static IPs and registered strategies. The next changes are likely to be in tools rather than rules: AI assistants that write a strategy from a sentence, and account-level controls that cover every algo and every broker at once. Quanty can build an algo from your description and save it switched off, but it cannot switch one on, and it is software, not an adviser. The decision to run an algo, and the limits it runs within, stay with you.

Pricing

QuantPower is priced in tokens (1 token = ₹1, GST extra). A live algo costs 200 tokens per 28 days, with orders unlimited inside it, and an algo in Forward test 100. Switching on part-way through a cycle is charged for the days left only, and a restart is never charged. A backtest costs 2 tokens, with the first 10 each week free. The strategy builder, charts, the option chain, the screener, the two static IPs and the account controls are free. Your broker charges brokerage separately. See pricing.

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

Does QuantPower tell me what to trade?

No. QuantPower gives no tips, calls or buy or sell advice. An algo follows only the rules you set, and you decide whether to run it.

Can I see every rule an algo follows?

Yes. Every rule of an algo is visible, including one loaded from a template, and you can change any of them while it is off.

Can an algo trade if I have not signed in to my broker?

No. Broker sessions end every day. A live algo that would enter now cannot be switched on while your broker is signed out, and a later entry is refused with the reason. The algo card warns you first.

Can I change an algo's rules while it is running?

Switch it off first. While an algo that is off still holds positions, its legs, product and quantity cannot change until you square off; its targets, stops and times can. Test the change in Forward test before you run it live again.

Do QuantPower's templates need an exchange Algo ID?

No. A template is an open sample. Once you load it, it is your own algo, with every rule visible and editable, run on your own account below the exchange's order-rate threshold. Your broker tags its orders with the generic ID the exchange gives client algos.

How many algos can I run?

Up to 20 at a time, with up to 6 legs in each, and up to 50 saved.

References

  1. SEBI, circular on direct market access, 3 April 2008 (sebi.gov.in)
  2. SEBI, circular "Broad Guidelines on Algorithmic Trading", 30 March 2012 (sebi.gov.in)
  3. SEBI, consultation paper on algorithmic trading by retail investors, 9 December 2021 (sebi.gov.in)
  4. SEBI, circular to brokers on algo platforms and claims of past or expected returns, 2 September 2022 (sebi.gov.in)
  5. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, and glide-path circular, 30 September 2025 (sebi.gov.in)
  6. NSE, implementation standards for retail algo trading, 5 May 2025, and operational modalities, 22 July 2025 (nseindia.com)
  7. SEBI, study "Analysis of Profit and Loss of Individual Traders dealing in Equity F&O Segment", 23 September 2024 (sebi.gov.in)
  8. QuantPower: algo rules, switch-on checks, limits and prices, from the app's code and price list, checked 12 November 2026
Automated strategies can lose money quickly, and past or simulated results do not guarantee future results. This page is for information only and is not investment advice. Trading involves substantial risk.