OPEN-SOURCE SCRIPT
AdvVolBars [Proozac]

A colored volume indicator that visually identifies bars with significant volume relative to their historical average, replicating the visual style of advanced volume panels used in intraday futures setups.
How it works
Each volume bar is colored based on two factors: candle direction (bullish/bearish) and whether volume exceeds a configurable threshold relative to a long-term average (Slow MA, 929 periods by default). This produces 4 visual states:
🟢 Green — high bullish volume
🔵 Dim Cyan — low bullish volume
🟠 Orange — high bearish volume
🔴 Dark Red — low bearish volume
A yellow overlay line (Fast MA, 5 periods) helps visualize recent volume trend without comparing bars individually.
Info panel
The last bar displays a summary including: average volume per candle (Candle Avg), relative volume of the last 5 bars (Last 5 rVol %), cumulative session volume (Total Vol), current bar volume (LastBar Vol), and volume prior to regular session open (PreMkt Vol).
Configurable parameters
Fast MA Length / Slow MA Length
High volume threshold (multiplier over average)
Candle average lookback length
Fully customizable colors
Alerts for bullish/bearish volume spikes (rVol ≥ 2x)
Recommended use
Designed for intraday timeframes (1m–15m) on indices and futures, as volume confirmation alongside EMA and VWAP-based setups. Useful for spotting volume climax, trend exhaustion, or breakout confirmation.
How it works
Each volume bar is colored based on two factors: candle direction (bullish/bearish) and whether volume exceeds a configurable threshold relative to a long-term average (Slow MA, 929 periods by default). This produces 4 visual states:
🟢 Green — high bullish volume
🔵 Dim Cyan — low bullish volume
🟠 Orange — high bearish volume
🔴 Dark Red — low bearish volume
A yellow overlay line (Fast MA, 5 periods) helps visualize recent volume trend without comparing bars individually.
Info panel
The last bar displays a summary including: average volume per candle (Candle Avg), relative volume of the last 5 bars (Last 5 rVol %), cumulative session volume (Total Vol), current bar volume (LastBar Vol), and volume prior to regular session open (PreMkt Vol).
Configurable parameters
Fast MA Length / Slow MA Length
High volume threshold (multiplier over average)
Candle average lookback length
Fully customizable colors
Alerts for bullish/bearish volume spikes (rVol ≥ 2x)
Recommended use
Designed for intraday timeframes (1m–15m) on indices and futures, as volume confirmation alongside EMA and VWAP-based setups. Useful for spotting volume climax, trend exhaustion, or breakout confirmation.
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.