Test options strategies on NIFTY & BANKNIFTY
Backtest straddle, strangle, iron condor, and butterfly strategies on Indian index options. Full trade log with entry/exit prices, P&L per trade, win rate, and drawdown analysis.
Supports NIFTY, BANKNIFTY, FINNIFTY, and MIDCPNIFTY. Configurable entry time, SL/TP, and strike selection.
Sample backtest results
Real backtest output from options strategies run on Anadi Algo.
| Strategy | Period | Underlying | Legs | Trades | Win Rate | Net P&L | Max DD | Avg Win | Avg Loss |
|---|---|---|---|---|---|---|---|---|---|
| NIFTY Short Straddle | Dec'25-Feb'26 | NIFTY | ATM CE + ATM PE | 58 | 60.3% | +Rs.42,800 | -Rs.18,600 | +Rs.2,840 | -Rs.1,920 |
| BANKNIFTY Iron Condor | Nov'25-Feb'26 | BANKNIFTY | 4-leg IC (200pt wings) | 42 | 69.0% | +Rs.38,500 | -Rs.12,400 | +Rs.1,950 | -Rs.1,680 |
| NIFTY Strangle (1SD) | Oct'25-Feb'26 | NIFTY | 1SD OTM CE + PE | 95 | 61.1% | +Rs.56,200 | -Rs.22,800 | +Rs.2,120 | -Rs.2,460 |
| FINNIFTY Butterfly | Jan'26-Feb'26 | FINNIFTY | 3-leg butterfly | 18 | 66.7% | +Rs.8,900 | -Rs.4,200 | +Rs.1,280 | -Rs.960 |
Trade log: NIFTY Short Straddle
Dec'25-Feb'26Sample trades from the backtest. Every trade shows entry/exit time, premium, P&L, and exit reason.
| Date | Entry | Exit | Type | Entry Premium | Exit Premium | P&L | Exit Reason |
|---|---|---|---|---|---|---|---|
| 2026-02-03 | 09:20 | 14:45 | Short Straddle | Rs.342 | Rs.280 | +Rs.1,550 | TP hit (basket 18%) |
| 2026-02-04 | 09:20 | 11:32 | Short Straddle | Rs.358 | Rs.430 | -Rs.1,800 | SL hit (basket 20%) |
| 2026-02-05 | 09:20 | 15:15 | Short Straddle | Rs.310 | Rs.185 | +Rs.3,125 | Time exit |
| 2026-02-06 | 09:20 | 15:15 | Short Straddle | Rs.325 | Rs.240 | +Rs.2,125 | Time exit |
| 2026-02-07 | 09:20 | 13:08 | Short Straddle | Rs.380 | Rs.456 | -Rs.1,900 | SL hit (basket 20%) |
Total P&L
+Rs.42,800
Win Rate
60.3%
Max Drawdown
-Rs.18,600
Total Trades
58
Supported options strategy types
Multi-leg options strategies available for backtesting.
| Strategy | Legs | Risk | Reward | Best For | SL Method |
|---|---|---|---|---|---|
| Short Straddle | Sell ATM CE + Sell ATM PE | Unlimited | Premium collected | Range-bound markets, low volatility days | Basket SL (combined premium) |
| Short Strangle | Sell OTM CE + Sell OTM PE | Unlimited | Lower premium, wider breakeven | Range-bound with buffer zone | Per-leg or basket SL |
| Iron Condor | Bull put spread + Bear call spread | Defined (wing width - premium) | Net premium collected | Defined risk range-bound trades | Max loss = wing width - premium |
| Butterfly | Buy 1 + Sell 2 + Buy 1 (same type) | Defined (net debit) | Max at middle strike | Precise directional view | Max loss = net debit paid |
| Bull/Bear Spread | Buy 1 + Sell 1 (same type, diff strikes) | Defined | Defined | Directional with capped risk | Max loss = spread width - premium |
Supported underlyings
Indian index options available for backtesting.
NIFTY 50
BANKNIFTY
FINNIFTY
MIDCPNIFTY
Backtest configuration parameters
Every parameter you can configure for an options backtest.
| Parameter | Description | Example Values |
|---|---|---|
| Date Range | Start and end date for backtest period | 2025-10-01 to 2026-02-28 |
| Underlying | Index to trade options on | NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY |
| Strategy Type | Options strategy template | Straddle, Strangle, Iron Condor, Butterfly |
| Strike Selection | How strikes are chosen | ATM, 1SD OTM, fixed offset (e.g. 200 pts) |
| Entry Time | Time of day to enter the trade | 09:20, 09:30, 10:00 |
| Exit Time | Intraday square-off time | 15:15, 15:20, 15:25 |
| SL Mode | Stop loss type | Per-leg %, basket premium %, absolute Rs. |
| TP Mode | Take profit type | Per-leg %, basket premium %, absolute Rs. |
| Fill Model | How entry/exit prices are determined | Next Open, Next Close |
| Lots | Number of lots per leg | 1, 2, 5 |
Frequently asked questions
Can I backtest NIFTY weekly options strategies on Anadi Algo?
Yes. Anadi Algo supports backtesting on NIFTY, BANKNIFTY, FINNIFTY, and MIDCPNIFTY weekly options. You can test straddle, strangle, iron condor, butterfly, and spread strategies with configurable entry/exit times, strike selection, and stop loss modes. Results include full trade log, equity curve, win rate, and drawdown.
What data is used for options backtesting?
Options backtests use historical candle data for the underlying index to determine ATM strikes and compute entry/exit prices. Strike selection is based on the underlying price at entry time. Premium decay and movement are modeled using the fill model you select (Next Open or Next Close).
How accurate is options backtesting compared to live trading?
Backtesting uses historical data and fill models that approximate real execution. Actual slippage, bid-ask spreads, and liquidity may differ in live markets. We recommend paper trading any strategy that passes backtesting to validate execution before going live.
Can I set basket-level stop loss for multi-leg options strategies?
Yes. For multi-leg strategies (straddle, strangle, iron condor), you can set a basket-level SL based on total premium. For example, exit all legs when combined premium loss exceeds 20% of collected premium. Per-leg SL is also available.
Related features
Options Hedge Baskets
Build and manage multi-leg options positions. Per-leg roll/close, combined P&L, hedge control.
Options Hedge Baskets →Equity Backtesting
Backtest equity strategies on 5 years of NIFTY 500 candle data. Static or dynamic instrument selection.
Equity Backtesting →BANKNIFTY Strategy Builder
Build BANKNIFTY-specific strategies using AI Chat Wizard. Intraday and positional.
BANKNIFTY Strategy Builder →Backtest your options strategy before risking real capital
If it does not work in backtest, it will not work live. Test straddles, strangles, iron condors on historical data.