OPEN-SOURCE SCRIPT

CVD Divergence + Volume Marker

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

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。