Register
Strategy guide

Trade Inside Bar Breakouts with Clear Rules

An inside bar strategy trades the breakout from a period of contraction. An inside bar is a candle whose high is below the previous candle's high and whose low is above the previous low. The market has paused inside the previous candle's range, and the break of that range often starts the next move.

QuantPower Research · Updated 14 Nov 2026 · 17 min read

The pattern is simple to define, which makes it one of the easiest price-action setups to test and automate: two candles, four prices, and an entry, stop and target that all follow from them. Its weakness is the false break, where the price pokes out of the range, triggers the entry and falls straight back. This guide explains how to spot an inside bar, the rules for trading the breakout, worked examples on Nifty, what the trades cost, the filters that improve the setup, and how to build, test and run it in QuantPower.

At a glance

Inside bar breakout
TypeBreakout after contraction
PatternA candle inside the previous candle's range (the mother bar)
MarketsNifty and Bank Nifty futures, stock futures, MCX futures
Timeframes1-hour and daily work best
Long entryPrice breaks above the mother bar's high
Short entryPrice breaks below the mother bar's low
StopThe other side of the inside bar, or of the mother bar
Target1.5 to 2 times the risk, or a trailing stop

A short history of the inside bar

Traders have watched candles that sit inside the previous range for as long as bar charts have existed. In Japanese candlestick terms, a small candle inside a large one is a harami, "pregnant" in Japanese, a pattern described in the rice markets of the eighteenth century and brought to Western traders by Steve Nison's *Japanese Candlestick Charting Techniques* in 1991.1 The harami is read as a possible reversal; the inside bar, as Western traders use the name, is read for the breakout.

The idea that a narrow range comes before a wide one was studied by Toby Crabel, whose 1990 book on short-term price patterns tested inside days and narrow-range days, such as the narrowest range of the last four or seven sessions, and found that they tended to come before larger moves.2 Price-action traders in the 2000s made the inside bar breakout a staple of their teaching, and textbooks such as John Murphy's describe the same contraction-and-expansion cycle in broader terms.3

In India, inside bars are watched most on daily and hourly charts of Nifty, Bank Nifty and liquid stocks, and on MCX commodities, where quiet sessions often come before news-driven moves. They are also common in the days before scheduled events, such as the RBI's policy announcements and the Union Budget, when traders wait for news rather than take positions, which is one reason the pattern so often precedes a large move.

How to spot an inside bar

ConditionRule
Inside bar highBelow the mother bar's high
Inside bar lowAbove the mother bar's low
ColourEither colour qualifies
Mother barIdeally a large candle, after a clear move

Two inside bars in a row, both within the same mother bar, show a tighter coil. The inside bar is the same shape as the harami in candlestick patterns, but traders read it for the breakout rather than for a reversal.

Why contraction comes before expansion

Markets alternate between quiet and busy periods. A large mother bar shows a burst of activity; an inside bar shows the market pausing to absorb it, with neither buyers nor sellers able to push beyond the previous extremes. When one side finally does, the orders that were waiting above the high or below the low, including stop orders, are triggered together, which is why breakouts from tight ranges can move quickly. The same effect works against the trader on a false break: the burst of orders exhausts itself and the price falls back into the range.

The rules

  1. Spot the pattern at the close of the inside bar.
  2. Place two stop orders: buy above the mother bar's high and sell below the mother bar's low. When one fills, cancel the other.
  3. Stop: for a long, below the inside bar's low. A wider, safer stop is below the mother bar's low.
  4. Target: 2 times the risk, or take half at 1.5 times and trail the rest.
  5. Cancel the orders if neither side breaks within a set number of candles, such as three.

Many traders only take the breakout in the direction of the trend: longs above the 50-period average, shorts below it.

Why each rule is there

  • Waiting for the close makes sure the candle really is inside; a candle that looks inside at noon can break out by the close.
  • Stop orders at both extremes let the market choose the direction, which suits traders who do not want to guess.
  • The stop below the inside bar keeps the risk small; the stop below the mother bar survives more noise but risks more.
  • The cancel rule stops an old pattern from triggering days later, when the range no longer means anything.

A worked example

Inside bar rules: mother bar 24,960–25,180, buy stop 25,185, stop 25,005 below the inside bar, target 25,545 (illustration)

On a daily Nifty futures chart in an uptrend, the mother bar has a high of 25,180 and a low of 24,960. The next day's candle has a high of 25,120 and a low of 25,010: an inside bar.

  • Buy stop: 25,185, above the mother bar's high
  • Sell stop: 24,955, below its low (only if you trade both sides)
  • Long stop: 25,005, below the inside bar's low, a risk of 180 points
  • Target: 2 times the risk, 25,185 + 360 = 25,545

One lot of 65 risks ₹11,700 for a target of ₹23,400. Using the mother bar's low as the stop raises the risk to 230 points (₹14,950) with fewer early stop-outs. These numbers illustrate the rules, not a result.4

Three ways the trade can go

  1. A clean breakout. Nifty futures open the next day at 25,150, trade through 25,185 by 10:00 and keep going. Two days later they reach 25,545: +360 points, ₹23,400 per lot before costs of about ₹985.
  2. A false break. The price trades to 25,200, fills the buy stop, then reverses. By the close it is back at 25,050, and the next morning it falls through 25,005: −180 points, ₹11,700 per lot, plus costs of about ₹967.
  3. No break. The price stays inside the mother bar for three days. The cancel rule removes both orders, and the trade never happens.

Over many trades the strategy's results come from how often the first case happens compared with the second, and how far the clean breakouts run. With a 2R target, the strategy breaks even before costs if one trade in three is a clean breakout and the rest are false breaks. After costs of nearly ₹1,000 a round trip on futures, it needs a little more than that, which is why the filters below matter: each one is an attempt to move trades from the second case to the first, or to the third, where nothing is lost.

What the trades cost

A round trip on one lot of Nifty futures costs about ₹967 to ₹985 at ₹20 an order and the rates in force from 1 April 2026, most of it STT at 0.05% of the sell value.5 On the daily example, with a risk of ₹11,700, that is about 8%. On a 1-hour chart, where the risk might be 52 points, about ₹3,380 per lot, the same cost is nearly 30% of the risk, which makes futures an expensive way to trade hourly inside bars.

Trading the breakout with an option spread

For a defined risk on the daily long, a bull call spread can replace the futures. With Nifty at 25,185 after the breakout, 15 days to a monthly expiry and IV of 13%, buying the 25,200 call and selling the 25,500 call costs about ₹130.81 per unit, ₹8,503 per lot, in the model. The most it can make is about ₹10,997 per lot if Nifty is at or above 25,500 at expiry. A false break then costs at most the debit, and a clean breakout to 25,545 earns close to the spread's maximum by expiry.

Filters that improve the setup

  • Trend direction. Breakouts in the direction of the trend hold more often than those against it.
  • Location. An inside bar just below resistance or just above support marks a decision point. See support and resistance strategy.
  • Range size. An inside bar much narrower than usual (an NR4 or NR7 day, the narrowest of the last 4 or 7) shows a tighter coil.
  • Volume. A breakout on rising volume is more convincing; the volume breakout strategy guide covers it.
  • The mother bar's size. A mother bar more than about two average true ranges tall makes the stop wide and the target far; some traders skip those.
  • Events. An inside bar on the day before an RBI policy, the budget or a large result is a pause before news, and the breakout may come as a gap.

Narrow-range days, worked through

Crabel's narrow-range idea gives a sharper version of the setup. An NR7 day is the day with the smallest high-low range of the last seven. An inside bar that is also an NR7 day is both inside the previous range and the quietest day in more than a week.

Suppose daily Nifty futures have ranges over the last seven sessions of 260, 310, 220, 280, 240, 190 and 110 points. The last day, with a range of 110, is an NR7 day, and if its high and low sit inside the previous day's 190-point range, it is an inside NR7. The stop below the inside bar is then between about 115 and 195 points from a buy stop above the mother bar, depending on where the inside bar sits inside it. With the inside bar near the top of the mother bar, the risk is about 115 points, ₹7,475 per lot, and a 2R target is about 230 points away.

In Arth Script, the narrow-range condition is high - low < lowest(high[1] - low[1], 7): the range is smaller than the smallest range of the previous seven candles. Combined with the inside bar formula, it marks inside NR7 days exactly, so the backtest can compare them with ordinary inside bars.

Two inside bars in a row

When a second inside bar forms inside the first, still within the same mother bar, traders call it an inside-inside or ii pattern. It shows the market coiling for two sessions instead of one. The rules stay the same: stop orders beyond the mother bar's range, a stop beyond the smaller inside bar, a cancel rule. Because the second inside bar is smaller, the stop can be tighter, but the pattern is rarer, so a backtest needs a longer history to judge it. The custom indicator for it is high < high[1] and low > low[1] and high[1] < high[2] and low[1] > low[2].

Inside bar compared with other breakout setups

SetupWhat contractsEntryTypical timeframe
Inside barOne candle inside the previous oneBreak of the mother barDaily, hourly
NR7The narrowest range in seven candlesBreak of that candle's rangeDaily
Opening range breakoutThe first N minutes of the sessionBreak of the opening rangeIntraday
Volatility squeezeBollinger Bands inside Keltner ChannelsBands expand, price breaksDaily, hourly

All four bet on the same cycle: quiet periods are followed by active ones. They differ in how they measure the quiet and how long they wait for the break.

When the strategy works, and when it does not

Works best when:

  • Volatility has fallen after a strong move, and a new move is building.
  • The breakout comes with the trend and with a catalyst, such as a global cue or a result.

Struggles when:

  • The market is choppy and both sides break in turn. A false break followed by a reversal is the most common loss.
  • The mother bar is very large. The stop is then wide and the target far.
  • Breakouts happen on a gap at the open, which fills the stop order far from the trigger.

A short trade

In a downtrend, the mirror rules apply. Suppose daily Nifty futures are below their 50-day average, the mother bar runs from 24,420 to 24,180, and the inside bar from 24,380 to 24,220. A sell stop sits at 24,175; the stop for the short goes above the inside bar's high at 24,385, a risk of 210 points, ₹13,650 per lot; the 2R target is 24,175 − 420 = 23,755. Falls in the index often break with a gap after weak global markets, so the fill on a short breakout can be well below the trigger, which helps the entry but makes the stop distance larger than planned.

Bank Nifty, stocks and MCX

Bank Nifty futures. Inside bars on daily Bank Nifty charts are common after large moves. A mother bar of 55,180 to 55,520 with an inside bar inside it gives a buy stop at 55,525 and, with the stop at the mother bar's low, a risk of 345 points, ₹10,350 per lot of 30. A run to the 2R target of 56,215 costs about ₹1,000 in a round trip.

Stocks. Inside bars on daily charts of liquid stocks work well before and after results, when the market pauses to absorb news. Check for gaps around results days and avoid stocks in the F&O ban list.

MCX commodities. Crude oil and metals often form inside bars during the Indian session and break out in the evening, when US data and markets move them. A daily inside bar on MCX covers the long evening session too, which makes the mother bar's range larger than on NSE for the same quiet day.

Intraday inside bars

On 15-minute charts, inside bars are frequent and less reliable. The first candle of the day is often large, so an inside bar on the second candle can be traded as a small opening range breakout strategy. Keep a time exit, such as 15:15.

On the 1-hour chart, a common version waits for the first hourly candle (9:15 to 10:15) to act as the mother bar and the second as the inside bar. A break of the first hour's range after 11:15 then carries the day's direction. Costs on futures are heavy at this scale; an at-the-money option or the cash market suits the hourly version better.

Using a higher timeframe for direction

An inside bar on the daily chart says the market paused; it does not say which way it will go. A higher timeframe can supply the direction. Three common choices:

  • The weekly trend. Take daily inside bar breakouts only in the direction of the weekly chart's 20-week average.
  • The previous week's range. An inside bar near the top of last week's range that breaks upward is breaking towards a new high; one near the bottom that breaks upward is still inside the old range.
  • An index filter for stocks. Take long breakouts on stocks only when Nifty itself is above its 50-day average.

Pick one and write it into the rules, so the backtest and the live strategy use the same filter.

Sizing and managing the trade

Size on the stop. With a ₹10,00,000 account and a limit of 1% a trade, the budget is ₹10,000. The daily example, with the stop below the inside bar, risks ₹11,700 per lot, just over that budget; with the wider mother-bar stop it risks ₹14,950. Either the account size, the instrument or the setup has to change. The option spread above, with a maximum loss of ₹8,503, fits.

Manage by rule:

  • Move the stop to the entry once the trade is one risk-unit in profit.
  • Take half at 1.5R if you trade more than one lot, and trail the rest below each new daily low.
  • If the price re-enters the mother bar's range and closes there, many traders exit: the breakout has failed even if the stop has not been hit.

Building the strategy in QuantPower

Arth.live charts inside QuantPower include the Bull Harami and Bear Harami patterns among their 44 candle patterns, and Arth Script lets you define the exact inside bar rule as a custom indicator:

  1. Write the inside bar as a custom indicator: high < high[1] and low > low[1]. It is 1 on an inside bar and 0 otherwise. The server checks the formula before saving, and a saved indicator works in signal rules, backtests and Forward tests.
  2. Open Algos → Signal algos and create a signal on Nifty futures, daily candles, with conditions: the inside bar indicator equals 1, and the close is above the 50-period EMA for longs. Conditions are checked on closed candles.
  3. Set the action to notify you (one-touch). When the signal fires at the close of the inside bar, the mother bar's high and low are known.
  4. Place a GTT OCO with two legs on the futures: a buy that fires above the mother bar's high and a sell that fires below its low. The first to fire cancels the other, which is the two-sided entry from the rules. A GTT can wait up to 365 days, so set your own cancel date by deleting it after three sessions if neither side fires.
  5. Protect the filled side with a stop below the inside bar's low, and a target at 2R, as a second GTT OCO.

A signal that notifies or places its own order costs no tokens; an algo that a signal starts is charged as a live algo, 200 tokens per 28 days. Quanty can write the custom indicator from your words, and you review it before it is saved.

Backtesting an inside bar strategy

QuantPower's rule backtest tests a condition on one instrument over up to 2,000 past candles from your connected broker, from 5-minute to daily, with a stop-loss and target in per cent, an exit rule, slippage and an estimate of charges. On daily candles, that is about eight years of inside bars. See backtesting for the full method.

  • Test both stop placements, inside bar and mother bar.
  • Compare trend-filtered and unfiltered versions.
  • Count the false breaks: trades stopped out within one or two candles.
  • Include slippage on stop orders, which fill at or beyond the trigger.
  • Test the cancel rule: one, three and five candles.

For the daily example, the 180-point stop on 25,185 is about 0.7%, and the 2R target about 1.4%. Read the trade list for the false breaks: if more than half the losses come within two candles of entry, the filters are not doing their job. Read the report in this order:

  1. The share of trades that reached 2R. It measures how often the breakout carried; compare filtered and unfiltered versions.
  2. Losses within two candles. These are the false breaks. A filter that does not reduce them is not helping.
  3. Average win against average loss. With a fixed 2R target the ratio should be close to 2 to 1 after costs; if it is much lower, slippage on the stop orders is eating the edge.
  4. Results by month. Inside bars cluster in quiet periods; check that the profit does not come from one burst of volatility.
  5. Trades not taken. How often the cancel rule removed the orders; too many cancels may mean the cancel window is too short for the timeframe.

Then run the signal in forward test on live prices with test money before going live.

Account safety above the strategy

Every signal and algo sits under the account's own controls:

  • Smart Exit sets a profit target, a stop-loss and a trailing step for the whole account. On a hit it stops the algos and squares off.
  • The daily loss limit refuses new orders once today's loss reaches it.
  • The kill switch stops trading in a segment until that segment's next session, and stops the algos running in it.

A daily breakout is held overnight, and gaps are its main risk: size for a gap through the stop.

Common mistakes

  • Trading every inside bar. On short timeframes they appear many times a day; most mean nothing.
  • Ignoring the trend. Breakouts against the trend fail more often.
  • Leaving orders open too long. An inside bar from last week is no longer a coil.
  • Stops inside the noise. A stop just below the inside bar on a volatile day is hit by ordinary swings.
  • Chasing after a gap. A breakout that opens far beyond the trigger has already used up part of the move.
  • Counting the harami as a breakout signal. The candle pattern marks the pause; the trade still needs the break.
  • Moving the stop wider after entry. A false break that turns into a larger loss because the stop was moved is the most expensive version of the pattern's main weakness.

Where inside bar trading is going

The pattern itself is timeless; what has changed is how precisely it can be tested. A custom indicator that marks every inside bar, and a backtest that fills breakouts at real prices with slippage, let a trader check which filters really reduce false breaks on Nifty, Bank Nifty or a chosen stock. Higher STT on futures from 1 April 2026 favours daily inside bars over hourly ones, or option structures over futures. And the retail algo framework in force since 1 April 2026 brings automated breakout strategies under broker and exchange rules, so the pattern, the entries, the cancel rule and the stops all have to be written down exactly.6

Start with 500 free tokens

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

What is an inside bar in trading?

A candle whose high and low are both within the previous candle's range.

Is an inside bar bullish or bearish?

Neither on its own. It shows a pause. The direction comes from the breakout and the trend, which is why many traders place orders on both sides.

What is the mother bar?

The candle before the inside bar, whose range contains it.

Which timeframe is best for inside bars?

Daily and 1-hour charts give cleaner signals than 5-minute or 15-minute charts. On short charts inside bars form many times a day, most of them inside ordinary noise, and costs take a larger share of each small trade.

Can an inside bar form on a weekly chart?

Yes, and weekly inside bars on Nifty or large stocks mark longer pauses. The rules are the same, with stops and targets several times wider than on the daily chart, so position sizes must be smaller.

Is an inside bar the same as an NR7 day?

No. An inside bar is defined by the previous candle's range; an NR7 day by the narrowest range of the last seven. A day can be both, and an inside NR7 is a tighter version of the setup.

What should I do if both sides of the mother bar break?

That is a false break followed by a move the other way. If you trade both sides with an OCO order, the first fill cancels the other, so you hold only the first side; the stop on that side closes it if the market reverses. Many traders do not re-enter the other side the same day.

References

  1. Steve Nison, *Japanese Candlestick Charting Techniques* (New York Institute of Finance, 1991)
  2. Toby Crabel, *Day Trading with Short Term Price Patterns and Opening Range Breakout* (Traders Press, 1990)
  3. John J. Murphy, *Technical Analysis of the Financial Markets* (New York Institute of Finance, 1999)
  4. NSE, equity derivatives contract specifications (nseindia.com)
  5. Union Budget 2026-27: securities transaction tax on futures and options raised from 1 April 2026 (indiabudget.gov.in)
  6. SEBI, circular on safer participation of retail investors in algorithmic trading, 4 February 2025, in force for every broker from 1 April 2026 (sebi.gov.in)
The examples on this page are hypothetical and for illustration only. Backtested or simulated results do not guarantee future results. Trading involves substantial risk.