OPEN-SOURCE SCRIPT
Aggregated Open Interest

🔰 Aggregated Open Interest — Multi-Exchange + Base/USD Denomination Control
By [MohsenCharts]
This indicator was created to aggregate all available Open Interest (OI) data on TradingView across major crypto futures exchanges, providing a complete, real-time view of leveraged capital flow in the market.
It includes a powerful denomination toggle:
Base Denomination (default): shows OI in terms of the base asset (e.g., BTC, ETH)
USD Denomination: converts all OI values into USD using the real-time price
📦 Aggregates Open Interest from:
Binance (USDT, USD, and USDC contracts)
BitMEX (USD and USDT contracts)
Kraken (USD contracts)
OKX (USDT and USD contracts)
🆕 This script is designed to be updated continuously as TradingView adds new exchanges or instruments with _OI data. Any new OI source will be added in future updates automatically.
🧠 How to use it:
This indicator works on any chart — spot, perpetual, or otherwise — including BTC, ETH, altcoins, etc.
The OI data is pulled directly from supported futures contracts using request.security() — regardless of the current chart type.
🔍 Why Open Interest matters:
🔺 Rising OI with price: indicates new positions (breakouts or trend continuation)
🔻 Falling OI after strong move: suggests liquidations or profit taking
🔄 Divergences between price and OI (e.g., price up but OI down) often signal trend exhaustion
🧠 Use OI candles to analyze how leverage evolved within each bar (not just at the close)
💥 Spikes in OI wicks may reflect aggressive shorting or margin pressure
⚙️ Features:
✅ Aggregates OI from multiple exchanges
⚖️ Toggle between Base and USD denomination
📊 Real Open Interest Candlesticks (OHLC)
🧩 Modular: turn individual exchanges on/off
🛠️ Fully compatible with any crypto symbol, including spot and perp charts
Note: The indicator does not require you to apply it to a futures contract. It works on any symbol. The Open Interest data is fetched from _OI contracts internally, using request.security().
Telegram :
t.me/TradeZone_TZ
By [MohsenCharts]
This indicator was created to aggregate all available Open Interest (OI) data on TradingView across major crypto futures exchanges, providing a complete, real-time view of leveraged capital flow in the market.
It includes a powerful denomination toggle:
Base Denomination (default): shows OI in terms of the base asset (e.g., BTC, ETH)
USD Denomination: converts all OI values into USD using the real-time price
📦 Aggregates Open Interest from:
Binance (USDT, USD, and USDC contracts)
BitMEX (USD and USDT contracts)
Kraken (USD contracts)
OKX (USDT and USD contracts)
🆕 This script is designed to be updated continuously as TradingView adds new exchanges or instruments with _OI data. Any new OI source will be added in future updates automatically.
🧠 How to use it:
This indicator works on any chart — spot, perpetual, or otherwise — including BTC, ETH, altcoins, etc.
The OI data is pulled directly from supported futures contracts using request.security() — regardless of the current chart type.
🔍 Why Open Interest matters:
🔺 Rising OI with price: indicates new positions (breakouts or trend continuation)
🔻 Falling OI after strong move: suggests liquidations or profit taking
🔄 Divergences between price and OI (e.g., price up but OI down) often signal trend exhaustion
🧠 Use OI candles to analyze how leverage evolved within each bar (not just at the close)
💥 Spikes in OI wicks may reflect aggressive shorting or margin pressure
⚙️ Features:
✅ Aggregates OI from multiple exchanges
⚖️ Toggle between Base and USD denomination
📊 Real Open Interest Candlesticks (OHLC)
🧩 Modular: turn individual exchanges on/off
🛠️ Fully compatible with any crypto symbol, including spot and perp charts
Note: The indicator does not require you to apply it to a futures contract. It works on any symbol. The Open Interest data is fetched from _OI contracts internally, using request.security().
Telegram :
t.me/TradeZone_TZ
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.