QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Futures · technicalIntradayNIFTYmedium complexity

ADX regime router

This intraday NIFTY futures system changes its style during the day according to the 5-minute ADX. When ADX says the market is trending, it trades an opening-range breakout in the direction of VWAP. When ADX says the market is ranging, it fades moves that have stretched too far from VWAP and aims for a return to it. In between, it does nothing. The goal is one system that adapts to the kind of day it is in.
Trades NIFTY futures intraday as an opening-range breakout when 5-minute ADX shows a trend, or as a fade back to VWAP when ADX is low.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 1 lot intraday
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsAdvanced
Trades a month27.7
Typical hold1.7 hours
Profitable months5 of 12
Longest losing run9 trades
Made money inTrend days that close near the high or lowCalm markets with India VIX below 11.5Gap-down openings
Lost money inChoppy days that close mid-rangeQuiet sessions with a range under 0.75%Gap-up openings
Default settings
Symbol
ADX n
ADX trend
ADX range
Or end
Stretch ATR
Stop ATR
Last entry
Max trades
Exit time
Lots
Bar min
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
First tick after a 5-minute close, 09:30 to 14:30
Legs
BUY FUT · Near month: ORB up above VWAP (ADX ≥ 25) or 1 ATR below VWAP (ADX < 20) · Current month · 1 lotSELL FUT · Near month: ORB down below VWAP (ADX ≥ 25) or 1 ATR above VWAP (ADX < 20) · Current month · 1 lot
Exits
stop breakout: far side of opening range; fade: 0.5 ATRtarget fade only: price touches VWAPtime square-off at 15:15
Re-entry
Yes, up to 2 trades a day (one breakout)
Bars
5-minute candles of the near-month future (carried across sessions), Wilder ADX(ADX_N) and ATR(ADX_N) of those candles, and the session VWAP at each candle's close.
Range
the opening range = the session's high / low from the open to OR_END.
Trend
at a candle close with ADX >= ADX_TREND: close above the range high AND above VWAP -> buy; close below the range low AND below VWAP -> sell. Once a day. Stop: the other side of the opening range. Exit: EXIT_TIME.
Fade
at a candle close with ADX < ADX_RANGE: close more than STRETCH_ATR x ATR above VWAP -> sell; that far below -> buy (towards VWAP). Target: the future touches VWAP. Stop: STOP_ATR x ATR against the entry. Exit: EXIT_TIME. ADX between the two thresholds, or not yet warmed up: no trade. Entries from OR_END to LAST_ENTRY, one position at a time, at most MAX_TRADES a day, LOTS lots, filled on the first tick after the close.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 332 trades · before costs
Net P&L−₹25,771
Win rate39%
Max drawdown−₹1,16,124
Avg per trade−₹78
Profit factor0.96
Worst trade−₹18,005
3

Where it made and lost money

In this test the trend side carried the system and the fade side sank it. Trades on 92 trend days made +₹3,29,916 with a 58% win rate. On 86 choppy days the system lost ₹2,30,396, winning under a third, and on 150 quiet sessions it lost ₹1,13,836. Quiet and choppy days are where ADX is low and fades fire, yet a 0.5 ATR stop is small against normal 5-minute swings, so most fades were stopped before reaching VWAP. Gap-up openings lost ₹42,620 over 48 trades, and nervous evenings with India VIX above 14.5 lost ₹32,647 over 89, while calm ones made ₹21,316.

Kind of session on the entry day
Quiet session (range under 0.75%)−₹1,13,836150 trades35% won
Trend day (closed near the high or low)+₹3,29,91692 trades58% won
Choppy day (wide range, closed mid-range)−₹2,30,39686 trades29% won
Day of the week
Monday−₹59,15465 trades32% won
Tuesday+₹40,07862 trades45% won
Wednesday−₹31,37463 trades43% won
Thursday−₹5,15165 trades35% won
Friday+₹42,96071 trades45% won
How the entry day opened
Gap up of 0.4% or more−₹42,62048 trades31% won
Flat open+₹9,056233 trades40% won
Gap down of 0.4% or more+₹19,24847 trades47% won
India VIX the evening before
VIX below 11.5 (calm)+₹21,31691 trades42% won
VIX 11.5-14.5 (normal)−₹2,985148 trades39% won
VIX above 14.5 (nervous)−₹32,64789 trades40% won
Trend going in
Uptrend (NIFTY above its 20-day average)+₹18,725165 trades41% won
Downtrend (NIFTY below its 20-day average)−₹33,041163 trades39% won
Expiry day (NIFTY weekly)
Expiry day+₹16,54667 trades43% won
Other days−₹30,861261 trades39% won
Session direction on the entry day
NIFTY closed above its open−₹25,098157 trades40% won
NIFTY closed below its open+₹10,783171 trades40% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute candles of the near-month NIFTY future and track ADX(14), ATR(14) and the session VWAP; mark the 09:15 to 09:30 high and low as the opening range.
  2. Trend mode (ADX 25 or above): a candle closing above the range high and above VWAP buys; one closing below the range low and below VWAP sells. Only one trend trade a day, with the stop at the far side of the opening range.
  3. Fade mode (ADX below 20): a candle closing more than 1 ATR above VWAP sells; more than 1 ATR below buys. The target is a touch of VWAP and the stop is 0.5 ATR against the entry.
  4. With ADX between 20 and 25, no trade is taken.
  5. Entries are allowed from 09:30 to 14:30, one position at a time and at most two trades a day, filled at the first tick after the candle closes.
  6. Anything still open is closed at 15:15.

Why traders use it

Breakout systems thrive on trend days and bleed on range days, and mean-reversion systems do the reverse. Using ADX as a switch is an appealing way to run the right tool at the right time instead of picking one style for all conditions. VWAP links both modes: breakouts must agree with it and fades target it, so the system always refers to the day's average traded price.

Works best whenClean trend days that close near their high or low, when ADX confirms early and the breakout side runs; in this test calm India VIX below 11.5 and gap-down openings were also kinder to it.
Struggles whenQuiet and choppy sessions, where the low-ADX fade mode keeps entering and its tight 0.5 ATR stop is hit before VWAP is reached; gap-up openings; and nervous evenings with India VIX above 14.5.

The year in plain words

On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 with default settings, the system made 332 trades, won 39%, and lost ₹25,771 before costs, a profit factor of 0.96. The exit mix shows the fade side struggling: 98 fades hit their 0.5 ATR stop and only 35 reached VWAP, while 77 breakout trades were stopped at the far side of the range. October made ₹40,676, but May to August all lost. After ₹20 per order and bid-ask slippage on frequent trades, the loss grew to ₹1,36,316, with a drawdown of ₹1,89,523.

What the settings do

ADX nThe number of 5-minute candles in the ADX and ATR. A shorter period reacts faster to a change of regime but switches more often.ADX trendThe ADX level at or above which the breakout mode is active. Lowering it allows more breakout trades in weaker trends.ADX rangeThe ADX level below which the fade mode is active. Raising it allows more fades; the gap to ADX_TREND is a no-trade zone.Or endWhen the opening range ends. A longer range is wider, giving fewer breakouts and a more distant stop.Stretch ATRHow many ATRs from VWAP the close must be before a fade is taken. Larger values wait for bigger stretches and trade less.Stop ATRThe fade stop in ATRs. At 0.5 it is tight, so many fades are stopped before reaching VWAP.Last entryThe last candle close that can start a trade.Max tradesThe daily cap on trades of either type. Raising it allows more fades on range days.Exit timeWhen any open trade is closed.Bar minThe candle length for ADX, ATR and signals. Longer candles give slower but steadier regime readings.

Risks

  • ADX is a lagging measure, so the system often switches style after the opportunity has passed.
  • The 0.5 ATR fade stop is small relative to normal 5-minute swings and was hit far more often than the VWAP target.
  • With up to two trades a day, costs grew the loss more than fivefold in this test.
  • On the first day of each futures series, the roll jump distorts ADX and ATR for that session.

Who it suits

Intraday futures traders interested in regime-switching ideas who can automate 5-minute decisions and want to study how an adaptive rule set performs, accepting that this version lost money.

5

Questions traders ask

What is an ADX regime-switching strategy?

It uses ADX, a trend-strength indicator, to decide which kind of trade to take. High ADX means a trend, so it trades breakouts; low ADX means a range, so it fades stretched moves. This version uses 25 and 20 as thresholds on 5-minute NIFTY futures candles.

Is the ADX regime router profitable on NIFTY?

Not in this backtest. From 1 Oct 2025 to 30 Sep 2026 it lost ₹25,771 before costs and ₹1,36,316 after ₹20 per order and bid-ask slippage, before statutory charges. Past results do not guarantee future ones.

Why does the breakout need to agree with VWAP?

Requiring the close to be above VWAP for a long and below it for a short filters breakouts against the day's average traded price. It is a simple check that buyers or sellers have controlled most of the session's volume.

What happens when ADX is between 20 and 25?

Nothing. That band is treated as unclear, neither trending nor ranging, and the system stays flat until ADX moves out of it. Widening or narrowing the gap between “ADX range” and “ADX trend” changes how many sessions are left untraded.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESNIFTY near-month future, sized in lots; flat by 15:15, well before the close.
WATCH OUTADX lags: the regime is often called after the move that made it. The rolled futures series jumps at each monthly roll, which shows up as one wide candle in ADX / ATR on that session. ADX starts from the first backtest day (no candles before START), so the first ~2.5 hours of the run cannot trade.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe sources give no thresholds, range length, stretch size or stops. The spec's numbers are used: ADX(14) on 5-minute candles, trend at >= 25, fade only below 20, a 15-minute opening range with the stop at its far side, fade at 1 ATR from VWAP with a 0.5 ATR stop and VWAP as the target.
Also known asregime adaptiveADX regime router: trending -> VWAP-confirmed opening-range breakout; ranging -> fade back to VWAPRegime Adaptive strategy
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.