OPEN-SOURCE SCRIPT
ARVELOV Volume Squares: Current + Previous Candles

This indicator is a volume visualization tool that displays the most recent three candle volumes in a compact table on the chart. Instead of looking at the volume bars in the bottom pane, you get the values right on the price chart in a colored, easy-to-read format.
Here’s how it works:
📊 What It Shows
Current Candle Volume (latest bar)
Previous Candle Volume (1 bar ago)
Previous-Previous Candle Volume (2 bars ago)
Each of these is displayed as a row in a floating table on the chart (top-right corner).
🎨 Color Coding
Default Color (red) → Current bar if volume is below threshold.
Prev Color (gray) → Previous bars if volume is below threshold.
Hit Color (green) → Any bar where volume is greater than or equal to the chosen threshold.
This makes it instantly clear if the current or recent candles had unusually high volume.
⚙️ Settings
Current Candle Background Color → customize the default color.
Hit Color → choose how a "high volume" candle background looks.
Previous Candle Background Color → customize previous candles.
Text Color → control how the volume numbers are displayed.
Volume Threshold (editable) → default is 450, but you can set any number from the indicator menu.
✅ Use Case
This indicator is useful when you want to:
Quickly spot candles with significant volume spikes.
Compare the last few bars to see if volume is rising or falling.
Avoid having to read volume bars from the lower pane (especially helpful on smaller screens).
Here’s how it works:
📊 What It Shows
Current Candle Volume (latest bar)
Previous Candle Volume (1 bar ago)
Previous-Previous Candle Volume (2 bars ago)
Each of these is displayed as a row in a floating table on the chart (top-right corner).
🎨 Color Coding
Default Color (red) → Current bar if volume is below threshold.
Prev Color (gray) → Previous bars if volume is below threshold.
Hit Color (green) → Any bar where volume is greater than or equal to the chosen threshold.
This makes it instantly clear if the current or recent candles had unusually high volume.
⚙️ Settings
Current Candle Background Color → customize the default color.
Hit Color → choose how a "high volume" candle background looks.
Previous Candle Background Color → customize previous candles.
Text Color → control how the volume numbers are displayed.
Volume Threshold (editable) → default is 450, but you can set any number from the indicator menu.
✅ Use Case
This indicator is useful when you want to:
Quickly spot candles with significant volume spikes.
Compare the last few bars to see if volume is rising or falling.
Avoid having to read volume bars from the lower pane (especially helpful on smaller screens).
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.