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

Previous-day high/low breakout

The previous-day high and low are among the most watched levels in intraday trading. This version turns them into an always-in-the-market system on NIFTY futures: buy when price breaks above yesterday's high, reverse to short when it breaks below yesterday's low, and carry the position overnight. The levels update every day, so the opposite level acts as a trailing stop-and-reverse.
Goes long NIFTY futures on a break above the previous day's high and reverses to short on a break below the previous day's low, staying in the market overnight.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 1 lot, always in
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month10.8
Typical hold2 days
Profitable months6 of 12
Longest losing run7 trades
Made money inBig moves of over 1% while a position is heldCalm markets with India VIX below 11.5Entries on quiet sessions
Lost money inChoppy, wide-range sessionsNIFTY weekly expiry daysSideways stretches within ±1%
Default settings
Symbol
Filter points
Long only
Roll 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
first tick 1 point beyond the previous day's high (long) or low (short)
Legs
BUY FUT · near month · Current month · 1 lotSELL FUT · near month · Current month · 1 lot
Exits
signal opposite level breaks: reverseroll 15:15 on futures expiry day, reopened next session
Re-entry
Always in the market
Levels
each session, from the previous session's daily futures bar (exchange high / low): buy level = PDH + FILTER_PTS, sell level = PDL - FILTER_PTS.
Trade
the first tick at/above the buy level -> long (reversing a short); the first tick at/below the sell level -> short (reversing a long). A gap open beyond a level fills at the first tick (market at open). Levels refresh every session, so the opposite level is a trailing stop-and-reverse. LONG_ONLY = True: the sell level only closes the long (no short) - the source's long-only variant.
Hold
positions are carried overnight (always in, spec interpretation).
Roll
on the traded near contract's own expiry day the position is closed at ROLL_TIME ("monthly roll") and the same side re-opened on the new near-month contract at the next session's first tick.
End
closed at the last tick of the test window.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 129 trades · before costs
Net P&L−₹24,594
Win rate34%
Max drawdown−₹2,23,490
Avg per trade−₹191
Profit factor0.97
Worst trade−₹57,272
3

Where it made and lost money

An always-in breakout system lives or dies on whether moves follow through. In this test, positions held while NIFTY fell more than 1% made ₹4,38,043 over 24 trades and those held through rises of over 1% made ₹82,054, but the 68 positions held through sideways stretches within ±1% lost ₹4,20,478: price kept crossing yesterday's high and low, flipping the position at a loss each time. The entry day showed the same split. Entries on choppy, wide-range days lost ₹3,47,296 over 44 trades with a 16% win rate, while entries on quiet sessions made ₹2,42,959. Expiry-day entries lost ₹1,93,389 over 27 trades.

Market while the trade was held
NIFTY rose over 1% while held+₹82,05420 trades55% won
NIFTY within ±1% while held−₹4,20,47868 trades18% won
NIFTY fell over 1% while held+₹4,38,04324 trades79% won
Kind of session on the entry day
Quiet session (range under 0.75%)+₹2,42,95946 trades46% won
Trend day (closed near the high or low)+₹79,74239 trades41% won
Choppy day (wide range, closed mid-range)−₹3,47,29644 trades16% won
Expiry day (NIFTY weekly)
Expiry day−₹1,93,38927 trades19% won
Other days+₹1,68,795102 trades38% won
Day of the week
Monday+₹16,33224 trades38% won
Tuesday−₹1,53,47225 trades20% won
Wednesday+₹22,15134 trades35% won
Thursday+₹12,37627 trades33% won
Friday+₹1,35,29118 trades50% won
Session direction on the entry day
NIFTY closed above its open−₹1,31,07259 trades27% won
NIFTY closed below its open+₹1,06,47870 trades40% won
India VIX the evening before
VIX below 11.5 (calm)+₹1,11,26729 trades45% won
VIX 11.5-14.5 (normal)−₹1,06,48759 trades32% won
VIX above 14.5 (nervous)−₹29,37441 trades29% won
Trend going in
Uptrend (NIFTY above its 20-day average)−₹41,34267 trades31% won
Downtrend (NIFTY below its 20-day average)+₹16,74862 trades37% won
How the entry day opened
Gap up of 0.4% or more−₹20,86331 trades35% won
Flat open+₹2,99074 trades32% won
Gap down of 0.4% or more−₹6,72124 trades38% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Each session, take the previous day's high and low of the NIFTY near-month future and add a 1-point filter beyond each.
  2. The first tick above the previous day's high goes long one lot, reversing any short.
  3. The first tick below the previous day's low goes short one lot, reversing any long; a gap open beyond a level fills at the first tick.
  4. Hold the position overnight until the opposite level breaks; the levels move each day.
  5. On the futures expiry day, close at 15:15 and reopen the same side in the next month's contract at the next session's first tick.
  6. A long-only option closes longs on a low break instead of going short.

Why traders use it

Yesterday's high and low mark where buyers and sellers were stopped in the last session, so a break beyond them often brings in fresh orders. Staying in the market means the system never misses a big trend, and because the levels move each day, the stop trails the price automatically. It is a pure trend-following system with no indicators, easy to run on futures, and it shows clearly how much of a year's movement comes from a few strong trends.

Works best whenStrong, sustained trends lasting several sessions, especially sharp falls, where one position rides a large move; in this test, also entries in calm markets and on quiet days that preceded a breakout.
Struggles whenSideways markets moving within about 1%, where price crosses both levels repeatedly and every flip loses, choppy wide-range days, and weekly expiry days.

The year in plain words

On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 the system made 129 trades and lost ₹24,594 before costs, a profit factor of 0.97, and ₹64,200 after ₹20 per order and bid-ask slippage. Only 34% of trades won, but winners averaged about ₹19,720 against losers of about ₹10,500. The year swung violently: March 2026 made ₹1,80,439 on one strong trend, while February lost ₹1,04,512 and April and May lost over ₹1.4 lakh together. The maximum drawdown before costs was about ₹2.23 lakh, far larger than the final result. Fifty-four trades ended on a high break, 62 on a low break and 12 at the monthly roll.

What the settings do

Filter pointsExtra points beyond the previous high or low required for a break. A larger filter avoids marginal pokes but enters later.Long onlyWhen on, the system only buys; a break of the previous low closes the long instead of reversing to short.Roll timeThe time on futures expiry day when the position is closed before rolling to the next month.

Risks

  • The position is always open overnight, so gaps can jump past the reversal level; the worst trade lost about ₹57,270.
  • Drawdowns can reach several lakh rupees per lot during sideways spells before a trend appears.
  • Results depend on catching a few big trends; missing one can turn a year negative.
  • Monthly rolls add extra orders and roll cost each month.

Who it suits

Trend followers with full futures margin, a long time horizon and the patience to sit through long losing runs, who accept that one or two trends may make or break the year.

5

Questions traders ask

What is the previous day high low breakout strategy?

It uses yesterday's high and low as triggers. A break above the high is treated as bullish and a break below the low as bearish. In this version the system is always in the market, reversing from long to short and back as the levels break.

Is the PDH PDL breakout profitable on NIFTY?

Not in this backtest. On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 it lost ₹24,594 before costs and ₹64,200 after ₹20 per order and bid-ask slippage, over 129 trades. Statutory charges were excluded. One month made ₹1,80,439, showing how lumpy it is; past results do not guarantee future ones.

What does always in the market mean?

After the first trade, the system always holds either a long or a short position. It never goes flat except to roll the futures contract, so it is fully exposed to every overnight gap.

Does long-only help?

The long-only setting closes longs on a low break instead of shorting. In a rising market it avoids losing shorts, but it also misses gains from sharp falls, which were the most profitable moves in this test.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULESsource sizes "2 lots or 150 shares"; here LOTS lots. Gross of costs (the source assumed 0.02%). Known pitfalls (source): short side alone loses; gap slippage underestimated; single instrument, no OOS.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESThe futures source does not say whether positions are held overnight or limited to a trade a day; held overnight, always in (spec). Double touches are resolved by tick order (whichever level trades first). The option-buying variant (5-min close beyond the day's range after a retrace, ATM CE/PE, half at 1:1) is a different system and is not part of this file.
Also known aspdh pdl breakoutprevious day high low breakoutPrevious-day high/low breakout, always in the market (PDH long / PDL short, opposite level is stop)
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.