OPEN-SOURCE SCRIPT

Aggregated Open Interest

106
🔰 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

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.