OPEN-SOURCE SCRIPT
Cập nhật Dynamic Volume Histogram [DVH]

Dynamic Volume Histogram [DVH] is a clean and intuitive volume visualization tool
designed for swing traders who want deeper insight into market participation and
volume behavior at a glance.
Unlike the standard volume indicator, DVH color-codes each bar based on both
candle direction AND volume intensity — giving you an immediate visual read on
whether a move is backed by conviction or just noise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each volume bar is colored across 4 distinct conditions:
✅ Bullish candle + Normal volume → Green (regular buying pressure)
🔵 Bullish candle + 10M+ volume → Blue (high conviction buying)
🔴 Bearish candle + Normal volume → Red (regular selling pressure)
⚫ Bearish candle + 10M+ volume → Black (high conviction selling)
A moving average line is overlaid on the histogram to help you quickly identify
whether current volume is above or below its recent average — a key signal for
swing trade confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• 4 fully customizable bar colors — adjust to your chart theme
• Configurable high-volume threshold (default: 10 million)
• Smart labels on high-volume bars showing exact volume value
• Average volume line with adjustable period (default: 20)
• Clean and lightweight — no repainting, no complex math
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Blue bars on breakout candles → strong institutional buying,
potential swing long opportunity
• Black bars on breakdown candles → aggressive selling pressure,
watch for continuation or reversal confirmation
• Bars consistently below the average line → low participation,
avoid chasing moves
• Spike in volume (color shift) after consolidation → possible
trend initiation, ideal swing entry zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• High Volume Threshold — default 10,000,000 (adjustable)
• Average Volume Length — default 20 periods
• Show Average Line — toggle on/off
• Bar Colors — 4 independent color pickers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator works best on daily and weekly timeframes for swing trading
setups. Combine with support/resistance levels or price action signals for
highest accuracy.
No repainting. No nonsense. Just clean volume context.
designed for swing traders who want deeper insight into market participation and
volume behavior at a glance.
Unlike the standard volume indicator, DVH color-codes each bar based on both
candle direction AND volume intensity — giving you an immediate visual read on
whether a move is backed by conviction or just noise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each volume bar is colored across 4 distinct conditions:
✅ Bullish candle + Normal volume → Green (regular buying pressure)
🔵 Bullish candle + 10M+ volume → Blue (high conviction buying)
🔴 Bearish candle + Normal volume → Red (regular selling pressure)
⚫ Bearish candle + 10M+ volume → Black (high conviction selling)
A moving average line is overlaid on the histogram to help you quickly identify
whether current volume is above or below its recent average — a key signal for
swing trade confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• 4 fully customizable bar colors — adjust to your chart theme
• Configurable high-volume threshold (default: 10 million)
• Smart labels on high-volume bars showing exact volume value
• Average volume line with adjustable period (default: 20)
• Clean and lightweight — no repainting, no complex math
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Blue bars on breakout candles → strong institutional buying,
potential swing long opportunity
• Black bars on breakdown candles → aggressive selling pressure,
watch for continuation or reversal confirmation
• Bars consistently below the average line → low participation,
avoid chasing moves
• Spike in volume (color shift) after consolidation → possible
trend initiation, ideal swing entry zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• High Volume Threshold — default 10,000,000 (adjustable)
• Average Volume Length — default 20 periods
• Show Average Line — toggle on/off
• Bar Colors — 4 independent color pickers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator works best on daily and weekly timeframes for swing trading
setups. Combine with support/resistance levels or price action signals for
highest accuracy.
No repainting. No nonsense. Just clean volume context.
Phát hành các Ghi chú
Dynamic Volume Histogram [DVH] is a clean and intuitive volume visualization tool designed for swing traders who want deeper insight into market participation and
volume behavior at a glance.
Unlike the standard volume indicator, DVH color-codes each bar based on both
candle direction AND volume intensity — giving you an immediate visual read on
whether a move is backed by conviction or just noise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each volume bar is colored across 4 distinct conditions:
✅ Bullish candle + Normal volume → Green (regular buying pressure)
🔵 Bullish candle + 10M+ volume → Blue (high conviction buying)
🔴 Bearish candle + Normal volume → Red (regular selling pressure)
⚫ Bearish candle + 10M+ volume → Black (high conviction selling)
A moving average line is overlaid on the histogram to help you quickly identify
whether current volume is above or below its recent average — a key signal for
swing trade confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• 4 fully customizable bar colors — adjust to your chart theme
• Configurable high-volume threshold (default: 10 million)
• Smart labels on high-volume bars showing exact volume value
• Average volume line with adjustable period (default: 20)
• Clean and lightweight — no repainting, no complex math
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Blue bars on breakout candles → strong institutional buying,
potential swing long opportunity
• Black bars on breakdown candles → aggressive selling pressure,
watch for continuation or reversal confirmation
• Bars consistently below the average line → low participation,
avoid chasing moves
• Spike in volume (color shift) after consolidation → possible
trend initiation, ideal swing entry zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• High Volume Threshold — default 10,000,000 (adjustable)
• Average Volume Length — default 20 periods
• Show Average Line — toggle on/off
• Bar Colors — 4 independent color pickers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator works best on daily and weekly timeframes for swing trading
setups. Combine with support/resistance levels or price action signals for
highest accuracy.
No repainting. No nonsense. Just clean volume context.
Phát hành các Ghi chú
Dynamic Volume Histogram [DVH] is a clean and intuitive volume visualization tooldesigned for swing traders who want deeper insight into market participation and
volume behavior at a glance.
Unlike the standard volume indicator, DVH color-codes each bar based on both
candle direction AND volume intensity — giving you an immediate visual read on
whether a move is backed by conviction or just noise.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Each volume bar is colored across 4 distinct conditions:
✅ Bullish candle + Normal volume → Green (regular buying pressure)
🔵 Bullish candle + 10M+ volume → Blue (high conviction buying)
🔴 Bearish candle + Normal volume → Red (regular selling pressure)
⚫ Bearish candle + 10M+ volume → Black (high conviction selling)
A moving average line is overlaid on the histogram to help you quickly identify
whether current volume is above or below its recent average — a key signal for
swing trade confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• 4 fully customizable bar colors — adjust to your chart theme
• Configurable high-volume threshold (default: 10 million)
• Smart labels on high-volume bars showing exact volume value
• Average volume line with adjustable period (default: 20)
• Clean and lightweight — no repainting, no complex math
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Blue bars on breakout candles → strong institutional buying,
potential swing long opportunity
• Black bars on breakdown candles → aggressive selling pressure,
watch for continuation or reversal confirmation
• Bars consistently below the average line → low participation,
avoid chasing moves
• Spike in volume (color shift) after consolidation → possible
trend initiation, ideal swing entry zone
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• High Volume Threshold — default 10,000,000 (adjustable)
• Average Volume Length — default 20 periods
• Show Average Line — toggle on/off
• Bar Colors — 4 independent color pickers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator works best on daily and weekly timeframes for swing trading
setups. Combine with support/resistance levels or price action signals for
highest accuracy.
No repainting. No nonsense. Just clean volume context.
Phát hành các Ghi chú
What's new:Time Window inputs — set Start and End time using 24h hour + minute fields (e.g. 15:00 to 15:30 for 3:00–3:30 PM)
Bullish candle count and Bearish candle count for selected time window is added to the status line
Buy Call, Buy Put, Ignore signals are added to the status line as well
Everything is configurable,Since TradingView's status line can only show numbers, the signal appears as 0, 1, or 2 with the title 0=IGNORE | 1=BUY PUT | 2=BUY CALL so you always know what each value means at a glance. The number color also changes — red for BUY PUT, green for BUY CALL, gray for IGNORE.
You can adjust the Signal Volume Min/Max and Signal Candle Count Threshold in Settings without touching the code.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.