Register
Strategy guide

Understand Rule-Based Gap Trading

A gap happens when a market opens well above or below its previous close. Gaps reflect news, results or global moves that happened while the market was closed. A gap trading strategy either trades in the direction of the gap, expecting it to continue, or against it, expecting the price to move back and "fill" the gap.

QuantPower Research · Updated 12 Nov 2026 · 17 min read

Gap trading is about the first hour of the day, when prices move fastest, spreads are widest and decisions have to be made quickly. Rules help more here than almost anywhere else, because the choice between following a gap and fading it has to be made in minutes. This guide explains how gaps form in Indian markets, how they are measured, the two main gap strategies with complete rules, worked examples on stocks and Nifty futures, the filters that separate the two, the risks, costs, and how to build, test and run gap rules in QuantPower.

At a glance

Gap trading
StyleIntraday, at the open
InstrumentsLiquid stocks, index futures
MeasureGap size as a percentage of the previous close, or in multiples of ATR
StrategiesGap and go (continuation), gap fill (fade)
ExitA stop, a target at the previous close, or a time exit
Key decisionWhether the gap has news behind it

A short history of gap trading

Gaps have been studied as long as charts have been drawn. In 1948, Robert Edwards and John Magee's *Technical Analysis of Stock Trends* sorted gaps into the types still used today: common gaps, breakaway gaps, runaway gaps and exhaustion gaps, each with its own meaning in a trend.1 Their work was descriptive: it explained what gaps had meant on past charts, and the labels are easier to apply in hindsight than at the open.

Rule-based gap trading came with intraday data and electronic markets. Once traders could see opening prices, pre-market orders and the first minutes of trade on a screen, gap strategies became precise: a gap of so many per cent, a break of the first fifteen minutes' range, a stop at a defined level. The "opening range breakout" and the "gap and go" became standard intraday setups in the 1990s and 2000s.2

In India, the NSE introduced a pre-open call auction for equities in 2010: orders collected between 9:00 and 9:08 am set the opening price before continuous trading starts at 9:15 am.3 From 8 December 2025 the NSE extended a pre-open session to equity derivatives futures, so Nifty and stock futures now also open at a price discovered in an auction.4 Gaps on Indian indices often follow overnight moves in US and Asian markets and the GIFT Nifty contract that trades in GIFT City, while stock gaps usually follow results and company news.

How gaps form

Markets are closed overnight, but news is not. Company results, global markets, policy announcements and events abroad can change what buyers and sellers will pay. On NSE, the pre-open session from 9:00 to 9:15 am collects orders and sets the opening price. When that price is far from the previous close, the market gaps.

A gap is usually measured as:

Gap % = (open − previous close) ÷ previous close × 100

Many traders also measure it in multiples of ATR, so a 1% gap in a calm stock counts for more than a 1% gap in a volatile one. A 2% gap in a stock with a daily ATR of 1.5% is a larger event than a 2% gap in one whose ATR is 4%.

Full and partial gaps

A full gap opens above the previous day's high, or below its low: no trade at the open overlaps the previous day's range. A partial gap opens above the previous close but inside the previous day's range. Full gaps carry more information, because the whole of yesterday's trading has been left behind; partial gaps fill more often, because the price only needs to return to a level it traded at a few hours earlier.

Types of gaps

  • Common gaps: small gaps without major news. They often fill during the day.
  • Breakaway gaps: gaps out of a range on important news, often on heavy volume. They can start a new trend.
  • Runaway gaps: gaps in the middle of a strong trend, in its direction. They often show the trend is still strong.
  • Exhaustion gaps: gaps late in a long move that soon reverse.

These labels are easier to apply in hindsight than in real time, which is why rule-based strategies use measurable conditions instead: the gap's size, the news behind it, the volume at the open, and what the price does in the first minutes.

Strategy 1: Gap and go

Trade in the direction of a gap that holds.

  1. Setup: the stock opens at least 2% above the previous close, on news or with high pre-open volume.
  2. Trigger: the price breaks above the high of the first 5 or 15 minutes.
  3. Entry: buy at the next price.
  4. Stop: below the low of the first 15 minutes.
  5. Exit: a trailing stop, or close the position by 3:15 pm.

The idea is that a gap on real news reflects a new price, and the buyers who missed the move overnight keep buying in the first hour. Waiting for a break of the first minutes' high confirms that the gap is holding rather than fading.

A worked example: gap and go

Hypothetical. A stock closed at ₹1,010 after the market. It reports results well above expectations and opens at ₹1,040, a gap of about 3%, on volume three times its usual opening volume.

  1. The opening range. In the first 15 minutes it trades between ₹1,032 and ₹1,042.
  2. Trigger. At 9:37 am it breaks above ₹1,042.
  3. Entry. 150 shares are bought at ₹1,043, with a stop below the opening range low at ₹1,031: a risk of ₹12 per share, ₹1,800.
  4. The move. The stock climbs steadily through the morning. A trailing stop under each new 15-minute low follows it.
  5. Exit. The trail is hit at 1:20 pm at ₹1,075: a gain of ₹32 per share, ₹4,800, before costs of about ₹104 at ₹20 an order.

The trade made about 2.7 times its risk. Gap and go trades that work tend to work early; those that fail usually fail within the first hour, near the opening range low.

A gap down on the short side

The same rules work in reverse. Hypothetically, a stock in the F&O list closes at ₹820 and reports weak results; it opens at ₹790, a gap down of about 3.7%, on heavy volume.

  1. The opening range. In the first 15 minutes it trades between ₹785 and ₹796.
  2. Trigger. At 9:41 am it breaks below ₹785.
  3. Entry. One lot of the stock's futures, 600 shares, is sold at ₹784, with a stop above the opening range high at ₹797: a risk of ₹13 per share, ₹7,800.
  4. Exit. The stock slides through the morning; a trailing stop above each new 15-minute high is hit at 12:10 pm at ₹761, a gain of ₹23 per share, ₹13,800, before costs.

A short in the cash market must be squared off the same day. Futures allow an overnight short, but the next morning's open can gap either way, so most gap traders close by the end of the session.

Strategy 2: Gap fill

Trade against a gap that looks overdone.

  1. Setup: the stock opens 1% to 3% above the previous close without major news.
  2. Trigger: the price fails to make a new high in the first 15 to 30 minutes and breaks below the opening range low.
  3. Entry: sell at the next price.
  4. Target: the previous day's close, where the gap would be filled.
  5. Stop: above the day's high.
  6. Time exit: close the position by a set time if the gap has not filled.

A worked example: gap fill

Gap fill rules: a gap up from ₹600 to ₹612, no new high in 30 minutes, sell ₹606 after a close below that range, stop ₹617, target ₹600 (illustration)

This is a hypothetical example, not a result.

  • A stock closed at ₹600 yesterday. It opens today at ₹612, a gap of 2%, with no company news.
  • In the first 30 minutes it trades between ₹608 and ₹616 and makes no new high.
  • At 9:50 am, a candle closes at ₹607, below the opening range low.
  • The order sells 200 shares at ₹606 with a stop above the day's high at ₹617, a risk of 200 × ₹11 = ₹2,200.
  • The target is the previous close of ₹600, a gain of 200 × ₹6 = ₹1,200 if reached, before costs of about ₹90.

The reward is smaller than the risk here, so this version needs a high success rate to pay. Many traders improve the ratio by using a closer stop, such as above the opening range high at ₹616, which cuts the risk to ₹10 per share. Others aim beyond the previous close, to the previous day's last hour's range, when the market is weak.

What the pre-open tells you

Between 9:00 and 9:08 am, orders are collected for the opening auction, and the exchange shows an indicative opening price and the buy and sell quantities as they build up. Three things are worth reading:

  • The indicative price against the previous close, which is the gap before it happens.
  • The total quantity, compared with the stock's usual pre-open volume. A gap on heavy pre-open interest has more conviction behind it.
  • The balance of buy and sell orders. A large surplus of unmatched buy orders after the auction can mean buyers are still waiting.

The pre-open is a guide, not a signal: orders can be changed or cancelled until the order entry window closes, and the first minutes of continuous trading often move the price well away from the auction price.

Choosing between follow and fade

The same opening can suit either strategy. The deciding questions, asked in order:

  1. Is there news? A gap on results, an order win or a downgrade reflects new information, and fading it is the riskiest trade in gap trading. A gap with no company news, following a general market move, is more likely to fill.
  2. How large is the gap in ATR terms? Gaps of less than one ATR often fill; gaps of two ATRs or more, on news, more often keep going.
  3. What does the first 15 to 30 minutes do? A gap that holds above its opening range is acting like a gap and go. One that cannot make a new high and breaks the opening range low is acting like a gap fill.
  4. What is the market doing? A stock gapping up on a day when Nifty also gaps up and keeps rising has a tailwind; the same gap on a falling market day is more likely to fade.
Gap and goGap fill
Gap causeNews, results, a sector moveNo company news
Gap sizeLarge, often two ATRs or moreSmall to moderate
First 30 minutesHolds above the opening rangeFails to make new highs
EntryBreak of the opening range highBreak of the opening range low
TargetTrailing stopThe previous close
Main dangerA failed break and a reversalA news gap that trends all day

Gap trading in index futures

Nifty and Bank Nifty futures also gap, often because of overnight moves in global markets. Index gaps tend to be smaller in percentage terms than stock gaps, and large index gaps usually follow major events. The opening range breakout strategy is often used alongside gap rules on index futures.

Bank Nifty and Sensex

Bank Nifty gaps are usually larger in points and in per cent than Nifty's, because the index is concentrated in a few large banks whose own news, such as results or a policy change from the RBI, moves the whole index. Sensex futures on the BSE follow Nifty closely at the open, so a gap rule built on one usually applies to the other with the levels scaled. For both, measure the gap in ATR rather than points, so that the rule means the same thing on each index.

A worked example on Nifty futures

Hypothetical. After a strong night in US markets, Nifty futures open at 25,180, 140 points above the previous close of 25,040, a gap of about 0.6%. The daily ATR is 210 points, so the gap is two-thirds of an ATR, with no domestic news.

  1. The first 15 minutes. The futures trade between 25,160 and 25,210.
  2. No follow-through. By 9:45 am they have not made a new high, and a 5-minute candle closes at 25,155, below the opening range low.
  3. Entry. One lot of 65 is sold at 25,150, with a stop above the opening range high at 25,215: a risk of 65 points, ₹4,225.
  4. Target. The previous close at 25,040, a gain of 110 points, ₹7,150 if reached.
  5. Exit. The futures drift down and reach 25,045 at 12:40 pm. The trade closes for about 105 points, ₹6,825, before costs of about ₹975 for the round trip at the rates from 1 April 2026.5

Costs take about a seventh of the gain on an index futures gap trade of this size, and a larger share of smaller ones. A gap rule on index futures needs targets well above about 15 points to pay.

Gaps in options

Option prices at the open reflect two changes at once: the gap in the underlying and any change in implied volatility. A gap on news often comes with a fall in IV once the uncertainty has passed, so a call bought on a gap-up open can rise less than the index suggests. Many traders take the signal from the futures and trade the options for a fixed maximum loss: a call or a bull call spread for a gap and go on the index, a put or a bear put spread for a gap fill after a gap up. Option legs in QuantPower can carry a stop in underlying points, so the option trade can be closed when the futures break the opening range level.

Risks

  • News gaps can keep going. A gap on results or a major event can trend all day. Gap-fill trades against news are the most dangerous.
  • Liquidity at the open. Spreads can be wide in the first minutes, so fills may slip.
  • Short selling limits. Intraday short sales of stocks must be closed the same day.
  • Price bands. Stocks outside the F&O list have daily price bands. A large news gap can reach the band, and the stock then stops trading in one direction, so a stop cannot fill (see circuit limit meaning).
  • Overnight positions. A swing trade held into the next morning carries gap risk the other way: the stop does not protect against a gap through it.

Sizing gap trades

Size each gap trade from the distance to its stop, not from the margin available. The opening range sets the stop, and its width varies a lot from day to day: a quiet opening might give a ₹6 range on a ₹600 stock, a news opening a ₹25 range. With ₹2,000 at risk per trade, the first allows about 330 shares and the second 80. Fixed share counts would make the risk on news days four times larger, just when the moves are least predictable. The position size calculator does the arithmetic.

Gaps around events and expiry

Some days bring larger gaps than others. Mornings after the Union Budget, an RBI decision announced during the previous session, US Federal Reserve decisions and US inflation data often open with index gaps larger than usual. Stocks gap most on the morning after their results. Expiry days add another effect: positions being closed or rolled can push index futures and heavy stocks in the first hour for reasons that have nothing to do with news. Gap rules tested on ordinary days can behave very differently on these, and many traders size down or stand aside.

What gap trades cost

Intraday equity trades pay STT on the sell side and the usual exchange, SEBI, stamp duty and GST charges; at ₹20 an order, a round trip on 200 shares at ₹600 costs about ₹90. A round trip in one Nifty futures lot costs about ₹975, most of it STT on the sale. Slippage at the open can cost more than either: the first minutes have the widest spreads of the day, and a stop hit in a fast move fills beyond its trigger. Limit orders with a small buffer help on entries; stops have to be accepted at whatever price the market gives.

Building gap rules in QuantPower

QuantPower runs rules on your own broker account, through the two static IPs included with every account.

  1. Find the gaps. QuantPower's scanner has a preset for gaps, and can run on a universe such as F&O stocks, Nifty 500 or your watchlist, on 5-minute, 15-minute, hourly or daily candles. Run it just after 9:15 am to list the morning's gappers.
  2. Filter by condition. In Algos → Signal algos, a signal can watch a day change in per cent, such as "up more than 2% from the previous close", combined with other conditions, up to 20 in ALL and ANY groups, checked on closed candles from 1 minute up.
  3. Use the opening range. For an index or stock algo, the ORB entry mode reads the high and low of the first N minutes, from 1 to 180, from the market open, and enters on the first price above the high or below the low, as you choose. That is the gap and go trigger in one setting.
  4. Set the exits. Per-leg stop and target in points or per cent, a trailing stop that moves Y for every X in your favour, and an exit time such as 3:15 pm. Algos with stock legs are intraday.
  5. One-touch or auto. A signal can notify you with the order ready to place, or, once armed, place it itself with every risk check. A signal can also start an algo. A signal that places its own order costs no tokens; an algo it starts is charged as a live algo, 200 tokens per 28 days.
  6. Test. Use the rule backtest on 5-minute or 15-minute candles of one instrument to check the trigger and exits, with slippage and charges included. See backtesting. Then run the rules in forward test with test money through a few weeks of openings.

Account safety above the rules

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, which caps a bad morning. The kill switch stops a segment until its next session. They cover every connected broker together.

Testing gap rules

  • Use intraday data with real opens. Daily candles hide what happened in the first minutes.
  • Separate news gaps from others. Results days behave differently; tag them in the test.
  • Count slippage at the open generously; the first fills of the day are the worst.
  • Check the gap size buckets. A rule may work on 1% to 2% gaps and fail on 3% gaps.
  • Look at the time of the exits. Gap trades that work usually work by midday; trades still open in the afternoon are often drifting.
  • Test full and partial gaps separately. A gap that opens beyond the previous day's range behaves differently from one that opens inside it.

Reviewing gap trades

Keep a short record of each gap trade: the gap size in per cent and in ATR, whether there was news, the market's direction that morning, the opening range width, the entry time, the exit time and reason, and the result in multiples of the risk. After fifty trades, the patterns show: gap fills may work on small gaps without news and fail above two ATRs, or gap and go may work only when the index moves the same way. The record turns gap trading from a series of morning decisions into a rule that can be tested and improved.

Who gap trading suits

Gap trading suits a trader who is at the screen, or has rules running, at 9:15 am, and who can make or automate decisions within minutes. It suits disciplined traders who accept small, quick losses when a gap does not behave. It does not suit anyone who cannot watch the open, or who holds a losing intraday trade overnight in the hope of a better price tomorrow.

Common gap trading mistakes

  • Fading a news gap. The most expensive habit in gap trading.
  • Entering in the first minute. Waiting for the opening range costs a little and avoids many reversals.
  • Using a fixed gap size for every stock. Measure in ATR.
  • Holding an intraday gap trade overnight because it is losing.
  • Ignoring the market. A stock's gap behaves differently on a strong and a weak index day.
  • Trading too many gappers. Five gap trades at once on one market day are one bet on the market's direction.
  • Chasing the open. Buying a gap-up in the first seconds pays the widest spread of the day for the least information.

Where gap trading is going

The pre-open auction for futures, from December 2025, has made opening prices in Nifty and stock futures cleaner, with less of the first-minute chaos that once made gap trading on futures difficult.4 Longer trading hours for F&O, to 3:40 pm from 3 August 2026, give intraday gap trades a little more time to work.6 Scanners that list gappers within seconds of the open and signal algos that act on closed candles make it practical to apply gap rules to many stocks at once. Under the retail algo framework in force since 1 April 2026, such rules run through brokers as registered algos.7 The core judgement does not change: is this gap new information, or a temporary imbalance? Software can measure the gap, read the opening range and place the order in a second; deciding which kind of gap it is remains the rule-writer's job, and the record of past trades is the best guide to it.

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

Do gaps always fill?

No. Many small gaps fill on the same day, but gaps on major news can keep going for days or never fill.

What is a good gap size to trade?

It depends on the instrument. Many traders measure gaps in multiples of ATR, so the threshold adapts to how volatile the stock is.

Can I trade gaps in Nifty options?

Yes, using signals from Nifty futures. Option premiums at the open can also be affected by changes in implied volatility.

Why do Nifty futures gap when Indian markets were closed?

Because prices kept moving elsewhere: US and Asian markets trade while India is closed, and the GIFT Nifty contract trades for many more hours than the NSE. The opening auction brings Nifty futures in line with what happened overnight.

Should I trade gaps on results days?

Results gaps are the largest and the least predictable. Many gap traders either trade only in the direction of a results gap, after it holds, or avoid results days altogether.

References

  1. Robert D. Edwards and John Magee, *Technical Analysis of Stock Trends* (1948)
  2. John J. Murphy, *Technical Analysis of the Financial Markets* (New York Institute of Finance, 1999)
  3. NSE, pre-open call auction session for equities (nseindia.com)
  4. NSE, pre-open session for equity derivatives futures, from 8 December 2025 (nseindia.com)
  5. Union Budget 2026-27: securities transaction tax on futures and options raised from 1 April 2026 (indiabudget.gov.in)
  6. NSE, circular on F&O trading hours to 3:40 pm from 3 August 2026 (nseindia.com)
  7. 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. Trading involves substantial risk. This guide is for education and is not investment advice.