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

Inside-bar breakout

The inside bar is one of the most popular price-action setups in India. When a 15-minute candle's high and low both sit inside the previous candle, the earlier one is called the mother bar. The market is coiling, and a break of the mother bar's high or low is traded as the start of the next move. This version trades NIFTY futures with two lots, each aiming for a different target.
Finds the day's first 15-minute inside bar on NIFTY futures and trades the break of its mother bar, with a stop at the far side and two targets.
Market viewEither direction (follows the move)
TradesNIFTY near-month futures, 2 lots (one per target)
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsBeginner
Trades a month38.5
Typical hold1.3 hours
Profitable months3 of 12
Longest losing run22 trades
Made money inTrend days that close near the high or lowNIFTY weekly expiry daysDays that opened with a gap down
Lost money inQuiet sessions with a range under 0.75%India VIX above 14.5Gap-up openings
Default settings
Symbol
Bar minutes
Entry buffer points
T1 mult
T2 mult
Max mother range %
Stop mode
Entry until
Exit time
Lots per target
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
after the first 15-min inside bar: 3 pts beyond the mother bar, until 14:30
Legs
BUY FUT · near month · Current month · 2 lotsSELL FUT · near month · Current month · 2 lots
Exits
stop other side of the mother bartarget lot 1 at 1x mother range, lot 2 at 1.5xtime 15:15
Re-entry
None; one setup a day
Bars
15-minute bars from the rolled near-month futures ticks, anchored at 09:15 each session.
Setup
the FIRST inside bar of the session - bar t with high <= high[t-1] and low >= low[t-1]; bar t-1 is the mother (both in today's session). Skipped when the mother range is more than MAX_MOTHER_RANGE_PCT % of price (an over-wide mother).
Entry
after the inside bar has closed and until ENTRY_UNTIL: the first tick above mother high + ENTRY_BUFFER_PTS -> buy; below mother low - ENTRY_BUFFER_PTS -> sell. The other side is cancelled once one fills. Filled at the breaking tick.
Exits
two positions of LOTS_PER_TARGET each, same entry: T1 = trigger level +/- T1_MULT x mother range, T2 = trigger level +/- T2_MULT x mother range; stop for both = the other side of the mother bar (STOP_MODE "mother"; "inside" = the inside bar's own other side). Stops/targets checked on every tick, filled at the crossing tick. Whatever is open at EXIT_TIME is squared off. One setup (and so one trade) per day.
2

Results

PRE-BUILT · DEFAULTS
NIFTY · 2025-10-01 → 2026-09-30 · 462 trades · before costs
Net P&L−₹2,68,241
Win rate42%
Max drawdown−₹3,66,748
Avg per trade−₹581
Profit factor0.75
Worst trade−₹10,069
3

Where it made and lost money

An inside bar marks a pause, and the trade only pays if the break that follows becomes a real move. In this test it did on trend days that closed near their high or low, earning ₹1,14,683 over 128 trades with a 56% win rate. On quiet sessions with a range under 0.75%, the most common type, it lost ₹2,68,303 over 214 trades: the break of the mother bar petered out and price drifted back to the stop on the other side. Nervous markets were also costly, with entries after an India VIX close above 14.5 losing ₹2,09,404 over 130 trades. Tuesday expiry days, which tend to move more, made ₹30,858 over 98 trades.

Kind of session on the entry day
Quiet session (range under 0.75%)−₹2,68,303214 trades33% won
Trend day (closed near the high or low)+₹1,14,683128 trades56% won
Choppy day (wide range, closed mid-range)−₹1,13,275116 trades44% won
Expiry day (NIFTY weekly)
Expiry day+₹30,85898 trades53% won
Other days−₹2,97,753360 trades39% won
India VIX the evening before
VIX below 11.5 (calm)−₹42,620126 trades49% won
VIX 11.5-14.5 (normal)−₹14,871202 trades45% won
VIX above 14.5 (nervous)−₹2,09,404130 trades32% won
Day of the week
Monday+₹35,62790 trades51% won
Tuesday−₹16,56690 trades50% won
Wednesday−₹1,56,74394 trades32% won
Thursday−₹76,26492 trades42% won
Friday−₹52,89790 trades37% won
Session direction on the entry day
NIFTY closed above its open−₹2,25,827228 trades38% won
NIFTY closed below its open−₹41,068230 trades47% won
How the entry day opened
Gap up of 0.4% or more−₹98,53268 trades34% won
Flat open−₹1,73,791310 trades42% won
Gap down of 0.4% or more+₹5,42880 trades52% won
Trend going in
Uptrend (NIFTY above its 20-day average)−₹1,32,446224 trades40% won
Downtrend (NIFTY below its 20-day average)−₹1,34,449234 trades44% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 15-minute candles of the NIFTY near-month future from 09:15 each day.
  2. Find the first inside bar of the session: a candle whose high and low both lie within the previous (mother) candle; skip the day if the mother's range is more than 0.8% of price.
  3. After the inside bar closes and until 14:30, buy two lots when price trades 3 points above the mother's high, or sell two lots 3 points below its low.
  4. Place the stop for both lots at the other side of the mother bar.
  5. Take the first lot off at 1x the mother's range from the trigger and the second at 1.5x.
  6. Close anything still open at 15:15; one setup per day.

Why traders use it

An inside bar shows the market contracting after a bigger move, a sign that buyers and sellers are briefly balanced. When the mother bar's range breaks, the side that wins often moves quickly. The setup gives a clear entry, a natural stop at the other side of the mother bar, and targets sized from the same range, so the reward-to-risk is fixed before entry. Splitting into two targets lets traders bank some profit early while giving the rest room to run.

Works best whenTrend days and Tuesday expiry days where the break of the mother bar starts a sustained move, and gap-down sessions that keep moving after a brief pause.
Struggles whenQuiet, narrow-range sessions where the breakout fades back to the far side of the mother bar, nervous high-VIX markets with false breaks, and gap-up openings.

The year in plain words

On NIFTY futures from 1 Oct 2025 to 30 Sep 2026 the setup triggered on 231 days, giving 462 lot-level trades. It lost ₹2,68,241 before costs, with a 42% win rate and a profit factor of 0.75, and ₹3,35,608 after ₹20 per order and bid-ask slippage. Wins and losses averaged about ₹4,000 each, so the low win rate decided the result. The stop took 239 trades, the first target 96, the second target 66, and 61 ran to 15:15. October and November 2025 made money; April and May 2026 lost ₹79,064 and ₹84,550, and the longest losing streak was 22 trades.

What the settings do

Bar minutesThe candle length used to find inside bars. Longer candles give fewer, bigger setups.Entry buffer pointsHow many points beyond the mother bar price must trade to trigger the entry, filtering marginal pokes.T1 multThe first target as a multiple of the mother bar's range, measured from the trigger.T2 multThe second target as a multiple of the mother bar's range.Max mother range %Skips setups whose mother bar is wider than this percent of price, where the stop would be too far away.Stop modePlaces the stop at the far side of the mother bar, or at the tighter far side of the inside bar.Entry untilThe latest time a breakout can be entered.Exit timeWhen any open position is squared off.Lots per targetLots used for each of the two targets; the default trade is two lots in total.

Risks

  • The default trade is two futures lots, so each stop costs twice the single-lot loss.
  • The stop at the other side of the mother bar can be up to 0.8% of price away.
  • With nearly 40 trades a month and a 42% win rate, long losing streaks are normal; this run had one of 22.
  • Costs on almost 500 orders a year add tens of thousands of rupees even before statutory charges.

Who it suits

Price-action traders who want to see the inside bar tested strictly on NIFTY futures, have margin for two lots, and can follow a fixed plan through long losing runs.

5

Questions traders ask

What is an inside bar and a mother bar?

An inside bar is a candle whose high is not above, and low not below, the previous candle. That previous, larger candle is the mother bar. Together they show a pause, and traders watch for price to break the mother bar's range.

Is the inside bar strategy profitable on NIFTY?

Not in this backtest. On 15-minute NIFTY futures from 1 Oct 2025 to 30 Sep 2026 it lost ₹2,68,241 before costs and ₹3,35,608 after ₹20 per order and bid-ask slippage, over 462 trades. Statutory charges were excluded. Past results do not guarantee future ones.

Why use two targets?

The first lot exits at one times the mother range to lock in some profit, and the second at one and a half times to capture bigger moves. In this test the first target was hit 96 times and the second 66 times.

Does the stop mode matter?

Yes. The default stop at the far side of the mother bar gives the trade room but loses more when hit. Switching to the inside bar's far side tightens the stop, which cuts each loss but is hit more often.

6

Before you rely on it

WATCH OUTinside bars are frequent on quiet days and the breakout often fails; gross of costs.
WHERE THE RULES WERE UNCLEAR · OUR CHOICESEntry cut-off 14:30 and the 15:15 square-off are the spec's interpretation (the script gives none). "Book T1 / T2" is modelled as two separately held 1-lot positions (so the default trade is 2 lots). The optional MA / volume / event-day filters from the blog are not applied.
Also known asinside bar strategymother candle breakoutinside bar setup niftyOpening inside bar: 2nd 15-min candle inside the 1st (mother); trade the break of the mother range, SL other side of the inside bar, 0.7% target15 min 2nd inside barinside bar breakout 15 min
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.