OPEN-SOURCE SCRIPT
CVD & Open Interest Dashboard

The CVD & Open Interest Dashboard is a comprehensive order flow tool designed to reveal the true mechanics behind price movements. By combining Cumulative Volume Delta (CVD) and Open Interest (OI) into a single, clean sub-window, this indicator helps you objectively distinguish between true market participation (new positions) and forced positioning (liquidations).
Instead of cluttering your main chart, this dashboard provides all the essential market internal data you need at a glance.
🌟 Core Concepts & Features
1. Smart CVD Engine (Premium & Free Compatible):
High Precision Mode (Premium Users): Leverages TradingView's request.security_lower_tf to fetch raw tick-by-tick order flow from the 10-second timeframe. This provides an incredibly accurate view of aggressive buying and selling.
Normal Mode (Free Users): Automatically calculates the delta based on your current chart timeframe, ensuring all users can benefit from the tool without running into calculation limits.
2. Visual OI Anomalies (Spikes):
The script tracks the net change in Open Interest. When it detects an abnormal surge in OI (customizable via the Anomaly Multiplier), it cross-references it with the CVD to color-code the move:
Green Spikes (Area/Line): Indicates aggressive Long initiations or Short Liquidations.
Red Spikes (Area/Line): Indicates aggressive Short initiations or Long Liquidations.
3. Real-Time Market State (Top Left):
A real-time environmental panel that tracks the smoothed trends of both Price and Open Interest to give you the objective state of the market:
🟦 Long Build-up (Real Uptrend): Price is rising + OI is rising.
🟨 Short Cover (Weak Uptrend): Price is rising + OI is falling (Fuel is running out).
🟥 Short Build-up (Real Downtrend): Price is falling + OI is rising.
🟪 Long Liq (Weak Downtrend): Price is falling + OI is falling.
(Note: The indicator softly highlights the background of only the very last candle to keep you aware without muddying your past chart data).
4. Bull vs. Bear Power Gauge (Bottom Right):
A dynamic progress bar acting as a tug-of-war meter. It aggregates the volume of all significant aggressive actions over your chosen rolling period (e.g., the last 60 bars). This gives you an immediate percentage read on which side actually controls the current session.
⚙️ Setup & Customization
OI Ticker Flexibility: The default is set to BINANCE:BTCUSDT.P_OI (Binance Futures BTC). You can easily change this to your preferred exchange directly from the settings menu (e.g., simply search for Bybit or OKX OI in the symbol input).
Server Optimization: The script is optimized with max_bars_back = 1000 to prevent timeout errors and keep your chart running smoothly while processing intense lower-timeframe data.
Disclaimer: This script is designed for educational and objective environmental analysis purposes only. Always use it in conjunction with your own price action analysis and risk management rules.
Instead of cluttering your main chart, this dashboard provides all the essential market internal data you need at a glance.
🌟 Core Concepts & Features
1. Smart CVD Engine (Premium & Free Compatible):
High Precision Mode (Premium Users): Leverages TradingView's request.security_lower_tf to fetch raw tick-by-tick order flow from the 10-second timeframe. This provides an incredibly accurate view of aggressive buying and selling.
Normal Mode (Free Users): Automatically calculates the delta based on your current chart timeframe, ensuring all users can benefit from the tool without running into calculation limits.
2. Visual OI Anomalies (Spikes):
The script tracks the net change in Open Interest. When it detects an abnormal surge in OI (customizable via the Anomaly Multiplier), it cross-references it with the CVD to color-code the move:
Green Spikes (Area/Line): Indicates aggressive Long initiations or Short Liquidations.
Red Spikes (Area/Line): Indicates aggressive Short initiations or Long Liquidations.
3. Real-Time Market State (Top Left):
A real-time environmental panel that tracks the smoothed trends of both Price and Open Interest to give you the objective state of the market:
🟦 Long Build-up (Real Uptrend): Price is rising + OI is rising.
🟨 Short Cover (Weak Uptrend): Price is rising + OI is falling (Fuel is running out).
🟥 Short Build-up (Real Downtrend): Price is falling + OI is rising.
🟪 Long Liq (Weak Downtrend): Price is falling + OI is falling.
(Note: The indicator softly highlights the background of only the very last candle to keep you aware without muddying your past chart data).
4. Bull vs. Bear Power Gauge (Bottom Right):
A dynamic progress bar acting as a tug-of-war meter. It aggregates the volume of all significant aggressive actions over your chosen rolling period (e.g., the last 60 bars). This gives you an immediate percentage read on which side actually controls the current session.
⚙️ Setup & Customization
OI Ticker Flexibility: The default is set to BINANCE:BTCUSDT.P_OI (Binance Futures BTC). You can easily change this to your preferred exchange directly from the settings menu (e.g., simply search for Bybit or OKX OI in the symbol input).
Server Optimization: The script is optimized with max_bars_back = 1000 to prevent timeout errors and keep your chart running smoothly while processing intense lower-timeframe data.
Disclaimer: This script is designed for educational and objective environmental analysis purposes only. Always use it in conjunction with your own price action analysis and risk management rules.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.