Options strategies
Build multi-leg options strategies without code
Straddles, strangles, spreads and iron condors are, underneath, a few legs that share an entry rule and an exit rule. In TradeLayout each leg is an Entry node, and the rules around them are conditions you draw — so the strategy is exactly as simple or as specific as your idea.
Built for Indian intraday options traders: NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY and stock options strategies can be backtested on historical data, paper traded on live prices, and run live through your own Zerodha or Angel One account on a plan that includes live trading.
- Start nodeStrategy setupNIFTY · Options1m candles
- Condition nodeEntry timeTime is 09:20
Opened together
Entry nodeSell CEATM · W0 · 1 lotEntry nodeSell PEATM · W0 · 1 lot- Condition nodeStop or timeP&L ≤ −₹2,000OR time ≥ 15:10
- Exit nodeClose both legsAll lots
Worked example: a real NIFTY short straddle
1. The rules, in plain words. At 09:20, sell 1 lot of the at-the-money NIFTY call and put of the nearest weekly expiry. If the combined loss reaches ₹2,000, exit both legs. Otherwise exit at 15:10.
2. On the canvas. That idea becomes the nodes in the diagram above: a strategy setup (NIFTY options, 1-minute candles), a time condition, two Entry nodes (sell ATM CE and PE, nearest weekly), a stop-or-time condition, and an Exit that closes both legs. A square-off closes anything left open before the market closes.
3. The backtest. TradeLayout ran it over 64 trading days (20 Jul 2026 to 19 Oct 2026), with every charge added:
- 128 trades, 36 winning days and 28 losing days
- +₹1,359 before charges
- ₹8,044 in brokerage, STT, exchange fees, stamp duty and GST
- −₹6,685 after charges
- The stop was hit on 25 days; the 15:10 exit closed the other 39
The result is a loss after charges, and we show it anyway. That is what a backtest is for: finding out before real money does. The full NIFTY straddle backtest guide has the day-by-day results, the equity curve and how each charge is calculated.
Legs: one Entry node each
Each Entry node opens one leg. For an options leg you set:
- Call (CE) or put (PE)
- Buy or sell
- Quantity in lots (lot size from the exchange contract)
- Intraday (MIS) or carry forward (NRML)
- Strike — see below
- Expiry — see below
A four-leg iron condor is four Entry nodes after the same condition; a ratio spread is two Entry nodes with different quantities. Legs can also be entered at different times by putting them behind different conditions.
Strike selection
The strike is resolved when the leg is entered, from the contracts listed at that moment:
- ATM — the strike nearest the underlying
- ITM1–ITM15 / OTM1–OTM15 — steps along the strike ladder
- Closest premium — the strike trading nearest a ₹ value
- Closest Greek — nearest a target delta, gamma, theta, vega or IV
- Points from spot — the nearest strike beyond spot ± N
- An expression — computed from your own values
Greeks for strike selection are computed with the Black-Scholes model.
Expiry handling
Expiries are relative, so a strategy keeps working week after week: W0–W4 (current to fourth weekly expiry), M0–M2 (monthly), Q0–Q1 (quarterly) and Y0–Y1. They are resolved from the expiries that actually exist for each trade date, so a backtest follows the real expiry calendar. Conditions can also use days to expiry — for example, to skip expiry day.
Exits, stop-losses and daily limits
Stop-losses and targets are conditions connected to Exit nodes. That makes them flexible: a stop can watch one leg's premium, the combined P&L of all legs, the underlying's price, an indicator, or the time — and an Exit can close everything, a percentage, or a number of lots.
For the whole strategy, a Square-off node can end the day:
- At a fixed time, or N minutes before the close
- When a daily profit target (₹) is reached
- When a daily loss limit (₹) is reached
- Immediately, when the flow reaches it
Intraday legs that are still open are also squared off automatically 5 minutes before the market closes.
Re-entries
After a leg is stopped out, a Re-entry condition decides whether and when it can be taken again — for example, once the original entry signal is true again, but not after 14:30 — up to a maximum number of entries per leg. Re-entries only fire when that leg is flat, so a strategy can't stack duplicate positions by accident.
Backtest, then trade
NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY and stock options strategies can be backtested on historical data with strikes and premiums from the contracts traded on each day, and then paper traded on live prices — see automated trading. On a plan that includes live trading, the same strategy then places live orders through your own Zerodha or Angel One account (see pricing).
Why live results can differ from a backtest
A backtest shows how your rules would have behaved on past data. It does not promise future results. Live trading can come out worse because of:
- Slippage: the worked example assumes no slippage, but real market orders often fill at a worse price, especially on fast moves and expiry days.
- Bid–ask spreads and liquidity: far OTM strikes can have wide spreads and thin volume.
- Timing: a real order is placed a moment after the signal, not at the exact candle price.
- Changing markets: a period that suited the strategy may not repeat.
- Charges: rates change over time; the worked example uses the rates in effect for the period tested.
Paper trade a strategy on live prices before you risk money, and size it so that its worst backtest days are losses you could accept. More in backtest vs live trading.
Current limitations
What this does not do today, so you can decide before you sign up:
- There are no per-leg stop-loss, target or trailing-stop switches; build them as condition + exit nodes.
- Options are available for NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY and ten large-cap NSE stocks; SENSEX and BANKEX options cannot be built or backtested yet.
- Stock options have monthly expiries only.
- Daily profit target and loss limit are in rupees; percentage limits are not supported.
- Orders are market orders; limit orders are not available yet.
Questions
Can I build an iron condor or a strangle?
Can I pick strikes by delta or premium?
How do weekly expiries work in a backtest?
How do I set a stop-loss on the combined position?
Which underlyings are supported?
Do I need to know how to code?
Will my live results match the backtest?
Does the backtest include charges?
Related
- Worked example: NIFTY straddleA real backtest, start to finish, with every charge.
- Algo backtestingHow options backtests resolve strikes and fills.
- Visual strategy builderAll the node types and conditions.
- Automated tradingPaper trade and run it live.
- Entries & exits docsEntries, exits, re-entries and square-off.
Try it on your own idea
Sign up free, build the strategy on the canvas, and backtest it before you connect a broker. Trading involves risk of loss; a backtest is not a promise of future results — see the risk disclaimer.