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
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.