OPEN-SOURCE SCRIPT

CVD & Open Interest Dashboard

164
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.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.