Open Interest (OI) Analysis: Reading NSE Option Chain Data


Price tells you what happened. Open Interest tells you who’s positioned and how committed they are to being wrong. For NIFTY/SENSEX weekly options, reading OI build-up is the fastest way to locate the strikes the market is actually defending.

1. What Open Interest Actually Measures

Open Interest (OI) is the total number of outstanding option contracts (long + short, counted once per pair) that have not been closed, exercised, or expired. It does not reset at the end of the day like volume does — it accumulates across sessions until expiry.

Critically, OI tells you nothing about direction by itself. It needs to be read together with the price move in that contract:

Price OI Interpretation
Up Up Long build-up — fresh buying
Up Down Short covering
Down Up Short build-up — fresh selling
Down Down Long unwinding

A rising premium with rising OI means new money is entering that view. A rising premium with falling OI means shorts are being forced to cover — a very different, often more fragile, move.

2. Max Pain and OI-Based Support/Resistance

Strikes with the heaviest Call OI often act as resistance — large option writers (sellers) have a vested interest in price staying below that strike into expiry, so they’re motivated counterparties selling into any rally that approaches it. Symmetrically, heavy Put OI strikes tend to act as support.

import pandas as pd

def oi_support_resistance(option_chain: pd.DataFrame, top_n: int = 3):
    """
    option_chain: DataFrame with columns ['strike', 'call_oi', 'put_oi']
    Returns the top_n strikes by call OI (resistance) and put OI (support).
    """
    resistance = option_chain.nlargest(top_n, 'call_oi')[['strike', 'call_oi']]
    support = option_chain.nlargest(top_n, 'put_oi')[['strike', 'put_oi']]
    return support, resistance

support, resistance = oi_support_resistance(chain_df)
print("Support strikes (high put OI):\n", support)
print("Resistance strikes (high call OI):\n", resistance)

This is a heuristic, not a law — heavy OI strikes get breached regularly, especially on strong trend days or news-driven moves. Treat it as a probability weighting, not a hard wall.

3. Put-Call Ratio (PCR)

$$PCR = \frac{\text{Total Put OI}}{\text{Total Call OI}}$$

  • PCR > 1: more put OI than call OI outstanding — often read as mildly bullish (contrarian: heavy put writing implies sellers expect support to hold), though this flips in panic conditions where puts are being bought for protection.
  • PCR < 1: more call OI than put OI — often read as mildly bearish by the same contrarian logic.

PCR is a sentiment gauge, not a timing signal — extreme readings (very high or very low) are more informative than the absolute level, and PCR should never be traded in isolation from price action.

def put_call_ratio(option_chain: pd.DataFrame) -> float:
    total_put_oi = option_chain['put_oi'].sum()
    total_call_oi = option_chain['call_oi'].sum()
    return total_put_oi / total_call_oi if total_call_oi else float('inf')

pcr = put_call_ratio(chain_df)
print(f"PCR: {pcr:.2f}")

4. OI Change Over the Session, Not Just the Snapshot

A single end-of-day OI number is much less useful than tracking OI change intraday, strike by strike, especially around the ATM zone in the last hour of a weekly expiry — this is where option writers aggressively defend or abandon strikes as gamma risk peaks.

def oi_change(chain_now: pd.DataFrame, chain_prev: pd.DataFrame) -> pd.DataFrame:
    merged = chain_now.merge(chain_prev, on='strike', suffixes=('_now', '_prev'))
    merged['call_oi_change'] = merged['call_oi_now'] - merged['call_oi_prev']
    merged['put_oi_change'] = merged['put_oi_now'] - merged['put_oi_prev']
    return merged[['strike', 'call_oi_change', 'put_oi_change']]

5. Limitations

  • OI data lags — NSE option chain OI typically updates with a short delay, not tick-by-tick; don’t treat it as a real-time order-flow signal.
  • Max Pain is a model, not a guarantee — it describes where option writers’ aggregate payoff is minimized at expiry, but price has no obligation to gravitate there, especially with directional spot momentum.
  • Index vs. stock options differ — NIFTY/SENSEX weekly OI is dominated by institutional hedging flow, which behaves differently from single-stock option OI dominated by retail directional bets.

Pair this with the Implied Volatility read on the same chain — OI tells you where positioning is concentrated; IV tells you how expensive that positioning is to hold.

SEBI MANDATORY REGULATORY DISCLAIMER

Important Notice & Educational Purpose: XAlgoPro (xalgopro.com) and its authors/contributors are NOT SEBI registered Research Analysts (RA) or Investment Advisers (IA) under the SEBI (Research Analysts) Regulations, 2014, or SEBI (Investment Advisers) Regulations, 2013.

All content, algorithmic logic, indicators, Pine Script codes, Python scripts, statistical models, mathematical formulas, and backtest results presented on this platform are published strictly for educational, academic, and technological research purposes only. Nothing on this website constitutes investment advice, financial guidance, an offer, recommendation, or solicitation to buy or sell any security, derivative, contract, or financial instrument on the National Stock Exchange (NSE), Bombay Stock Exchange (BSE), or any other global exchange.

SEBI Statutory Risk Disclosure on Derivatives (F&O):As per SEBI study on Intraday & Derivatives trading, 9 out of 10 individual traders in the Equity Futures and Options (F&O) segment incurred net losses, with an average loss of over ₹50,000 per trader. Over and above net trading losses, loss-makers expended an additional 15% to 50% in transaction fees, brokerage, and statutory taxes (STT, GST, Stamp Duty). Trading options and futures involves substantial financial risk, leverage, and potential loss of entire invested capital.

Past algorithmic backtest performance or hypothetical simulations do not guarantee or represent future live trading results. Readers and users must perform their own independent due diligence, test thoroughly in simulated/paper trading environments, and consult an authorized SEBI Registered Financial Advisor before risking actual capital in Indian equity or derivatives markets. You are solely responsible for all trading decisions, capital allocations, and monetary risks undertaken.