Strategy explainer

Iron Condor Backtest on NIFTY: Defined-Risk Range Strategy Explained

An iron condor on NIFTY sells one out-of-the-money call and one OTM put for premium, then buys a further-OTM call and put as protective wings. It profits if NIFTY stays range-bound and expires between the short strikes; the wings cap the loss, making it defined-risk. Algoshastra cannot fully backtest credit strategies yet, but you can visualise the four-leg payoff and defined risk free in the strategy builder. This is general information, not investment advice.

What an iron condor is and the four legs

An iron condor is a market-neutral, defined-risk options structure built from four legs at four different strikes, all in the same expiry. Two legs form a bear call spread above the current NIFTY level, and two legs form a bull put spread below it. You collect a net premium (a credit) for putting it on, and the trade wins if NIFTY drifts sideways and stays between the two short strikes through expiry.

On NIFTY (lot size 75), a single condor is four lots of 75. Think of it as a short strangle with insurance: instead of nakedly selling a call and a put, you buy cheaper, further-OTM options as wings so a sharp move cannot inflict unlimited damage. This is purely a mechanics explainer, not a recommendation to trade it.

  • Sell 1 OTM call (e.g. above spot) — collects premium, the upper short strike
  • Buy 1 further-OTM call (the upper wing) — caps upside risk
  • Sell 1 OTM put (e.g. below spot) — collects premium, the lower short strike
  • Buy 1 further-OTM put (the lower wing) — caps downside risk
  • Net effect: a credit received up front, with both sides hedged

Why it is called defined risk

The phrase defined risk means your worst-case loss is known and capped the moment you open the trade — unlike a naked short straddle or strangle, where a large move can produce an open-ended loss. In an iron condor, each spread has a fixed width between its short and long strike. If NIFTY blows through one side, the long wing on that side gains value at the same rate the short leg loses it once price moves past the wing, so the loss stops growing.

Your maximum loss is the wider of the two spread widths minus the net credit you received (multiplied by the lot size). Your maximum profit is simply the net credit you collected, kept in full only if NIFTY expires between the two short strikes. Because risk is capped, margin is generally lower than naked selling — but capped does not mean small or safe, and the most likely single outcome of any defined-risk credit trade can still be a loss.

Breakevens and reading the payoff

An iron condor has two breakevens, one on each side, and a flat profit plateau in the middle. The upper breakeven is the short call strike plus the net credit per share; the lower breakeven is the short put strike minus the net credit per share. As long as NIFTY at expiry lands between those two points, the position is at or above breakeven; outside them, it moves toward the capped maximum loss.

The classic payoff diagram looks like a wide tabletop: a flat top across the zone between the short strikes (your maximum profit region), sloping down on both sides to two flat shelves (your capped losses) beyond the wings. Reading it well means checking three things — how wide the profit zone is versus how far NIFTY typically moves, how much credit you collect relative to the maximum loss, and where the two breakevens sit relative to support and resistance.

  • Upper breakeven = short call strike + net credit (per share)
  • Lower breakeven = short put strike − net credit (per share)
  • Max profit = net credit, kept if expiry is between the short strikes
  • Max loss = widest spread width − net credit (× lot size of 75)
  • Profit zone width vs. expected NIFTY range is the key trade-off

Visualise it free in the Algoshastra strategy builder

Algoshastra's backtester today is built for long-option strategies — buying calls and puts — on real 5-minute NIFTY and SENSEX options history. A credit structure like the iron condor involves selling options to open plus margin treatment, which the backtest engine does not fully model yet. So we are not going to hand you a backtested condor result and call it representative — that would be dishonest.

What you can do right now, free, is build the exact four-leg condor in the options strategy builder and see its expiry payoff, both breakevens, the maximum-profit plateau, and the defined maximum loss for your chosen strikes and wing widths. It is the fastest honest way to understand the shape and risk of the structure before any real-data backtest exists for it.

  • Open the free payoff calculator at /tools/options-strategy-builder
  • Add the four legs: short call, long call wing, short put, long put wing
  • Read off both breakevens, max profit, and capped max loss instantly
  • No login or money required — it is an educational visualisation tool

What full credit-strategy backtesting will add

Seeing a payoff diagram tells you the shape of a single condor at a single expiry; it does not tell you how the structure would have behaved across hundreds of NIFTY expiries — how often price stayed inside the short strikes, what the drawdown looked like in a trending month versus a range-bound one, or how brokerage, STT and slippage chipped at the credit over time. That is what a real, position-aware backtest answers, and it is what we are building toward for credit strategies.

Full short-premium and margin modelling for structures like the iron condor and short straddle is on the Algoshastra roadmap. Until it ships, treat the payoff builder as your visualisation layer and use the long-option backtester for strategies you can test today, such as a simple EMA-crossover that buys options. When credit-strategy backtesting arrives, you will be able to run a condor over real history and read its win rate, drawdown shape and behaviour yourself.

Honest framing and risk

Algoshastra is a strategy-verification platform. It is not SEBI-registered, there is no live-money trading, and nothing here is a recommendation to put on an iron condor or any other position. Index options carry real risk; a defined-risk label caps the worst case but does not remove it, and range-bound strategies can lose steadily when the market trends or gaps.

Use the builder to learn the mechanics, backtest on real historical data to see how a structure would have behaved without risking capital, and make your own decisions — ideally with a SEBI-registered adviser for anything involving real money. This page is general educational information about how the strategy is constructed, not investment advice.

How to read a backtest honestly
  • Algoshastra's backtester currently models long-option (buying calls/puts) strategies; credit/short structures like the iron condor are not fully backtestable yet, so no representative condor backtest result is shown here.
  • The free strategy builder shows an expiry payoff diagram for chosen strikes — it is a static snapshot of one structure, not a historical simulation across many expiries.
  • When credit-strategy backtesting ships, the long-option engine runs on 5-minute bars with a position-aware rolling-ATM feed — a sandbox approximation, not a tick-level replica of live fills.
  • Modelled costs (brokerage, STT, slippage) and intraday 3:15pm square-off are approximations; real-world fills, spreads and assignment can differ.
  • Everything in Algoshastra today is verification-focused — not SEBI-registered, no live money — and past or backtested behaviour is not indicative of future results.
Verify an options strategy without risking money

Describe it in plain English — Shastra builds and backtests it on real historical data, then you export it to your own broker. Free to start.

Try Shastra free
Backtest performance does not guarantee future returns.All trading involves capital loss risk.algoshastra is a strategy-verification platform, not a SEBI-registered adviser or broker.You are responsible for all trades placed on your broker account.Past performance is for educational reference only.Backtest performance does not guarantee future returns.All trading involves capital loss risk.algoshastra is a strategy-verification platform, not a SEBI-registered adviser or broker.You are responsible for all trades placed on your broker account.Past performance is for educational reference only.