The total number of derivative contracts currently outstanding — a count of open positions, which is a different thing from the volume traded.
Open interest (OI) is the total number of derivative contracts — futures, perpetual swaps, or options — that exist and remain open at a point in time. It is fundamentally different from volume: volume counts how many contracts changed hands during a period, while open interest counts how many positions are still outstanding. Every open contract has exactly one long and one short side, so OI counts contract pairs, not participants. Open interest only exists for derivatives; spot stocks, spot crypto, and spot forex have no open interest at all (the weekly CFTC Commitments of Traders report is the closest proxy for forex positioning, and it is both delayed and partial). Data honesty matters here: on charting platforms, OI is exchange-reported data with very different cadence and coverage by asset class — regulated futures exchanges such as CME publish official OI once daily after settlement, while some crypto exchanges expose per-exchange perpetual OI at higher frequency through dedicated data symbols. OI describes positioning that already exists; it does not predict price. This is educational content only, not financial advice, and trading involves risk of loss.
The mechanics are bookkeeping. When a new buyer and a new seller create a contract that did not exist before, open interest rises by one. When an existing long and an existing short both close against each other, open interest falls by one. When an existing position simply passes from one trader to another — one long sells to a new long — open interest is unchanged, even though volume printed. This is why volume can be enormous on a day when OI barely moves: most of the activity was positions changing hands rather than being created or destroyed. The classic interpretation grids pair price direction with OI direction (rising price with rising OI read as new longs entering; falling price with falling OI read as longs liquidating, and so on), but these are descriptive heuristics, not tested laws. The data itself arrives on the reporter's schedule: CME open interest is published once per day, so any intraday futures OI plot is stale by construction, and crypto OI is reported per exchange, so a single feed never represents market-wide positioning across venues.
Open interest has no calculation parameters — there is nothing to smooth or average in its definition. The choices are which data symbol to read (for example an exchange's dedicated OI feed for a perpetual contract, or the daily OI series for a futures contract) and the timeframe. Daily is the natural resolution for regulated futures because that is the official reporting cadence. Some traders additionally plot the bar-to-bar change in OI as columns to make position creation and destruction easier to see.
//@version=6
indicator("Open Interest Example", overlay = false)
// Many crypto perpetuals expose OI via a dedicated "_OI" data symbol.
oiTicker = input.string("BINANCE:BTCUSDT.P_OI", "Open Interest Symbol")
tf = input.timeframe("D", "OI Timeframe")
// [1] offset + lookahead_off: read only the prior completed value,
// so the plot does not repaint on higher-timeframe updates.
oiClose = request.security(oiTicker, tf, close[1], lookahead = barmerge.lookahead_off)
oiDelta = ta.change(oiClose)
plot(oiClose, "Open Interest", color = color.teal)
plot(oiDelta, "OI Change", color = color.gray, style = plot.style_columns)
hline(0, "Zero", color = color.new(color.gray, 50))Pro tip: Before drawing any conclusion from an OI chart, answer two questions: where does this number come from, and when was it last updated? A once-daily CME settlement figure and a near-real-time single-exchange crypto feed are different objects that happen to share a name, and treating one like the other is how OI analysis goes wrong. This is educational information only, not financial advice — open interest describes existing positioning, predicts nothing, and all trading carries risk of loss.
Educational only — not financial advice, not a recommendation to trade. No indicator is predictive; trading involves substantial risk of loss.