PROTECTED SOURCE SCRIPT

Cross-Exchange Open Interest[nakano]

6
## Cross-Exchange Open Interest

This Pine Script® indicator aggregates **Open Interest (OI)** across multiple exchanges and trading pairs, displaying it as a single, easy-to-understand candlestick chart. OI represents the total number of outstanding derivative contracts and is a crucial metric for gauging market sentiment and liquidity.

このPine Script®インジケーターは、複数の取引所と複数の取引ペアにわたる**オープンインタレスト (OI)** を集計し、単一の分かりやすいローソク足チャートとして表示します。OIは未決済のデリバティブ契約の総数を表し、市場のセンチメントと流動性を測る重要な指標となります。

### Key Features

* **Cross-Exchange Aggregation:** Integrates OI data from several major exchanges (e.g., Binance, OKX, BitMEX, Kraken). You can configure up to 10 exchange slots.
* **クロス取引所集計:** 複数の主要な取引所 (例: Binance, OKX, BitMEX, Kraken) からのOIデータを統合します。最大10個の取引所スロットを設定できます。
* **Multi-Pair Support:** For each exchange, you can specify multiple trading pairs (e.g., `USDT.P`, `USD.P`) separated by commas, and their OIs will be summed up.
* **複数ペアサポート:** 各取引所に対し、カンマ区切りで複数の取引ペア(例: `USDT.P`, `USD.P`)を指定し、それらのOIを合計して表示できます。
* **Flexible Asset Settings:**
* **Chart Symbol:** Automatically aggregates OI for the base asset of the current chart (e.g., BTC if on a BTCUSDT chart).
* **Custom Asset:** Allows you to manually specify a base asset (e.g., ETH, SOL) for OI aggregation.
* **柔軟な資産設定:**
* **チャートシンボルに連動:** 現在表示しているチャートの基本資産(例: BTCUSDTチャートならBTC)のOIを自動的に集計します。
* **カスタム資産:** 特定の基本資産(例: ETH, SOL)のOIを手動で指定して集計することも可能です。
* **OI Candlestick Display:** Plots the aggregated OI data as candlesticks.
* **Up/Down Candles:** OI increases are shown as "up" candles, and decreases as "down" candles, with customizable colors.
* **OIローソク足表示:** 集計されたOIデータをローソク足としてプロットします。
* **陽線/陰線:** OIが増加した場合は陽線、減少した場合は陰線として表示され、色をカスタマイズできます。
* **Bar Coloring based on OI Change:** Features the ability to change the color of the main chart's price bars based on significant OI changes.
* **Dynamic Threshold:** Calculates a dynamic threshold based on historical OI changes and a user-defined multiplier to automatically identify "significant changes" in OI.
* **Color-coded:** Highlights the main chart's bars with customizable colors when there is a large increase or decrease in OI.
* **OI変化に基づくバーカラーリング:** メインチャートの価格バーの色を、OIの大きな変化に基づいて変更する機能があります。
* **動的閾値:** 過去のOI変化を基に動的な閾値を計算し、設定した乗数に応じてOIの「大きな変化」を自動で識別します。
* **色分け:** OIの大幅な増加または減少があった場合に、メインチャートのバーをカスタマイズ可能な色でハイライトします。
* **Debug Table (Optional):** When enabled, a debug table appears on the chart, showing raw OI data, quantity-based OI, and USD-converted OI for each exchange and pair in real-time, which helps in verifying the data.
* **デバッグテーブル (オプション):** 有効にすると、各取引所・ペアごとの生OIデータ、数量ベースのOI、USD換算OIをリアルタイムで表示するデバッグテーブルがチャート上に表示され、データの確認に役立ちます。

### How to Use

This indicator helps you understand the overall trend of open positions for a specific asset across the market. An increase in OI generally indicates an influx of capital and growing market interest, while a decrease suggests the opposite. By combining price movements with OI changes, you can gain deeper insights into bullish/bearish signals and the potential for trend continuation or reversal.

このインジケーターは、特定の資産に対する市場全体の未決済ポジションの動向を把握するのに役立ちます。OIの増加は通常、市場への資金流入と関心の高まりを示し、OIの減少はその逆を示唆します。価格変動とOIの変化を組み合わせることで、市場の強気・弱気の兆候や、トレンドの継続・反転の可能性をより深く分析することが可能です。

### Settings

* **OI Candle Settings:** Configure the colors for the up and down OI candles.
* **OIローソク足設定:** OIローソク足の陽線と陰線の色を設定します。
* **Asset & Exchange Settings:**
* **Asset Source:** Choose "Chart Symbol" to link to the current chart's symbol, or "Custom" to specify the asset in "Base Asset (Custom)".
* **Slot 1-10:** Enable/disable each exchange slot and set the exchange name and comma-separated trading pairs you wish to aggregate.
* **資産と取引所の設定:**
* **資産ソース:** 「Chart Symbol」を選択すると現在のチャートのシンボルに連動し、「Custom」を選択すると「Base Asset (Custom)」で指定した資産のOIを集計します。
* **スロット 1-10:** 各スロットで取引所を有効/無効にし、取引所名と、集計したい取引ペア(カンマ区切り)を設定します。
* **Bar Coloring on OI Change:**
* **Enable Bar Coloring:** Toggles whether the main chart's bars change color based on significant OI changes.
* **Threshold Calculation Period / Multiplier:** Sets the period and multiplier for dynamic threshold calculation.
* **OI Increase Color / OI Decrease Color:** Sets the colors applied to the main chart's bars for large OI increases/decreases.
* **OI変化に基づくバーカラーリング:**
* **バーカラーリングを有効にする:** OIの大きな変化に基づいてメインチャートのバーの色を変更するかどうかを切り替えます。
* **閾値計算期間 / 乗数:** 動的な閾値計算に使用する期間と乗数を設定します。
* **OI増加時の色 / OI減少時の色:** OIの大きな増加/減少があった場合にメインチャートのバーに適用される色を設定します。
* **Debug Table Settings:**
* **Show Debug Table:** Toggles the display of the debug table and sets its position.
* **Font Size / BG Color:** Configures the font size and background color for the debug table.
* **デバッグテーブル設定:**
* **デバッグテーブルを表示:** デバッグテーブルの表示/非表示を切り替え、表示位置を設定します。
* **フォントサイズ / 背景色:** デバッグテーブルのフォントサイズと背景色を設定します。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。