OPEN-SOURCE SCRIPT
Adaptive High Volume Bars - Swing V2

is a volume activity indicator designed to highlight unusual trading participation directly on price candles while keeping the volume panel compact and easy to read.
The indicator classifies volume into four levels:
N — Normal
H — High
VH — Very High
EX — Exceptional
Bullish candles use a green-to-blue color scheme, while bearish candles use light gray for normal activity and an orange gradient for abnormal volume.
The lower panel uses fixed-height activity bars rather than a traditional volume histogram. This makes the importance of each event immediately visible without allowing raw volume spikes to distort the scale.
The indicator combines two statistical methods:
Absolute Volume measures how far the current volume is above its historical average using a Z-score based on the moving average and standard deviation of volume.
Volume Acceleration measures the sudden increase in volume compared with the previous candle.
The script automatically adapts its detection method and thresholds to four commonly used timeframes:
Weekly (1W)
Absolute volume detection with a 52-week lookback.
Daily (1D)
Absolute volume detection with a 200-bar lookback.
4 Hour (4H)
Hybrid detection combining absolute volume and volume acceleration.
1 Hour (1H)
Hybrid detection with stricter thresholds to reduce intraday noise.
In Hybrid mode, the indicator keeps the strongest signal produced by either absolute volume or volume acceleration.
The goal is not to measure price strength directly, but to identify periods when market participation becomes statistically unusual. These events can help provide additional context around breakouts, reversals, momentum expansion, capitulation and potential exhaustion moves.
The script also includes alert conditions for bullish and bearish High, Very High and Exceptional volume events.
This indicator is intended as a market analysis tool and should not be used as a standalone trading signal.
The indicator classifies volume into four levels:
N — Normal
H — High
VH — Very High
EX — Exceptional
Bullish candles use a green-to-blue color scheme, while bearish candles use light gray for normal activity and an orange gradient for abnormal volume.
The lower panel uses fixed-height activity bars rather than a traditional volume histogram. This makes the importance of each event immediately visible without allowing raw volume spikes to distort the scale.
The indicator combines two statistical methods:
Absolute Volume measures how far the current volume is above its historical average using a Z-score based on the moving average and standard deviation of volume.
Volume Acceleration measures the sudden increase in volume compared with the previous candle.
The script automatically adapts its detection method and thresholds to four commonly used timeframes:
Weekly (1W)
Absolute volume detection with a 52-week lookback.
Daily (1D)
Absolute volume detection with a 200-bar lookback.
4 Hour (4H)
Hybrid detection combining absolute volume and volume acceleration.
1 Hour (1H)
Hybrid detection with stricter thresholds to reduce intraday noise.
In Hybrid mode, the indicator keeps the strongest signal produced by either absolute volume or volume acceleration.
The goal is not to measure price strength directly, but to identify periods when market participation becomes statistically unusual. These events can help provide additional context around breakouts, reversals, momentum expansion, capitulation and potential exhaustion moves.
The script also includes alert conditions for bullish and bearish High, Very High and Exceptional volume events.
This indicator is intended as a market analysis tool and should not be used as a standalone trading signal.
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.