QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Option selling · positionalPositionalNIFTYhigh complexity

Regime credit spreads

This positional NIFTY strategy sells a weekly credit spread whose shape depends on the market regime. A trending market, read from daily ADX and Supertrend, gets a one-sided spread in the trend's direction; a quiet market with balanced open interest gets an iron condor. Nothing is sold when India VIX is near the bottom of its yearly range, on the idea that cheap premium is not worth the risk.
Sells a NIFTY weekly credit spread or iron condor chosen by daily ADX and Supertrend, only when India VIX is not near its yearly low, and holds it for a few days.
Market viewNeutral / range-bound
TradesNIFTY weekly options, 2 or 4 legs, hedged
RiskDefined (max loss known at entry)
CapitalHedged option-selling margin
SuitsAdvanced
Trades a month5
Typical hold2 days
Profitable months7 of 12
Longest losing run3 trades
Made money inNIFTY staying within 1% while heldEntries after choppy, wide-range daysEntries after a gap-up open
Lost money inNIFTY moving over 1% while heldEntries after quiet, narrow-range daysIndia VIX in the normal 11.5-14.5 band
Default settings
Symbol
Entry time
Min DTE
Max DTE
IV rank floor
ADX n
ADX trend
St period
St mult
Range score th
Mp band %
PCR band
Conc strikes
Conc scale
Short delta
Max pot
Wall k
Near wall strikes
Wall strikes
Width strikes
Target %
SL %
Min DTE exit
Exit time
Lots
Backtest this strategy →Change any setting, pick your own period and run it in the Quantsapp web app. Backtesting is part of the Max plan. Pro+ members can use it now as a free trial.
1

How it trades

What it trades
Universe
NIFTY Positional · 1 Oct 25 → 30 Sep 26
Enters
15:15 when flat: put spread in an uptrend, call spread in a downtrend, condor in a range
Legs
SELL PE · OTM put nearest 0.175 delta, not on an OI wall · Weekly with 5-9 days left · 1 lotBUY PE · 4 strikes below the sold put · Same weekly · 1 lotSELL CE · OTM call nearest 0.175 delta, not on an OI wall · Weekly with 5-9 days left · 1 lotBUY CE · 4 strikes above the sold call · Same weekly · 1 lot
Exits
target 50% of the credit receivedstop Loss equal to 100% of the creditexpiry 15:15 one trading session before expiry
Re-entry
Next qualifying day once flat
Gate
India VIX rank (previous close versus the previous IVR_LOOKBACK closes, 0-100) below IV_RANK_FLOOR -> no trade.
Regime
daily ADX(ADX_N) above ADX_TREND -> TREND, direction from Supertrend(ST_PERIOD, ST_MULT); else RANGE. Both as of the previous close.
Entry
when flat, at ENTRY_TIME on the nearest weekly with MIN_DTE..MAX_DTE calendar days left - TREND up -> bull put spread; TREND down -> bear call spread; RANGE with range score >= RANGE_SCORE_TH -> iron condor (both spreads); RANGE below it -> no trade. Range score (0-100) = mean of three parts read from that moment's chain OI: max-pain proximity (100 when the forward sits on max pain, 0 at MP_BAND_PCT % away), PCR balance (100 at PCR 1, 0 at 1 +/- PCR_BAND) and OI concentration (% of all OI within CONC_STRIKES strikes of ATM, x CONC_SCALE).
Strike
the short is the OTM option whose |delta| is closest to SHORT_DELTA among those with a probability of touch (~2 x |delta|) at most MAX_POT and NOT at an OI wall (OI >= WALL_K x the median OI of the WALL_STRIKES strikes either side) nor within NEAR_WALL_STRIKES strikes of one. The long is WIDTH_STRIKES strikes further out. LOTS each.
Exits
target TP_PCT % of the credit; stop when the loss reaches SL_PCT % of the credit; otherwise EXIT_TIME MIN_DTE_EXIT trading sessions before expiry.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 60 trades · before costs
Net P&L+₹5
Win rate70%
Max drawdown−₹9,750
Avg per trade+₹0
Profit factor1
Worst trade−₹4,319
3

Where it made and lost money

In this test the spreads earned only when the market sat still after entry. When NIFTY stayed within 1% during the hold, the trades made ₹16,019 over 26 with an 88% win rate; a fall of more than 1% cost ₹10,387 over 13, and a rise of more than 1% cost ₹6,313 over 20, as one short side was pushed to its stop. Entries after choppy, wide-range days made ₹14,280 over 24, while entries after quiet, narrow-range sessions lost ₹11,428 over 15. Entries with India VIX above 14.5 made a modest ₹4,053 over 35; the normal 11.5-14.5 band lost ₹4,734 over 24. All figures are before costs.

Market while the trade was held
NIFTY rose over 1% while held−₹6,31320 trades65% won
NIFTY within ±1% while held+₹16,01926 trades88% won
NIFTY fell over 1% while held−₹10,38713 trades38% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹11,42815 trades53% won
Trend day (closed near the high or low)−₹3,53320 trades65% won
Choppy day (wide range, closed mid-range)+₹14,28024 trades83% won
How the entry day opened
Gap up of 0.4% or more+₹7,89817 trades88% won
Flat open−₹1,84828 trades68% won
Gap down of 0.4% or more−₹6,73114 trades50% won
Day of the week
Monday+₹4,62021 trades76% won
Tuesday−₹5,35310 trades50% won
Wednesday+₹7,11414 trades86% won
Thursday−₹3,59113 trades62% won
India VIX the evening before
VIX 11.5-14.5 (normal)−₹4,73424 trades71% won
VIX above 14.5 (nervous)+₹4,05335 trades69% won
Expiry day (NIFTY weekly)
Expiry day−₹4,71013 trades54% won
Other days+₹4,02946 trades74% won
Session direction on the entry day
NIFTY closed above its open−₹2,84830 trades67% won
NIFTY closed below its open+₹2,16829 trades72% won
Trend going in
Uptrend (NIFTY above its 20-day average)+₹31221 trades67% won
Downtrend (NIFTY below its 20-day average)−₹99238 trades71% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. At 15:15 each day, if no position is open, rank the previous India VIX close against the past 252 sessions; skip the day if the rank is below 20.
  2. Read the previous day's ADX(14). Above 20 counts as a trend, and Supertrend(10, 3) gives its direction; otherwise the market is treated as a range.
  3. Pick the nearest NIFTY weekly expiry with 5 to 9 calendar days left.
  4. Uptrend: sell a bull put spread. Downtrend: sell a bear call spread. Range: score the option chain's open interest (closeness to max pain, PCR near 1, OI packed near the money) and sell an iron condor only if the score is 60 or more.
  5. Each short leg is the out-of-the-money strike nearest 0.175 delta that is not itself an OI wall; the protective long is 4 strikes further out.
  6. Book profit at 50% of the credit collected, or stop out when the loss equals the full credit.
  7. If neither is hit, close at 15:15 one trading session before expiry.

Why traders use it

Option sellers often lose by holding the wrong structure for the market: a condor in a strong trend, or a one-sided spread in a chop. Letting ADX decide between a directional spread and a condor tries to match the trade to the conditions. The VIX filter avoids selling when premiums are thin, and steering short strikes away from heavy OI strikes keeps them off levels where price tends to stall and whipsaw. Defined-risk spreads also need far less margin than naked shorts.

Works best whenNIFTY stays within roughly 1% of the entry level for the two or so days the spread is held. Entries after a wide-range, choppy session and after a gap-up open did well in this test, and higher India VIX helped a little.
Struggles whenNIFTY moves more than 1% in either direction during the hold, falls especially, pushing a short side to its stop. Entries after quiet, narrow-range sessions, after a gap-down open, and with VIX in the normal 11.5-14.5 band also lost money in this test.

The year in plain words

On NIFTY from 1 Oct 2025 to 30 Sep 2026 with default settings, the strategy took 60 trades and won 70% of them, yet finished flat before costs at ₹5, a profit factor of 1.00 and a maximum drawdown of ₹9,750. That is the classic credit-spread trap: 42 trades hit the 50% target for an average ₹1,015, while the 18 losers, 17 of them stops, averaged a much bigger ₹2,368. May (₹5,391) was the best month; August lost ₹4,319 and November ₹2,692. After ₹20 per order and bid-ask slippage on four-leg condors and two-leg spreads, the result is a ₹44,361 loss. With no edge before costs, the many legs decided the outcome.

What the settings do

Entry timeWhen the spread is sold, using the previous day's indicators. The default 15:15 makes it a near end-of-day entry.Min DTEThe fewest calendar days to expiry an expiry may have to be traded. Raising it holds positions longer and collects more premium.Max DTEThe most calendar days to expiry allowed. Together with MIN_DTE it decides which weekly is picked and on which days a trade can start.IV rank floorThe minimum India VIX rank (0-100) needed to trade. A higher floor trades less often and only when premiums are relatively rich.ADX nThe look-back of the daily ADX. Shorter periods react faster to new trends but flip regime more often.ADX trendThe ADX level above which the market counts as trending. Raising it sends more days to the range branch and the condor check.St periodThe ATR period inside Supertrend, which sets the trend direction. Shorter periods change direction sooner.St multHow many ATRs Supertrend sits from price. A larger multiplier flips direction less often.Range score thThe open-interest range score an iron condor needs. A higher threshold means fewer condors and more skipped range days.Mp band %How far, in percent, the forward may sit from max pain before the max-pain part of the score falls to zero.PCR bandHow far the put-call ratio may stray from 1 before the PCR part of the score falls to zero. A wider band is more forgiving.Conc strikesHow many strikes either side of the money count when measuring how concentrated open interest is.Conc scaleThe multiplier that turns the share of OI near the money into a 0-100 score. Larger values make the concentration part easier to max out.Short deltaThe target delta of each sold option. Higher deltas sit closer to the money, collect more credit and are tested more often.Max potThe highest allowed probability of touch (roughly twice the delta) for a short strike, which caps how close it can be.Wall kHow much larger a strike's OI must be than its neighbours' median to count as a wall that shorts avoid.Near wall strikesExtra strikes either side of a wall that are also avoided. At the default 0 only the wall strike itself is skipped.Wall strikesHow many neighbouring strikes on each side form the median used to spot an OI wall.Width strikesHow many strikes beyond the short the protective long is bought. Wider spreads collect more credit but can lose more.Target %The share of the credit that is booked as profit. A lower target exits sooner and wins more often but keeps less each time.SL %The loss, as a share of the credit, that triggers the stop. 100 means the trade is closed once it has lost as much as it collected.Min DTE exitHow many trading sessions before expiry an untouched position is closed, so it never sits through expiry day.Exit timeThe time of that pre-expiry exit on the chosen session.

Risks

  • Positions are held overnight, so gaps can push losses past the 100% stop before an exit is possible.
  • Average losses are larger than average wins, so a short run of stops can erase many targets.
  • Every condor has eight orders round trip, and costs turned a flat result before costs into a sizeable loss after costs.
  • The regime is read from the previous close and can be stale by the time the trade is placed.
  • The open-interest score and wall thresholds are judgement calls that have not been validated beyond this period.

Who it suits

Traders interested in rule-based, defined-risk option selling who want the structure chosen by indicators rather than by feel, who can hold positions for several days, and who will study how costs and leg count affect small-credit trades.

5

Questions traders ask

How does this strategy choose between a bull put spread, bear call spread and iron condor?

It checks the previous day's ADX(14). Above 20, the market is trending and Supertrend(10, 3) decides the direction: up gets a bull put spread, down gets a bear call spread. At or below 20, it scores the option chain's open interest and sells an iron condor only when the score reaches 60.

Is the regime credit spread strategy profitable?

Not in this test. From 1 Oct 2025 to 30 Sep 2026 on NIFTY it finished flat before costs (₹5 over 60 trades) and lost ₹44,361 after ₹20 per order and bid-ask slippage (statutory charges excluded). Stops cost more than targets earned, and multi-leg costs did the rest. Past results do not guarantee future ones.

What is an OI wall and why avoid selling there?

Here an OI wall is a strike whose open interest is at least 2.5 times the median of the five strikes either side. Such strikes attract a lot of positioning, and price often gravitates to or fights around them. The strategy avoids placing its short exactly on one.

Why use India VIX rank as a filter?

VIX rank shows where today's volatility sits within its past year. When it is low, option premiums are cheap, so credit spreads collect little for the risk taken. Below a rank of 20 the strategy stays out.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESNIFTY weekly (Tuesday); sized in lots. Leaving a session before expiry avoids the expiry-day margin on shorts.
WATCH OUTThe source's backtest used synthetic expiries and Black-Scholes prices, not real chains; the thresholds are an unvalidated heuristic by the author's own account.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe README states no ADX cut-offs and no exit-before-expiry day: ADX(14) > 20 with Supertrend(10,3) is a trend, exit 1 session before expiry, as the spec reads it. IV rank uses India VIX (the source's proxy). The source cannot compute its range score historically; here it is computed from the chain's OI at entry, with the band / scale constants above being our choices. NIFTY OI clusters on the 100-point strikes, so with a 2x wall and its neighbours excluded nearly every strike near 0.175 delta was barred (shorts landed 3,000 points out): the wall is 2.5x, and only the wall strike itself is avoided by default. The signal is end-of-day: indicators come from the previous close and the trade goes on at 15:15. Exits fill at market (positions are held overnight). The rolled future is not back-adjusted at the monthly roll (known SDK gap).
Also known asNiftyOptionsSystem
Backtests run on historical NSE data with fills at the last traded price. "Before costs" excludes brokerage, taxes and slippage. Quantsapp is not recommending any strategy; it is just a backtesting utility. Past results are not a promise of future returns.

Log in or sign up

Enter your mobile number. New to Quantsapp? The same OTP creates your free account.

+91

By continuing you agree to the Terms of Use and Privacy Policy.