QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Open Backtesting →
Futures · technicalIntradayNIFTYlow complexity

Supertrend with scaled exits

This is a refined version of the popular Supertrend intraday system. A Supertrend flip on 5-minute NIFTY futures bars is traded only when it agrees with the 200-period EMA and ADX shows a trend. The position is split into three one-lot tranches, booked at 1.5, 3 and 5 ATR, with the stop moved to breakeven after the first target and then trailed. Everything is flat by 15:15.
Trades 5-minute Supertrend flips on NIFTY futures only with the 200 EMA and ADX above 20, taking three lots off at 1.5, 3 and 5 ATR with a trailing stop.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 3 lots in tranches
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month6.1
Typical hold54 min
Profitable months4 of 12
Longest losing run5 trades
Made money inNo condition earned; least bad after VIX below 11.5Least bad in a 20-day uptrend
Lost money inDays in a 20-day downtrend (−₹2,05,871)After VIX above 14.5Choppy wide-range days
Default settings
Symbol
Bar minutes
St period
St mult
EMA filter
ADX period
ADX min
Tp1 ATR
Tp2 ATR
Tp3 ATR
Trail ATR
Lots per tranche
Entry from
Last entry
Square off
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 Intraday · 1 Oct 25 → 30 Sep 26
Enters
Next tick after a 5-minute Supertrend flip with the 200 EMA and ADX above 20, 09:30-14:45
Legs
BUY FUT · near month, 3 tranches of 1 lot · Near month · 3 lotsSELL FUT · near month, 3 tranches of 1 lot · Near month · 3 lots
Exits
target Tranches at 1.5, 3 and 5 ATRstop Supertrend line; breakeven after the first targettrail Then the better of the Supertrend line or 2 ATR from the closetime 15:15
Re-entry
Only on a new Supertrend flip after the trade is flat
Bars
BAR_MINUTES bars of the near-month future, anchored at 09:15, continuous across sessions. Supertrend(ST_PERIOD, ST_MULT), EMA(EMA_FILTER) of closes, ADX(ADX_PERIOD) and ATR(ADX_PERIOD), all Wilder.
Entry
long - a bar closes above the Supertrend line (trend flips up) with the close above the EMA and ADX above ADX_MIN; short - the mirror. Signal bars closing ENTRY_FROM .. LAST_ENTRY; the trade is filled at the first tick after the signal bar: one position of three legs (tranches) of LOTS_PER_TRANCHE lots each, one trade at a time.
Target
tranche 1 off at TP1_ATR x ATR, tranche 2 at TP2_ATR x ATR, tranche 3 at TP3_ATR x ATR from the fill (ATR of the signal bar), each at the first tick through its level.
Stop
the Supertrend line, re-read at every bar close. Once tranche 1 is off the stop moves to the entry price (breakeven) and then trails at the better of the Supertrend line and close - TRAIL_ATR x ATR (close + for a short); it never loosens. A tick through the stop closes everything left.
Exit
anything open at SQUARE_OFF.
Re-entry
only on a new Supertrend cross, after the previous trade is flat.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 73 trades · before costs
Net P&L−₹2,61,030
Win rate48%
Max drawdown−₹2,96,647
Avg per trade−₹3,576
Profit factor0.45
Worst trade−₹35,353
3

Where it made and lost money

Every condition lost money in this test, so the evidence only shows where losses were heaviest. Days when NIFTY was below its 20-day average lost ₹2,05,871 over 39 trades, against ₹37,433 over 33 in an uptrend. After a VIX close above 14.5 the strategy lost ₹1,27,185 over 22 trades, while calm evenings below 11.5 cost only ₹11,894 over 24 with a 67% win rate. Choppy sessions lost ₹1,24,166 over 38. The mechanism is in the code: the first stop is the Supertrend line, which on 5-minute bars in a volatile market sits far away, so three lots lose a lot when a flip fails.

Trend going in
Uptrend (NIFTY above its 20-day average)−₹37,43333 trades58% won
Downtrend (NIFTY below its 20-day average)−₹2,05,87139 trades41% won
Session direction on the entry day
NIFTY closed above its open−₹1,86,22034 trades38% won
NIFTY closed below its open−₹57,08538 trades58% won
India VIX the evening before
VIX below 11.5 (calm)−₹11,89424 trades67% won
VIX 11.5-14.5 (normal)−₹1,04,22526 trades42% won
VIX above 14.5 (nervous)−₹1,27,18522 trades36% won
Day of the week
Monday−₹5,78812 trades67% won
Tuesday−₹1,07,31620 trades40% won
Wednesday−₹12,03713 trades54% won
Thursday−₹1,63011 trades64% won
Friday−₹1,16,53316 trades31% won
How the entry day opened
Gap up of 0.4% or more−₹64,10910 trades40% won
Flat open−₹1,41,21653 trades53% won
Gap down of 0.4% or more−₹37,9809 trades33% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹73,35024 trades54% won
Trend day (closed near the high or low)−₹45,78810 trades40% won
Choppy day (wide range, closed mid-range)−₹1,24,16638 trades47% won
Expiry day (NIFTY weekly)
Expiry day−₹1,05,10621 trades43% won
Other days−₹1,38,19851 trades51% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute bars of the near-month NIFTY future with Supertrend (10, 3), a 200-period EMA, and a 14-period ADX and ATR; the indicators restart on each new contract.
  2. Go long when a bar closes above the Supertrend line, above the 200 EMA, with ADX above 20; go short in the mirror case. Signal bars must close between 09:30 and 14:45.
  3. Enter three lots, one per tranche, on the next tick.
  4. Book the first lot at 1.5 ATR, the second at 3 ATR and the third at 5 ATR from the entry.
  5. The initial stop is the Supertrend line; after the first target it moves to breakeven, then trails at the better of the Supertrend line or 2 ATR from the close.
  6. Close anything still open at 15:15; a new trade needs a fresh Supertrend flip.

Why traders use it

Plain Supertrend whipsaws in sideways markets, so traders add filters: the 200 EMA keeps trades on the side of the bigger trend, and ADX above 20 asks for evidence that a trend exists at all. Scaling out in three steps banks some profit early while leaving a runner for larger moves, and the move to breakeven is meant to turn many trades into free rides. It is a widely shared refinement of one of the most popular indicators among Indian intraday traders.

Works best whenNo market condition produced a profit in this test. Losses were smallest after calm VIX evenings below 11.5 and in 20-day uptrends, when flips were less violent and the first target was reached more often.
Struggles whenDowntrends below the 20-day average, which lost ₹2,05,871 over 39 trades, days after VIX above 14.5, and choppy wide-range sessions, where a flip reverses before the first target and three lots hit a distant Supertrend stop.

The year in plain words

On NIFTY from 1 Oct 2025 to 30 Sep 2026 the filters let through 73 trades, about 6 a month. Nearly half won, but the average loss (₹12,552) was twice the average win (₹6,170), and the third target at 5 ATR was reached only 4 times. Twenty-three tranches were stopped on the Supertrend line before any target. Net P&L was a ₹2,61,030 loss before costs and ₹3,10,896 after ₹20 per order and slippage, with a ₹2,96,647 drawdown. June alone lost ₹79,386. The filters did not stop the failed flips that sank the year.

What the settings do

Bar minutesThe bar length for all indicators. Longer bars give fewer, slower signals.St periodThe ATR period inside the Supertrend. A shorter period makes the line react faster.St multHow many ATRs the Supertrend line sits from price. A higher multiple flips less often and gives a wider initial stop.EMA filterThe trend EMA a trade must agree with. A shorter EMA lets more trades through.ADX periodThe period of the ADX filter and of the ATR used for targets and the trail.ADX minThe minimum ADX for a trade. Raising it trades only in stronger trends.Tp1 ATRThe first target in ATRs; reaching it books one lot and moves the stop to breakeven.Tp2 ATRThe second target in ATRs.Tp3 ATRThe third and final target in ATRs.Trail ATRAfter the first target, how many ATRs behind the close the trailing stop sits, if tighter than the Supertrend line.Lots per trancheLots in each of the three tranches. The default of 1 means three lots per trade.Entry fromThe earliest signal-bar close that can trigger a trade.Last entryThe latest signal-bar close that can trigger a trade.Square offWhen anything still open is closed.

Risks

  • The initial stop is the Supertrend line, which can be far away on volatile days, and it applies to three lots at once.
  • Scaling out cuts winners while full-size losses remain, which made losses twice the size of wins here.
  • Restarting indicators at each contract means no trades for about three sessions after each futures expiry.
  • Filters reduce the number of trades but did not improve their quality in this period.

Who it suits

Intraday futures traders who follow Supertrend and want a filtered, scaled version, with margin for three NIFTY lots and the tolerance for large single-trade losses.

5

Questions traders ask

What is the Supertrend 200 EMA ADX strategy?

It takes Supertrend flips only when price is on the same side of the 200-period EMA and ADX is above 20. The EMA keeps trades with the bigger trend and ADX checks that the market is trending rather than ranging.

What are scaled exits?

Instead of exiting the whole position at once, the trade is split into parts that close at different targets, here at 1.5, 3 and 5 times the ATR. Early targets bank profit, and later ones aim for bigger moves.

Is the refined Supertrend strategy profitable on NIFTY?

In this backtest from 1 Oct 2025 to 30 Sep 2026 it lost ₹2,61,030 before costs and ₹3,10,896 after ₹20 per order and bid-ask slippage, trading three lots per signal. Statutory charges are excluded. Past results do not guarantee future ones.

Why move the stop to breakeven after the first target?

Once one lot is booked at a profit, moving the stop on the rest to the entry price means the remaining lots can no longer turn the trade into a loss. In practice many trades were then stopped at breakeven on the next pullback.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESThe source sizes 10% of equity; here 3 tranches of LOTS_PER_TRANCHE lots (40/30/30 rounds to 1/1/1). ADX and the ATR for targets/trail are 14 (not stated in the source); the short trail mirrors the long one. Breakeven-then-trail starts only after tranche 1 (before that the Supertrend line is the stop). The 09:15-15:30 session filter becomes entries to LAST_ENTRY and a SQUARE_OFF well before the 15:30 / 15:40 close. Rolled series: the indicators restart on each new futures contract (no trades until the EMA has EMA_FILTER bars of the new contract, about 2.7 sessions at 5 minutes), so a roll jump never reads as a cross.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESsignals at the bar close, fills at the next tick; stops and targets are checked tick by tick. Known pitfalls (sources): percent-of-equity sizing ignores lot size; a reader flagged that the AFL fills one bar later than its stated close execution. Gross of costs.
Also known asrefined supertrendsupertrend v4 200 ema
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.