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
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。