OPEN-SOURCE SCRIPT
CVD v2 (Cumulative Volume Delta) + Divergences

🇬🇧 ENGLISH
EGU • CVD v2 (Cumulative Volume Delta + Divergences)
The CVD (Cumulative Volume Delta) is an advanced volume indicator that measures in real time the battle between buyers and sellers, bar by bar, by accumulating the volume delta over a defined period.
Unlike classic momentum indicators such as RSI which only analyze price, the CVD analyzes who is truly pushing the market — buyers or sellers — by weighting volume according to the close position within each candle.
Features :
Bar-by-bar delta histogram (instant buying/selling pressure)
Cumulative CVD line with dynamic color based on trend direction
Adjustable CVD EMA to smooth the signal
Automatic detection of bullish and bearish divergences with line drawing
Built-in alerts on divergences and zero-line crossovers
Configurable reset : Never / Weekly / Monthly
Real-time information table (CVD state, trend, current bar delta)
Background coloring based on positive/negative CVD zone
How to use it :
Use CVD divergences in confluence with your Supply & Demand zones to confirm momentum exhaustion before entering a trade
Combine with the RSI : a divergence on both indicators simultaneously is a very strong signal
The zero-line crossover signals a shift in dominance between buyers and sellers
Choose your reset according to your trading style : Weekly for short swing trades (3–14 days), Monthly for longer positions
Recommended settings :
Short swing trading (few days) → Weekly reset, EMA 21
Medium swing trading (2–4 weeks) → Monthly reset, EMA 21
Script created by EGU
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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.