QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Open Backtesting →
Option selling · positionalPositionalNIFTYmedium complexity

Supertrend credit spread roll

This positional strategy sells a weekly NIFTY credit spread in the direction of a slow Supertrend on 5-minute bars, but only when ADX says a real trend is in place. A bull put spread goes on after a bullish flip and a bear call spread after a bearish one. The spread is held until the trend flips back, booked and rolled forward when it reaches nearly its maximum profit.
Sells a NIFTY weekly credit spread in the direction of a slow 5-minute Supertrend when ADX confirms a trend, and rolls it forward after near-full profit.
Market viewEither direction (follows the move)
TradesNIFTY weekly options, 2 legs (1 sold, 1 bought)
RiskDefined (max loss known at entry)
CapitalHedged option-selling margin
SuitsIntermediate
Trades a month7.2
Typical hold4.4 hours
Profitable months6 of 12
Longest losing run7 trades
Made money inTrend days that close near the high or lowEvenings when India VIX closed above 14.5Entries on non-expiry days
Lost money inQuiet sessions with a range under 0.75%Entries on weekly expiry dayEvenings when India VIX closed below 11.5
Default settings
Symbol
St period
St multiplier
ADX n
ADX min
ITM strikes
Spread width
Profit take %
Min DTE
Entry from
No entry after
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
5-min Supertrend(80, 3.6) flip with ADX ≥ 30, between 09:20 and 15:00
Legs
SELL PE · ATM + 1 strike (in the money) · Nearest weekly with 1+ day left · 1 lotBUY PE · short put − 50 points · Nearest weekly with 1+ day left · 1 lotSELL CE · ATM − 1 strike (in the money) · Nearest weekly with 1+ day left · 1 lotBUY CE · short call + 50 points · Nearest weekly with 1+ day left · 1 lot
Exits
signal opposite Supertrend fliptarget 95% of the credit captured, then rollexpiry 15:15 on expiry day, then roll
Re-entry
Roll to next weekly after target or expiry; opposite spread on a confirmed flip
Signal
Supertrend(ST_PERIOD, ST_MULTIPLIER) and ADX(ADX_N) (Wilder) on 5-minute bars of the rolled near-month future, anchored at 09:15 and continuous across sessions. A flip = the Supertrend direction changes at a bar's close. A flip is traded only when ADX at that bar is at least ADX_MIN.
Entry
bullish flip -> bull put spread: sell the put ITM_STRIKES strike(s) above ATM, buy the put SPREAD_WIDTH points below it. Bearish flip -> bear call spread, the mirror. Nearest weekly expiry with at least MIN_DTE days left, LOTS each. A flip outside ENTRY_FROM .. NO_ENTRY_AFTER is traded at the next session's ENTRY_FROM.
Target
the spread has made PROFIT_TAKE_PCT % of its credit (its maximum profit) -> close it and open the same spread on the following weekly expiry straight away (the roll).
Stop
the opposite flip closes the spread; if ADX then confirms (>= ADX_MIN) the opposite spread is opened.
Exit
at EXIT_TIME on expiry day if nothing else happened - and then, as after a target, rolled into the next weekly in the same direction.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 86 trades · before costs
Net P&L+₹777
Win rate29%
Max drawdown−₹3,854
Avg per trade+₹9
Profit factor1.04
Worst trade−₹1,384
3

Where it made and lost money

As a trend follower, this spread made its money on days the market really moved. In this test the 23 trades entered on trend days earned ₹5,494 before costs with a 43% win rate, several times the whole year's profit. The 28 trades entered on quiet days lost ₹5,836 and won only 14%, because a slow Supertrend flip in a narrow range usually reversed before the spread could gain. Higher volatility helped: trades after India VIX closed above 14.5 made ₹3,708, while those after a calm close below 11.5 lost ₹2,233. Expiry-day entries lost ₹3,521 over 23 trades and won only 9%, with little time left for the spread to work.

Kind of session on the entry day
Quiet session (range under 0.75%)−₹5,83628 trades14% won
Trend day (closed near the high or low)+₹5,49423 trades43% won
Choppy day (wide range, closed mid-range)+₹1,11935 trades31% won
Day of the week
Monday+₹4,66117 trades41% won
Tuesday−₹4,04119 trades5% won
Wednesday+₹3,05017 trades47% won
Thursday+₹1,75218 trades33% won
Friday−₹4,64615 trades20% won
Expiry day (NIFTY weekly)
Expiry day−₹3,52123 trades9% won
Other days+₹4,29763 trades37% won
Session direction on the entry day
NIFTY closed above its open+₹4,03045 trades38% won
NIFTY closed below its open−₹3,25441 trades20% won
India VIX the evening before
VIX below 11.5 (calm)−₹2,23321 trades24% won
VIX 11.5-14.5 (normal)−₹69839 trades28% won
VIX above 14.5 (nervous)+₹3,70826 trades35% won
How the entry day opened
Gap up of 0.4% or more+₹57213 trades31% won
Flat open−₹1,83353 trades28% won
Gap down of 0.4% or more+₹2,03820 trades30% won
Trend going in
Uptrend (NIFTY above its 20-day average)+₹88438 trades29% won
Downtrend (NIFTY below its 20-day average)−₹10748 trades29% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute bars from the NIFTY near-month future and compute a Supertrend with period 80 and multiplier 3.6, and a 14-bar ADX.
  2. When the Supertrend flips at a bar's close and ADX is 30 or higher, prepare a trade in the new direction; flips outside 09:20 to 15:00 are taken at 09:20 next session.
  3. Bullish flip: sell the put one strike in the money and buy the put 50 points below it. Bearish flip: sell the call one strike in the money and buy the call 50 points above it. Use the nearest weekly expiry with at least one day left.
  4. If the spread captures 95% of its credit, close it and open the same spread on the next weekly expiry straight away.
  5. On expiry day at 15:15, close and roll into the next weekly in the same direction.
  6. When the Supertrend flips the other way, close the spread; open the opposite spread only if ADX is at least 30.

Why traders use it

Selling a credit spread in the trend's direction gets paid by both the move and time decay, with the bought option capping the loss. A slow Supertrend on intraday bars changes direction only a few times a month, and the ADX filter tries to skip flips in sideways markets. Rolling after a near-full profit keeps the position working for as long as the trend lasts, which appeals to traders who prefer defined-risk spreads to naked selling.

Works best whenIn this test, trend days that closed near their high or low, when a Supertrend flip was followed by a real move and the spread headed toward full profit. Entries after India VIX closed above 14.5, with richer credit, also did better.
Struggles whenQuiet sessions with a range under 0.75%, where flips quickly reversed and only 14% of trades won, and entries on weekly expiry day, which lost ₹3,521 before costs. With the year almost flat before costs, trading costs turned it into a clear loss.

The year in plain words

On NIFTY from 1 Oct 2025 to 30 Sep 2026 with default settings, the strategy made 86 trades and won only 29%, ending almost flat at ₹776 before costs, a profit factor of 1.04, with a maximum drawdown of ₹3,855. The pattern is typical of trend following: small losses (₹336 on average), with 80 trades closed by a Supertrend flip, and larger wins (₹852) when a trend ran, including 6 trades that reached the 95% target. May and April did best. After ₹20 per order and bid-ask slippage on two legs, the result turned into a ₹13,081 loss.

What the settings do

St periodThe number of 5-minute bars in the Supertrend's ATR. Longer periods flip less often and follow bigger trends.St multiplierHow far the Supertrend line sits from price, in ATR multiples. A larger multiplier needs a bigger reversal to flip.ADX nThe number of bars used to calculate ADX.ADX minThe ADX level a flip needs before a spread is opened. Higher values trade only strong trends and skip more flips.ITM strikesHow many strikes in the money the short option is placed; 0 sells at the money. Deeper short strikes collect more credit and need the trend to continue.Spread widthThe distance in points between the sold and bought options. A wider spread collects more credit but can lose more.Profit take %The share of the credit at which the spread is booked and rolled. Lower values book earlier and roll more often.Min DTEThe fewest days to expiry a weekly must have to be traded, so a spread is not opened on an expiring contract.Entry fromThe earliest time of day a spread may be opened.No entry afterFlips after this time are traded at the start of the next session.Exit timeThe time on expiry day when a spread still open is closed and rolled.

Risks

  • Wins are infrequent, so long runs of small losses are normal and costs pile up on each one.
  • The rolled futures series jumps at each monthly rollover, which can flip the Supertrend without a real change in trend.
  • Spreads are held overnight and over weekends, so gaps can move them close to full loss before any exit.
  • The default Supertrend settings were picked on past data, which may not hold in future markets.

Who it suits

Positional traders who follow trends, prefer the defined risk of spreads, accept a low win rate, and have low enough trading costs that small, frequent exits do not consume the gains.

5

Questions traders ask

How do you trade a credit spread with Supertrend?

When Supertrend turns bullish, sell a bull put spread: a put near the money and a cheaper put further down. When it turns bearish, sell a bear call spread instead. The spread earns from the move and from time decay, and is closed when Supertrend flips the other way.

Is the Supertrend ADX credit spread strategy profitable?

On NIFTY from 1 Oct 2025 to 30 Sep 2026 it made ₹776 before costs but lost ₹13,081 after ₹20 per order and bid-ask slippage (statutory charges not included). The edge was too small to cover trading costs in this period, and past results do not guarantee future ones.

What does the ADX filter do?

ADX measures how strong a trend is, not its direction. Requiring ADX of 30 or more means a Supertrend flip is only traded when the market is already moving with some force, which aims to skip flips in sideways markets where trend signals often fail.

What does rolling the spread mean here?

When the spread has made 95% of its credit, or reaches expiry day, it is closed and the same type of spread is opened on the following weekly expiry. This keeps a position on in the trend's direction without waiting for a new signal.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESNIFTY weekly (Tuesday) from the expiry list; the source's Selenium order placement and a source v2 API are not needed. Sized in lots.
WATCH OUTParameters were "best from backtesting" in the source (in-sample, period unknown). The rolled futures series jumps at each monthly roll, which can flip a Supertrend on its own. Market fills on the target: the hold spans nights. Fills at LTP, no costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe defaults file holds "80" and "3.6" without labels: read as period 80, multiplier 3.6. The ADX filter comes from the same author's equity bot: applied here on the same 5-minute bars, ADX(14) >= 30. The source's example sells a put 50 points above spot (one strike in the money) with a 50-point spread - kept as the defaults. "Profit above 95 %" = 95 % of the credit, the most a credit spread can make. Target and expiry exits roll in the same direction without re-checking ADX (the trend has not flipped).
Also known asfully automated nifty options tradingsupertrend put spread
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.