OPEN-SOURCE SCRIPT
VolumeMA

VolumeMA
VolumeMA is a volume-based indicator designed to visualize market participation by combining trading volume with price direction.
Unlike traditional volume indicators that display only raw volume, VolumeMA assigns positive volume to rising price bars and negative volume to falling price bars. This helps traders identify whether buying or selling pressure is dominating the market.
The indicator smooths these values using a moving average, reducing short-term noise and making underlying market participation easier to observe.
Features
Directional Volume
Volume is assigned based on price movement:
* Rising price bar → Positive volume
* Falling price bar → Negative volume
This allows traders to quickly identify whether buyers or sellers are currently in control.
Volume Moving Average
The directional volume is smoothed using a Simple Moving Average (SMA), creating the Volume Moving Average histogram.
This helps highlight trends in market participation rather than focusing on individual volume spikes.
SMA Signal Line
An additional SMA is applied to the Volume Moving Average.
When the Volume Moving Average is above its SMA, market participation is considered relatively strong.
When it is below its SMA, market participation is considered relatively weak.
Zero Line
The zero line separates bullish and bearish volume pressure:
* Above zero → Buying pressure dominates
* Below zero → Selling pressure dominates
Color Visualization
Histogram colors automatically change depending on whether the Volume Moving Average is above or below its SMA, making shifts in momentum easier to identify.
Usage
VolumeMA is designed as a complementary tool for market analysis. It can be used alongside price action, trend analysis, and other indicators to better understand market participation and momentum.
As with any indicator, it should not be used in isolation and does not guarantee future performance.
VolumeMA is a volume-based indicator designed to visualize market participation by combining trading volume with price direction.
Unlike traditional volume indicators that display only raw volume, VolumeMA assigns positive volume to rising price bars and negative volume to falling price bars. This helps traders identify whether buying or selling pressure is dominating the market.
The indicator smooths these values using a moving average, reducing short-term noise and making underlying market participation easier to observe.
Features
Directional Volume
Volume is assigned based on price movement:
* Rising price bar → Positive volume
* Falling price bar → Negative volume
This allows traders to quickly identify whether buyers or sellers are currently in control.
Volume Moving Average
The directional volume is smoothed using a Simple Moving Average (SMA), creating the Volume Moving Average histogram.
This helps highlight trends in market participation rather than focusing on individual volume spikes.
SMA Signal Line
An additional SMA is applied to the Volume Moving Average.
When the Volume Moving Average is above its SMA, market participation is considered relatively strong.
When it is below its SMA, market participation is considered relatively weak.
Zero Line
The zero line separates bullish and bearish volume pressure:
* Above zero → Buying pressure dominates
* Below zero → Selling pressure dominates
Color Visualization
Histogram colors automatically change depending on whether the Volume Moving Average is above or below its SMA, making shifts in momentum easier to identify.
Usage
VolumeMA is designed as a complementary tool for market analysis. It can be used alongside price action, trend analysis, and other indicators to better understand market participation and momentum.
As with any indicator, it should not be used in isolation and does not guarantee future performance.
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.