INVITE-ONLY SCRIPT
已更新 Open/Close Volume

Open/Close Volume Indicator
The Open/Close Volume Indicator provides a breakdown of trading volume based on Open Interest (OI) changes. It helps identify whether the trading volume is driven by opening new positions (Open Volume) or closing existing positions (Close Volume).
Key Features:
Use Case:
This indicator is ideal for futures traders who want to analyze market sentiment and understand whether market activity is being driven by the initiation of new trades or the closing of existing ones.
How It Works:
The Open/Close Volume Indicator provides a breakdown of trading volume based on Open Interest (OI) changes. It helps identify whether the trading volume is driven by opening new positions (Open Volume) or closing existing positions (Close Volume).
Key Features:
- Visual Breakdown of Volume:
Green bars represent Open Volume (new positions being added).
Red bars represent Close Volume (existing positions being closed). - Dynamic Open Interest Data: Tracks changes in Open Interest to calculate the distribution of Open and Close Volumes.
Adapts automatically to the current chart's symbol or a custom user-specified symbol. - Error Handling: Displays an alert when Open Interest data is unavailable for the selected symbol.
- Zero-Line Reference:
- Includes a gray dotted line at 0 for easy reference between Open and Close Volumes.
- Includes a gray dotted line at 0 for easy reference between Open and Close Volumes.
Use Case:
This indicator is ideal for futures traders who want to analyze market sentiment and understand whether market activity is being driven by the initiation of new trades or the closing of existing ones.
How It Works:
- Open Interest Change: Positive OI change → Open Volume.
Negative OI change → Close Volume.
No OI change → All trading volume is considered Close Volume. - Data Representation:
- Open Volume is plotted above the zero line (positive values).
- Close Volume is plotted below the zero line (negative values).
- Open Volume is plotted above the zero line (positive values).
發行說明
📊 Open/Close Volume + DominanceAn advanced volume analysis tool utilizing Open Interest (OI) data to track market positioning.
🔍 Overview
This indicator provides a unique way to separate Open Volume and Close Volume, giving traders insight into whether the market is driven by new contract openings or position closings.
Additionally, it features a Dominance metric, visually representing whether more contracts are being opened or closed over time, helping traders gauge shifts in market behavior.
📌 Key Features:
- [] Tracks Open and Close Volume based on Open Interest movements.
[] Visualizes market participation trends with a unique Dominance metric.
[] Customizable color settings for Open Volume, Close Volume, and Dominance.
[] Works on all futures contracts where Open Interest data is available.
📊 How It Works (Conceptual Explanation)
- [] Open Interest Change is used to detect market positioning shifts.
[] Volume is categorized into Open Volume and Close Volume to help distinguish market intent. - Dominance measures the balance between opening and closing contracts and displays it in an easy-to-read visual format.
📌 What You See on the Chart:
- [] [color=green]Green bars:[/color] Represent Open Volume (contracts being opened).
[] [color=red]Red bars:[/color] Represent Close Volume (contracts being closed).
[] [color=blue]Blue dominance bars:[/color] More contracts opened than closed.
[] [color=orange]Orange dominance bars:[/color] More contracts closed than opened.
This methodology allows traders to analyze market participation without relying solely on price movement.
⚡ How to Use This Indicator
This indicator helps you analyze market positioning dynamics by tracking contract openings vs. closings based on Open Interest (OI) changes.
📌 Key Interpretations:
- [] [color=blue]🔵 Blue Dominance Bars[/color] → Indicate higher contract openings relative to closings.
[] [color=orange]🟠 Orange Dominance Bars[/color] → Indicate higher contract closings relative to openings. - Compare Open/Close Volume with price movement to identify potential market behavior shifts.
📊 Market Action & Open Interest Changes
The table below explains how different market actions impact Open Interest.
Pine Script®
Market Action Counterparty Limit Order Action OI Change
Market Buy (Open Long) Limit Close Long Open Long meets Close Long OI = 0
Market Buy (Open Long) Limit Open Short Open Long meets Open Short OI + 1
Market Buy (Close Short) Limit Close Long Close Short meets Close Long OI - 1
Market Buy (Close Short) Limit Open Short Close Short meets Open Short OI = 0
Market Sell (Open Short) Limit Open Long Open Short meets Open Long OI + 1
Market Sell (Open Short) Limit Close Short Open Short meets Close Short OI = 0
Market Sell (Close Long) Limit Open Long Close Long meets Open Long OI = 0
Market Sell (Close Long) Limit Close Short Close Long meets Close Short OI - 1
By analyzing Open/Close Volume and Dominance along with price movement, traders can better understand market positioning and potential liquidity shifts. 🚀
⚙️ Customization Options
- Users can adjust colors for:
Open Volume (default: Green)
Close Volume (default: Red)
Dominance (More Opened Contracts) (default: Blue)
Dominance (More Closed Contracts) (default: Orange) - By default, only Dominance is enabled (Open/Close Volume can be manually turned on).
🚀 Why This Indicator is Unique
- [] Provides exclusive insights into market positioning using Open Interest.
[] Offers a new way to analyze contract flows in futures markets.
[] Works seamlessly on Futures and Derivatives markets.
[] Fully customizable for different trading strategies.
📌 Important Notes
- [] This indicator is designed for Futures traders and relies on Open Interest data.
[] It does not work on spot markets (e.g., BTC/USD) since spot markets do not have Open Interest.
📈 Example Use Cases
- [] Detect institutional positioning changes by tracking Open Interest shifts.
[] Identify potential trend reversals when market positioning changes significantly. - Combine with price action or technical indicators for a complete trading strategy.
📢 Disclaimer
This script is for educational purposes only. It does not provide financial advice or guarantee future results. Use it alongside proper risk management and other trading strategies.
✅ Summary
📊 Open/Close Volume + Dominance is an innovative tool designed to help traders monitor contract openings and closings using Open Interest data. By analyzing these shifts in market positioning, traders can gain deeper insights into market behavior and liquidity flows.
🚀 Try it now & let us know your feedback! 🔥🔥🔥
發行說明
removed Open and Close volume, only dominance 僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫Angick。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Terms of Use:
"By requesting access to this script, you agree to use it for personal trading purposes only. Redistribution is prohibited."
Request:
"Send me a private message on TradingView with your username and reason for requesting access."
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
僅限邀請腳本
只有經作者授權的使用者才能訪問此腳本,且通常需付費。您可以將此腳本加入收藏,但需先向作者申請並獲得許可後才能使用 — 點擊此處了解更多。如需更多詳情,請依照作者說明或直接聯繫Angick。
除非您完全信任其作者並了解腳本的工作原理,否則TradingView不建議您付費或使用腳本。您也可以在我們的社群腳本中找到免費的開源替代方案。
作者的說明
Terms of Use:
"By requesting access to this script, you agree to use it for personal trading purposes only. Redistribution is prohibited."
Request:
"Send me a private message on TradingView with your username and reason for requesting access."
提醒:在請求訪問權限之前,請閱讀僅限邀請腳本指南。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。