Register
Product

Option Strategy Builder for Options and Futures Algos

QuantPower's option strategy builder lets you turn an options or futures idea into a working algo without writing a line of code. You pick the instrument, add the legs, set when the strategy should enter and exit, attach your stop losses, and see the payoff before anything is sent to the market. The same strategy can then be backtested on past data, run in a Forward test on live prices and switched on as an algo on your own broker account, with the same rules at every step.

QuantPower Research · Updated 16 Nov 2026 · 19 min read

The builder has two halves that work as one. The payoff screen shows what a set of option and futures legs is worth at every price of the underlying, at expiry and today, with breakevens, maximum profit and loss, the Greeks and the margin. The algo builder takes those legs and adds rules: how each leg picks its strike, when the strategy enters, how each leg and the whole position exit, and what happens after a stop is hit. "Run as algo" on the payoff screen carries the legs across. The strategy builder is free to use, and every rule you set stays visible to you: there is no hidden logic in a QuantPower algo.

What the QuantPower strategy builder does

PartWhat it does
Payoff screenPayoff at expiry and today, breakevens, maximum profit and loss, net credit or debit, Greeks and margin for any mix of legs
Templates26 option strategy templates in four groups (bullish, bearish, neutral, volatile), each an open sample you can change
LegsCalls, puts and futures on indices, stocks, commodity and currency; fixed contracts or legs that pick their strike by rule at each entry
Strike by ruleATM, 1 to 20 strikes in or out of the money, by premium, by delta, theta, gamma or vega, by straddle width or percentage
EntryAt a set time, wait and trade on a move, or an opening range breakout
Exits per legTarget and stop loss in points, per cent, underlying points or Greeks, trailing stop, stop to cost, re-entry or reverse
Exits for the whole algoExit time, M2M target and stop in rupees or per cent, Greek bands, lock profit and trail
TestingBacktest, then Forward test with test money, before live trading
LimitsUp to 50 saved algos, 20 running at a time, 6 legs in a running algo
PriceThe builder is free; a live algo costs 200 tokens per 28 days

A short history of option strategy building

Option strategies are older than the tools that draw them. Traders in seventeenth-century Amsterdam already bought and sold options on shares of the Dutch East India Company, and combinations of puts and calls were described in London in the nineteenth century.1 What changed the trade was standardisation. The Chicago Board Options Exchange opened in April 1973 with listed calls on 16 shares, and the same year Fischer Black and Myron Scholes published their model for pricing an option.2 With listed contracts and a model to value them, a position of several legs could be priced, compared and drawn.

The payoff diagram became the trader's map. Textbooks and exchange education pages drew the hockey-stick lines of a long call, the tent of a short straddle and the flat-topped shape of an iron condor, and traders learned to think in shapes rather than single options.3 Software followed: first spreadsheets that summed the legs, then option analysis programs that drew the payoff for any combination, and later broker tools that showed it before an order was placed.

India's history is shorter and faster. Index options began on the NSE in June 2001 and stock options a month later.4 Weekly options on Bank Nifty arrived in May 2016 and on Nifty in February 2019, and expiry-day trading grew into one of the busiest in the world.4 With it came the demand to automate: a short straddle at 9:20 am every day, with a stop on each leg and a fixed exit, is easy to describe and tiring to run by hand. SEBI's measures of 1 October 2024 cut weekly expiries to one benchmark index per exchange and raised contract sizes, and its algo framework, in force for every broker from 1 April 2026, set the rules under which retail algos now run.56 A strategy builder today has to do both jobs: draw the shape and run the rules.

Two halves: the payoff screen and the algo builder

The payoff screen

Add legs on the payoff screen and it shows, as you change them:

  • The payoff at expiry as a solid line, and today's value as a dashed line. The gap between the two is the time value still in the position.
  • Breakevens, the prices at which the position makes nothing at expiry.
  • Maximum profit and maximum loss, or "unlimited" where a leg is not covered.
  • Net credit or debit, what you receive or pay to open the position.
  • The Greeks for the whole position: delta, gamma, theta and vega.
  • Margin, from the margin calculator, so you can see how a protective wing changes the capital the position needs.

The payoff screen places nothing. It is a place to try shapes. When a shape is what you want, "Run as algo" turns its legs into an algo, ready for rules.

The algo builder

The algo builder is where the rules live. It opens with the legs from the payoff screen, from a template, or from a blank sheet, and adds four sets of settings: how each leg picks its contract, when the algo enters, how it exits, and on which days it runs. A new algo is saved switched off. Nothing happens until you switch it on, either live on your broker account or in Forward test with test money.

Templates

You can start from one of 26 templates, grouped by market view:

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 Butterfly, Put Butterfly, Jade Lizard, Broken Wing Call and Put Butterflies, Call and Put 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 of it: the strikes, the lots, the entry, the exits. Templates are not recommendations. They are the common shapes, written out so you do not have to build each from nothing.

How a strategy goes from idea to live

Step 1: Choose the instrument and the legs

Pick the underlying, such as Nifty or Bank Nifty, a stock, or a commodity or currency contract, then add each leg: buy or sell, call, put or future, and the number of lots. Index options trade on NSE and BSE; Nifty and Sensex have weekly expiries, while Bank Nifty and other NSE indices expire monthly.

Each leg is either fixed or a rule leg:

  • A fixed leg is one exact contract, this strike and this expiry. When the contract expires, the algo stops and says so; you edit it to move to the next expiry.
  • A rule leg picks its contract fresh at each entry, such as "the ATM call of the weekly expiry", so the algo keeps running week after week.

Step 2: Choose how each rule leg picks its strike

ChoiceMeaning
ATMThe strike at the money
ITM n or OTM nn strikes in or out of the money, from 1 to 20
PremiumNearest to, at or above, or at or below a premium you set
Delta, theta, gamma or vegaThe strike whose Greek is nearest your value
Straddle widthATM plus a multiple of the ATM straddle premium, from −5 to 5
% of straddleATM plus a percentage of the ATM straddle premium
% from ATMThe strike nearest the price moved by your percentage

The price the strike is counted from can be the spot, the future, or a synthetic future made from the ATM call, the ATM put and the ATM strike. Expiry is weekly, next weekly, monthly or next monthly for options, and the current or next month for futures. If the prices or Greeks a leg needs are missing at the moment of entry, the algo waits and says why. It never guesses a strike.

Choosing strikes by rule rather than by number matters for automation. A strategy that always sells the ATM straddle picks the right strikes on any day. One written for "25,000 CE" works only while the market sits near 25,000.

Step 3: Set the entry

Entry modeWhat it does
At the timeEvery leg enters at the entry time
Wait and tradeEach leg waits from the entry time until the premium or the underlying moves by the points or per cent you set, then enters
Opening range breakoutThe algo reads the high and low of the first 1 to 180 minutes and enters on the first price above the high or below the low

Buy legs always go first, and sell legs only after the buys have filled, so a hedge is in place before the option it protects is sold. On exit it is the reverse: sold legs are bought back first.

Each leg also has an entry order type: market, limit at a fixed price or at the last price plus or minus a buffer, stop-limit for a breakout entry, or "modify until filled", which moves an unfilled limit order to the last price up to 10 times and then cancels it or sends it at market, as you choose. A lazy leg does not enter with the others; it enters when another leg enters, hits its target or hits its stop, in chains up to 10 legs long.

If you want an entry on an indicator, such as a moving-average cross on the index, a signal algo can watch that condition on closed candles and start the algo when it fires.

Step 4: Set the exits on each leg

SettingChoices
TargetPoints, per cent, underlying points, underlying per cent, delta, theta, gamma or vega
Stop lossThe same choices
Count fromThe traded price, the price the entry was decided on, or the last price when the order was sent
Trailing stopFor every X the leg moves in your favour, the stop moves Y; it only ever tightens
Stop to costMove the stop to cost once the leg is X in profit, or when another leg's stop is hit
On a hitExit this leg only, or exit every leg
After a hitEnter the leg again, or enter it on the opposite side, 1 to 20 times a day

There is also one simple setting for the whole algo: a stop loss on each leg as a percentage of its traded price, with re-entry at cost up to 5 times a day. Every exit order only reduces a position. It can never open a new one.

Step 5: Set the exits for the whole algo

SettingWhat it does
Exit timeEvery leg is squared off at this time
M2M target and stop in rupeesEvery leg exits when the algo's profit or loss today reaches the amount
M2M per centThe same, as a percentage of the open legs' entry premium
Net delta or theta bandExits when the algo's net delta or theta leaves the band you set
What a hit doesExit all legs, exit the losing or the winning legs, square off and re-enter, or reverse
Lock profit and trailOnce M2M reaches X, lock Y; for every Z more, raise the lock by W

Targets, stops, the lock and the entry conditions are read on every tick, or once per 1, 3, 5 or 15-minute candle close, as you choose. The entry time, the exit time and exits already owed are never delayed.

Step 6: Set the days, the product and the size

Choose Intraday or Overnight, every trading day or only the weekdays you pick, and a quantity multiplier from 1 to 50 that scales every leg and every rupee target and stop. A next-day exit carries the legs entered today and exits them at a set time on the next trading day. Market holidays are skipped.

Step 7: Test, then switch it on

Send the strategy to backtesting to see how its rules would have behaved over past days, then run it in a Forward test on live prices with test money. When the Forward test behaves the way the backtest suggested, switch it on live with the smallest size it allows.

Try it: payoff preview

Interactive payoff chart: change the spot, IV, lot size and days to expiry to see the curve, breakevens and Greeks.

A worked example: an automated short straddle on Nifty

Here is how a common intraday strategy looks once it is set up.

  1. Template: Short Straddle, Nifty, weekly expiry.
  2. Legs: sell 1 lot of the ATM call and 1 lot of the ATM put, both rule legs.
  3. Entry: at the time, 9:20 am, every trading day.
  4. Stop loss on each leg: 25% above its traded price.
  5. After a hit: re-enter at cost once a day.
  6. M2M stop for the algo: exit every leg if today's loss reaches the rupee amount you set.
  7. Exit time: 3:10 pm.
  8. Monitoring: every tick for the stops.

Each rule is written down, so the backtest, the Forward test and the live algo behave the same way. If one leg is stopped out and the market then turns, the re-entry puts the leg back at its original price; if it is stopped a second time, the leg stays out for the day.

A worked example: a hedged iron fly with defined risk

Using the illustrative prices in the payoff preview above, with Nifty at 25,000, 12 days to expiry and a lot of 65 units:

  • Buy the 24,700 put at ₹113.40, sell the 25,000 put at ₹227.10, sell the 25,000 call at ₹280.50 and buy the 25,300 call at ₹150.10.
  • Net credit: ₹244.10 a unit, or about ₹15,867 a lot.
  • Maximum loss: about ₹3,634 a lot, reached if Nifty expires beyond either wing.
  • Breakevens: about 24,756 and 25,244.

The long wings cap the loss and cut the margin compared with a naked straddle. The payoff screen shows these numbers as you move the wings, so you can weigh the credit you collect against the loss you can accept. "Run as algo" then carries the four legs into the algo builder, where you add the entry time, a stop on the combined position and an exit before expiry day.

Entry rules in practice

Time windows. Option premiums decay through the day, so a short straddle entered at 9:20 am behaves differently from one entered at 11:00 am. Test several entry times in a backtest and keep one that holds up across months, not the single best.

Waiting for a move. Wait and trade suits strategies that should enter only after the market has chosen a direction, such as selling the put only after the index has risen half a per cent from the entry time.

Breakouts. The opening range breakout mode reads the high and low of the first minutes and enters on a break, on the underlying or on the option itself. The range length, from 1 to 180 minutes, is the setting that matters most.

Position size. Size is set in lots, scaled by the multiplier. Work it out from the loss you accept. Say you sell a Nifty straddle with a combined stop ₹40 above the premium collected and will risk ₹10,000: one lot of 65 risks ₹2,600, so three lots risk ₹7,800 and four would risk ₹10,400. The answer is three lots. A stop is a trigger, not a guaranteed price: if the premium jumps ₹100 at the open, three lots lose ₹19,500 before the stop can act. The position size calculator does this sum for any trade.

Exit rules in practice

Per-leg against combined stops. A per-leg stop exits each leg on its own premium and reacts fast to a one-sided move. An M2M stop on the algo watches the whole position and avoids closing one leg on noise while the other is making money. Many option sellers use both: a per-leg stop for sharp moves and an M2M stop as the last line.

Trailing and locking. A trailing stop moves a leg's exit as the leg gains. Lock profit and trail does the same for the whole algo: once the day's M2M reaches a level, part of it is locked, and the lock rises as the M2M rises.

Greek bands. A net delta band exits a supposedly neutral position when it stops being neutral, which is often the clearest sign that a straddle or condor has been run over.

Time exits and expiry. Intraday algos square off at a set time. Positional ones can exit before expiry day to avoid the sharp gamma of the last session.

Account safety above every algo

The account's own controls sit above every strategy you build:

  • The kill switch stops trading in the segments you choose until their next session. Running algos in those segments stop, and switching it on needs your second factor.
  • The daily loss limit refuses new orders once today's loss reaches it.
  • Smart Exit sets a profit target, a stop loss and a trail for the whole account; on a hit it stops the algos and squares off.
  • A cap on orders a day is optional.

The loss figure behind these controls adds up every broker you have connected, so two accounts cannot hide a loss from each other.

Start with 500 free tokens

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

What you see while a strategy runs

Once a strategy is live, you supervise it rather than operate it. Its card shows:

  • Its state and today's legs with their fills.
  • Its M2M for the day.
  • A line for anything it is waiting on, such as a missing price or a broker that needs signing in.

Its activity log records every entry, exit, re-entry, change and refusal in one plain line each, with "Copy log" for any day. You can pause it, which stops new entries but keeps the open legs' targets, stops and exit time; stop it and square off its positions; or stop it and keep its positions, which are then yours to manage. Edits are possible only while an algo is off.

Running several strategies at once

Correlated positions. A short straddle on Nifty and an iron condor on Sensex both lose on the same large move, because the two indices move closely together. Running both doubles your exposure to one event.

Account-level limits. Set Smart Exit and a daily loss limit for the whole account as well as stops for each algo. If several algos lose at once, the account limit ends the day before the losses compound.

Capital. Decide how much margin each algo may use. A strategy that needs more margin on a volatile day should not crowd out the others.

Staggered entries. Entering several premium-selling algos at the same minute concentrates risk at one price. Spreading entries across time or strikes smooths the result.

Up to 20 algos can run at a time, and up to 50 can be saved.

Strategy builder or code?

FactorQuantPower strategy builderCoding in PythonManual trading
Skills neededKnowing your rulesProgramming and broker APIsDiscipline and screen time
Time to a first strategyMinutes to hoursDays to weeksNone, but no automation
Multi-leg executionBuilt in, hedge firstYou write and test itLegs placed by hand
Backtest and Forward testBuilt inYou source data and build themNot practical
Stops, M2M limits, kill switchSettingsYou code and watch themRelies on you
Static IPTwo includedYou arrange oneNot needed
MaintenanceHandled by the platformYours, including API changesNone

Code gives the most freedom. For most traders, the builder covers the rules they actually use, with testing, execution and risk controls already in place. For a custom indicator inside a rule, Arth Script lets you write it as a short formula, or describe it in words for Quanty to write.

Common mistakes when building strategies

Oversizing because the risk is defined. A hedged position has a known maximum loss, but that maximum can still be large. Size by the worst case.

Fixed strikes instead of rule legs. A strategy written for one strike only works while the market sits near it.

Ignoring costs. Say a strategy makes 200 trades a year with an average gross profit of ₹60 a trade, ₹12,000 in all. If charges and slippage average ₹55 a trade, ₹11,000 goes in costs and ₹1,000 is left. Add ₹10 more slippage a trade and it loses ₹1,000.

Too many conditions. Each extra filter can make a backtest look better while making the strategy more fragile.

Holding short options into the last hour of expiry. Gamma rises sharply for at-the-money options in the final hours. Decide in advance whether to exit before then.

No plan for a bad day. Every algo needs an M2M stop and an exit time, and the account needs a loss limit, set before it goes live.

Building for expiry day

Expiry day behaves differently from the rest of the week. Time value collapses through the session, and at-the-money options can swing from nearly worthless to valuable within minutes. Strategies built for expiry day usually enter later, use tighter stops because gamma makes losses grow fast, and exit at a fixed time before the close. In the builder you set the days to the expiry weekday only, a later entry time and a hard exit time. Since September 2025 NSE's weekly Nifty options expire on Tuesday and BSE's Sensex options on Thursday, so an expiry-day strategy on each runs once a week.7

Built for SEBI's retail algo framework

Since 1 April 2026, SEBI's framework for retail algorithmic trading has applied to every broker. Algo orders go through registered brokers, strategies offered to clients carry an exchange-assigned Algo ID, and API orders must come from a static IP registered with the broker.6 Every QuantPower account gets 2 static IPs free, a primary and a backup, and your orders leave from them. Your funds and positions stay with your broker. Once you switch an algo on, it runs automatically by its rules, with no further tap, until you pause or stop it.

Where strategy building is going

Two changes are under way. The first is language: assistants such as Quanty can now turn a sentence, "sell a Nifty strangle at 9:30 with a 30% stop on each leg", into the same legs and rules a trader would set by hand, saved switched off for the trader to check. The second is accountability: under the 2026 rules every algo order is tagged and traced to its broker, so the rules of a strategy are becoming part of the record, not only part of the trader's notebook. A builder whose every rule is visible suits both.

Pricing

The strategy builder and the payoff screen are free in QuantPower. Tokens (1 token = ₹1, GST extra) pay for running algos: a live algo costs 200 tokens per 28 days and a Forward test 100, with orders unlimited inside a running algo. A backtest costs 2 tokens, with the first 10 each week free. See pricing.

Frequently asked questions

Do I need coding skills to use the strategy builder?

No. You set the legs, the entry, the exits and the stops through menus and fields. If you can write your strategy as a list of rules, you can build it.

Which instruments can I build strategies on?

Index and stock options, index and stock futures, and commodity and currency contracts, on NSE and BSE and the commodity exchanges.

How many legs can a strategy have?

An algo that runs can have up to 6 legs, enough for an iron condor with a hedge or a broken-wing butterfly. Lazy legs that enter later count towards the six.

Can an algo pick a new strike every day?

Yes. A rule leg picks its contract fresh at each entry, by ATM, by distance in strikes, by premium or by a Greek, so the algo keeps running week after week without editing.

What happens if my algo cannot find a price for a leg?

It waits and shows why on its card. No strike, target or stop is ever decided on a guess.

Can Quanty build a strategy for me?

Yes. Describe it in words, and Quanty builds the legs and rules and saves the algo switched off, for you to check, backtest and switch on yourself. A build request costs 5 tokens.

References

  1. Edward J. Swan, *Building the Global Market: A 4000 Year History of Derivatives* (2000), on early options in Amsterdam and London
  2. Fischer Black and Myron Scholes, "The Pricing of Options and Corporate Liabilities", *Journal of Political Economy* (1973); Cboe, history of the exchange, opened 26 April 1973 (cboe.com)
  3. Lawrence G. McMillan, *Options as a Strategic Investment* (first published 1980), on payoff diagrams of option combinations
  4. NSE, history of index and stock derivatives: index options June 2001, stock options July 2001, Bank Nifty weekly options May 2016, Nifty weekly options February 2019 (nseindia.com)
  5. SEBI, circular "Measures to strengthen Equity Index Derivatives framework for increased investor protection and market stability", 1 October 2024 (sebi.gov.in)
  6. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, and the extension of 30 September 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
  7. NSE, circular on the revision of expiry days of derivatives contracts, effective 1 September 2025 (nseindia.com)
  8. QuantPower: templates, leg and strike rules, entry and exit settings and limits, from the app's code and docs/ALGO.md, checked 12 November 2026
The figures on this page are illustrative and based on model prices, not live quotes. Trading in futures and options involves substantial risk, and automated strategies can lose money. Backtested and hypothetical results do not guarantee future performance.