OPEN-SOURCE SCRIPT
Mapa de Calor de Volume - Customizacao de Opacidade

Dynamic Volume Heatmap (Custom Opacity & Color)
Overview
The Dynamic Volume Heatmap is a professional visual analysis tool based on the principles of Volume Spread Analysis (VSA). It identifies institutional conviction by dynamically modulating the transparency and color of candlesticks based on relative volume compared to a customizable Simple Moving Average (SMA).
Instead of cluttering the chart with external oscillators, this script integrates volume intelligence directly into the price action, allowing traders to filter out market noise and focus exclusively on high-effort moves.
Key Features
Tiered Visual Hierarchy: Automatically categorizes bars into three distinct volume tiers: Baseline (Normal), Level 3 (High), and Level 4 (Extreme/Climax).
Full Opacity Control: Users can manually set the exact percentage of opacity (0-100%) for each tier to create a "ghosting" effect for low-volume bars and a "solid" effect for institutional spikes.
Custom Color Mapping: Supports full RGB/Hex color customization for both Bullish and Bearish candles, ensuring compatibility with any dark or light chart theme.
Seamless Integration: The script redraws bodies, wicks, and borders to maintain visual consistency across all transparency levels.
How it Works
The indicator compares the current bar's volume against a user-defined lookback period (default is 20 bars).
Standard Volume (<2x Avg): Displays with a low opacity (default 25%) to minimize visual distraction.
Level 3 (2x - 3x Avg): Increases opacity (default 50%) to signal emerging institutional interest.
Level 4 (>3x Avg): Displays as a 100% solid color, marking market climaxes, major breakouts, or potential exhaustion points.
Settings
Volume Settings: Adjust the SMA period used to calculate the relative volume.
Opacity Settings: Three independent sliders to define how "vibrant" each volume level appears.
Color Pickers: Dedicated inputs for Buy and Sell candle colors.
Overview
The Dynamic Volume Heatmap is a professional visual analysis tool based on the principles of Volume Spread Analysis (VSA). It identifies institutional conviction by dynamically modulating the transparency and color of candlesticks based on relative volume compared to a customizable Simple Moving Average (SMA).
Instead of cluttering the chart with external oscillators, this script integrates volume intelligence directly into the price action, allowing traders to filter out market noise and focus exclusively on high-effort moves.
Key Features
Tiered Visual Hierarchy: Automatically categorizes bars into three distinct volume tiers: Baseline (Normal), Level 3 (High), and Level 4 (Extreme/Climax).
Full Opacity Control: Users can manually set the exact percentage of opacity (0-100%) for each tier to create a "ghosting" effect for low-volume bars and a "solid" effect for institutional spikes.
Custom Color Mapping: Supports full RGB/Hex color customization for both Bullish and Bearish candles, ensuring compatibility with any dark or light chart theme.
Seamless Integration: The script redraws bodies, wicks, and borders to maintain visual consistency across all transparency levels.
How it Works
The indicator compares the current bar's volume against a user-defined lookback period (default is 20 bars).
Standard Volume (<2x Avg): Displays with a low opacity (default 25%) to minimize visual distraction.
Level 3 (2x - 3x Avg): Increases opacity (default 50%) to signal emerging institutional interest.
Level 4 (>3x Avg): Displays as a 100% solid color, marking market climaxes, major breakouts, or potential exhaustion points.
Settings
Volume Settings: Adjust the SMA period used to calculate the relative volume.
Opacity Settings: Three independent sliders to define how "vibrant" each volume level appears.
Color Pickers: Dedicated inputs for Buy and Sell candle colors.
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.