QuantsappFaster in the app: live data, alerts, tradingOpen
Log inStart free
Open Backtesting →
OI · PCR · VIX signalsIntradayRELIANCEmedium complexity

5-min OI build-up, stock futures

Long build-up and short build-up are among the most watched open-interest readings in Indian stock futures. This intraday strategy hunts for them on 5-minute bars: price jumps, open interest rises and volume spikes at the same time, with price on the matching side of VWAP. It then trades in the direction of the build-up, looking for a quick continuation. Each run tests one stock; the default is RELIANCE.
Trades a stock future in the direction of a 5-minute burst of price, open interest and volume, exiting at a small target, stop, or when OI starts to fall.
Market viewEither direction (follows the move)
TradesRELIANCE near-month futures, 1 lot
RiskOpen-ended (loss not capped by the structure)
CapitalFutures margin
SuitsIntermediate
Trades a month0.8
Typical hold12 min
Profitable months1 of 12
Longest losing run3 trades
Made money inToo few trades to say (10 in the year)
Lost money inToo few trades to say; gap-down days lost
Default settings
Symbol
Price chg %
OI chg %
Vol z
Vol z bars
SL %
Tgt %
Bar secs
Exit 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
RELIANCE Intraday · 1 Oct 25 → 30 Sep 26
Enters
next bar after a 5-min build-up (price 0.25%, OI 0.3%, volume z 2), 09:45-14:30
Legs
BUY FUT · near month · Current month · 1 lotSELL FUT · near month · Current month · 1 lot
Exits
stop 0.4% against the entry pricetarget 0.8% in favoursignal first later bar with falling OItime 15:15
Re-entry
Any new signal after an exit
Bars
5-minute bars of the near-month future from 09:15 - close = last print in the bar, OI = futures OI of all months (oi_total) at the bar's end, volume = the bar's traded futures volume. Signal on a bar ending between WINDOW_START and WINDOW_END, outside LUNCH (12:00-13:00): LONG (long build-up) price change >= +PRICE_CHG_PCT %, OI change >= +OI_CHG_PCT %, volume z-score >= VOL_Z, and the price above the day's VWAP; SHORT (short build-up) price change <= -PRICE_CHG_PCT %, OI change >= +OI_CHG_PCT %, volume z-score >= VOL_Z, and the price below the day's VWAP. Volume z = (bar volume - mean) / std of the previous VOL_Z_BARS bars (carried across days).
Entry
at the next bar's open (the first print after the signal bar closes), LOTS lots. Skipped while the stock is in the F&O ban (no fresh OI allowed).
Exits
stop SL_PCT % / target TGT_PCT % of the entry price (fill at the level); OI unwinding - the first later bar whose OI change is negative, at that bar's close; time - EXIT_TIME. One position at a time; any new signal after an exit re-enters.
2

Results

PRE-BUILT · DEFAULTS
RELIANCE · 2025-10-01 → 2026-09-30 · 10 trades · before costs
Net P&L−₹5,512
Win rate40%
Max drawdown−₹10,433
Avg per trade−₹551
Profit factor0.55
Worst trade−₹2,675
3

Where it made and lost money

The filters are strict, so RELIANCE produced only ten signals in the year and no market condition has enough trades to judge. The small sample leans one way: the four trades on days when NIFTY opened with a gap down lost ₹7,883 together, and trades on days NIFTY closed above its open lost ₹7,708 over five. A 5-minute build-up is a short burst; on gap days the stock was often already stretched, so the 0.4% stop came before the 0.8% target. Half of all trades ended on the first sign of OI unwinding, usually within minutes of entry.

India VIX the evening before
VIX below 11.5 (calm)+₹2,6204 trades50% won
VIX 11.5-14.5 (normal)−₹4,8083 trades33% won
VIX above 14.5 (nervous)−₹3,3253 trades33% won
Kind of session on the entry day
Quiet session (range under 0.75%)−₹2,7875 trades20% won
Trend day (closed near the high or low)−₹3,4252 trades0% won
Choppy day (wide range, closed mid-range)+₹7003 trades100% won
How the entry day opened
Gap up of 0.4% or more+₹5001 trades100% won
Flat open+₹1,8705 trades40% won
Gap down of 0.4% or more−₹7,8834 trades25% won
Session direction on the entry day
NIFTY closed above its open−₹7,7085 trades20% won
NIFTY closed below its open+₹2,1965 trades60% won
Trend going in
Uptrend (NIFTY above its 20-day average)+₹7633 trades33% won
Downtrend (NIFTY below its 20-day average)−₹6,2757 trades43% won
Expiry day (NIFTY weekly)
Expiry day+₹3,8963 trades67% won
Other days−₹9,4087 trades29% won
Day of the week
Monday−₹3,4252 trades0% won
Tuesday+₹6,5702 trades100% won
Wednesday−₹1,8001 trades0% won
Thursday−₹1,6502 trades50% won
Friday−₹5,2083 trades33% won
The same trades, split by the market conditions around each entry, before costs.
4

About this strategy

  1. Build 5-minute bars of the stock's near-month future with price, total futures OI across months and traded volume.
  2. Between 09:45 and 14:30, skipping 12:00 to 13:00, flag a long build-up when price rises at least 0.25%, OI rises at least 0.3%, volume is two standard deviations above the last 20 bars, and price is above VWAP.
  3. Flag a short build-up when price falls at least 0.25% with the same OI and volume conditions and price below VWAP.
  4. Enter one lot at the start of the next bar in the build-up's direction; skip days when the stock is in the F&O ban.
  5. Exit at a 0.4% stop or a 0.8% target on the entry price, at the close of the first later bar where OI falls, or at 15:15.

Why traders use it

Price and OI moving up together is read as fresh buying, and price down with OI up as fresh shorting. A sudden burst of both, backed by unusually heavy volume, suggests large traders are building positions now, and the hope is to ride the next few minutes of that move. Exiting as soon as OI starts to fall keeps the trade tied to the reason for entry: once positions are being closed rather than opened, the signal is gone.

Works best whenA stock is in the middle of a strong, news-driven move where fresh positions keep building for several bars after the first spike, carrying price to the 0.8% target.
Struggles whenSpikes that are one-off bursts, such as block trades or roll activity, after which OI starts falling within minutes, and gap days when the stock is already stretched before the signal.

The year in plain words

On RELIANCE futures from 1 Oct 2025 to 30 Sep 2026 the filters fired only ten times. Four trades won and six lost, for a ₹5,512 loss before costs and ₹8,350 after ₹20 per order and bid-ask slippage, a profit factor of 0.55. Five trades exited on OI unwinding, three at the stop, one at the target and one at 15:15, with a median hold of 12 minutes. January 2026 was the only positive month, at ₹6,670, thanks to the single target hit. Ten trades on one stock cannot show whether the idea works.

What the settings do

Price chg %The minimum price change in one bar, in percent, to count as a build-up. Lower values find more, weaker signals.OI chg %The minimum rise in futures OI in one bar, in percent.Vol zHow unusual the bar's volume must be, in standard deviations above recent bars. Higher values demand a bigger spike.Vol z barsHow many previous bars are used to judge normal volume.SL %The stop as a percent of the entry price.Tgt %The target as a percent of the entry price.Bar secsThe bar length in seconds; 300 means 5-minute bars.Exit timeWhen any open position is closed.

Risks

  • Signals are rare on any one stock, so a single run says little; the idea was designed to scan many stocks at once.
  • Stock futures carry company-specific gap and news risk beyond the index.
  • A 0.4% stop is tight for a volatile stock, so noise can trigger it.
  • Stock futures spreads are wider than NIFTY's, which raises the after-costs drag.

Who it suits

Traders who watch OI build-up data on stock futures and want to test a strict, rule-based version on a stock of their choice, with futures margin and the ability to act within minutes.

5

Questions traders ask

What is long build-up and short build-up?

Long build-up is price rising while open interest rises, read as new buyers entering. Short build-up is price falling while open interest rises, read as new sellers entering. Falling OI instead suggests positions are being closed, called short covering or long unwinding.

Is the 5-minute OI build-up strategy profitable?

On RELIANCE futures from 1 Oct 2025 to 30 Sep 2026 it lost ₹5,512 before costs and ₹8,350 after ₹20 per order and bid-ask slippage, from just ten trades. Statutory charges were excluded. The sample is far too small to judge, and past results do not guarantee future ones.

Can I run it on other stocks?

Yes. Change the symbol to any liquid F&O stock. Each run tests one stock, so testing a basket means running it several times and combining the results.

Why skip stocks in the F&O ban?

While a stock is in the ban, traders cannot open fresh positions, so open interest cannot build up in the normal way. Any OI change then reflects closing trades, which would make the signal meaningless.

6

Before you rely on it

ADAPTED FOR TODAY'S NSE RULES- "Volume z lookback" is not in the source; the prior 20 bars of the same symbol (spec). - VWAP is the future's session VWAP (History.vwap(): its own ticks weighted by traded volume since the open, the opening print's volume included, as a chart's VWAP line shows it). - "Stop assumed hit first when both are in the same bar" is moot here: exits are checked tick by tick, so whichever level printed first wins. - OI is all-months (oi_total) so a roll-day shift between series does not read as build-up.
WATCH OUTthe source runs 43 liquid F&O stocks at once; one Backtest is one symbol, so this file trades ONE stock (SYMBOL) - the universe is N runs. only ~3 months of futures OI history, best of 30+ variants reported, and costs were 37.6% of gross - run with bt.slippage / bt.brokerage before believing it.
Also known aslong buildup scalpshort buildup scalpoi spurts intraday
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.