OPEN-SOURCE SCRIPT

CVD Divergence + Volume Marker

217
Here is a Pine Script concept to mark candlestick chart candles when cumulative delta is divergent to price action and volume is above average. Cumulative delta divergence typically occurs when the price forms new highs/lows while cumulative delta forms lower highs/lows (or vice versa). The script should include a marker only when this divergence occurs alongside above-average volume, increasing signal strength and filtering out weak setups.​

Coding Concept
Calculate cumulative delta (approximation using price and volume if true bid/ask volume is unavailable, e.g., on spot).

Calculate moving average of volume.

Detect bullish divergence (price makes lower low, cumulative delta makes higher low) and bearish divergence (price makes higher high, cumulative delta makes lower high).

Mark candle with above-average volume when divergence is present.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.