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
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.