OPEN-SOURCE SCRIPT
Cumulative Volume Delta Candles

CVD Trend Candles
Visualize buying and selling pressure directly on your price candles. This indicator colors your candlesticks based on Cumulative Volume Delta (CVD), helping you see the underlying order flow driving price action.
WHAT IS CVD?
Cumulative Volume Delta estimates the difference between aggressive buying and selling volume on each bar. Positive delta indicates more aggressive buying; negative delta indicates more aggressive selling.
COLOR METHODS
▸ CVD Raw
The simplest view—candles are colored based purely on the raw delta of each bar.
• Cyan = Positive delta (net buying)
• Red = Negative delta (net selling)
▸ Rule-Based (Default)
Uses Heikin Ashi-smoothed CVD candles with intensity based on trend strength:
• Bright colors = Strong conviction (larger body + continuation)
• Medium colors = Moderate conviction (continuation)
• Dark colors = Weak/indecision (inside candles, hesitation)
▸ Size-Based
Colors intensity based on z-score of delta changes:
• Bright colors = Statistically significant delta (above strong threshold)
• Medium colors = Moderate delta (above moderate threshold)
• Dark colors = Normal/quiet delta
KEY FEATURES
◆ Kalman Filter Smoothing
Adaptive filtering reduces noise while staying responsive to genuine shifts in order flow. Adjust sensitivity with the Responsiveness and Kalman Gain settings.
◆ Inside Candle Rule
When enabled, prevents false signals from inside candles that show a direction change but lack conviction. The candle retains the previous trend's color (dimmed) instead of flipping.
◆ Session Anchoring
Optionally reset cumulative delta at a specific time (e.g., market open) for intraday analysis.
◆ Z-Score Thresholds
Fine-tune what constitutes "strong" vs "moderate" delta activity for Size-Based coloring.
HOW TO USE
1. Add the indicator to your chart
2. Set your chart type to "Line" or bring the indicator to front via Visual Order → Bring to Front
3. Select your preferred Color Method
4. Look for:
• Sequences of bright cyan candles → Strong buying pressure / bullish momentum
• Sequences of bright red candles → Strong selling pressure / bearish momentum
• Fading colors → Weakening conviction, potential reversal or consolidation
• Color flips → Shift in order flow dominance
Notes
• This indicator estimates delta from OHLCV data. For true order flow analysis, consider using tick or trade data from your broker/exchange.
• Works on all timeframes and instruments with volume data.
• Best used in conjunction with support/resistance levels, market structure, or other confluence factors.
Visualize buying and selling pressure directly on your price candles. This indicator colors your candlesticks based on Cumulative Volume Delta (CVD), helping you see the underlying order flow driving price action.
WHAT IS CVD?
Cumulative Volume Delta estimates the difference between aggressive buying and selling volume on each bar. Positive delta indicates more aggressive buying; negative delta indicates more aggressive selling.
COLOR METHODS
▸ CVD Raw
The simplest view—candles are colored based purely on the raw delta of each bar.
• Cyan = Positive delta (net buying)
• Red = Negative delta (net selling)
▸ Rule-Based (Default)
Uses Heikin Ashi-smoothed CVD candles with intensity based on trend strength:
• Bright colors = Strong conviction (larger body + continuation)
• Medium colors = Moderate conviction (continuation)
• Dark colors = Weak/indecision (inside candles, hesitation)
▸ Size-Based
Colors intensity based on z-score of delta changes:
• Bright colors = Statistically significant delta (above strong threshold)
• Medium colors = Moderate delta (above moderate threshold)
• Dark colors = Normal/quiet delta
KEY FEATURES
◆ Kalman Filter Smoothing
Adaptive filtering reduces noise while staying responsive to genuine shifts in order flow. Adjust sensitivity with the Responsiveness and Kalman Gain settings.
◆ Inside Candle Rule
When enabled, prevents false signals from inside candles that show a direction change but lack conviction. The candle retains the previous trend's color (dimmed) instead of flipping.
◆ Session Anchoring
Optionally reset cumulative delta at a specific time (e.g., market open) for intraday analysis.
◆ Z-Score Thresholds
Fine-tune what constitutes "strong" vs "moderate" delta activity for Size-Based coloring.
HOW TO USE
1. Add the indicator to your chart
2. Set your chart type to "Line" or bring the indicator to front via Visual Order → Bring to Front
3. Select your preferred Color Method
4. Look for:
• Sequences of bright cyan candles → Strong buying pressure / bullish momentum
• Sequences of bright red candles → Strong selling pressure / bearish momentum
• Fading colors → Weakening conviction, potential reversal or consolidation
• Color flips → Shift in order flow dominance
Notes
• This indicator estimates delta from OHLCV data. For true order flow analysis, consider using tick or trade data from your broker/exchange.
• Works on all timeframes and instruments with volume data.
• Best used in conjunction with support/resistance levels, market structure, or other confluence factors.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
discord.gg/REapC6SGtz
b3artrades@gmail.com
b3artrades@gmail.com
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.