OPEN-SOURCE SCRIPT
VSA Highlight & Relative Strength of Volume [odnac]

This is a TradingView indicator combining VSA (Volume Spread Analysis) signals with a relative strength of volume visualization.
The indicator has two main parts:
1. VSA Volume Highlight:
2. Relative Strength of Volume:
Inputs include:
The indicator is designed to help traders visually identify key volume patterns and analyze buying and selling pressure in the market.
The indicator has two main parts:
1. VSA Volume Highlight:
- Detects common VSA signals, including Stopping Volume, Buying Climax, No Supply, No Demand, Test, Up-thrust, Shakeout, Demand Absorption, and Supply Absorption.
- Supports a trend filter using a user-selectable moving average type (SMA, EMA, WMA, or VWMA) and length.
- Calculates spread and volume moving averages to determine wide/narrow spreads and high/low volume relative to the averages.
- Determines relative bar positions (close near high, close near low, or mid-close) to categorize VSA signals.
- Optionally colors the background based on the detected VSA signal.
- Supports alerts for each VSA signal type.
2. Relative Strength of Volume:
- Splits total volume into buying and selling components based on the candle’s high, low, and close.
- Buying volume is calculated as volume times the proportion of the candle’s close above the low.
- Selling volume is calculated as volume times the proportion of the candle’s close below the high.
- Plots buying and selling volume as colored columns in the pane.
- Plots total volume in the status line colored according to the dominant side (buying or selling).
Inputs include:
- Toggle visibility for each VSA signal.
- Trend filter options (type and length).
- Volume and spread moving average lengths and multipliers for high/low volume and wide/narrow spread detection.
- Thresholds for close positions near high or low, and for identifying Buying Climax.
- Opacity for VSA volume highlights.
The indicator is designed to help traders visually identify key volume patterns and analyze buying and selling pressure in the market.
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.