OPEN-SOURCE SCRIPT

Volume Bulls vs Bears (Improved)

The "Volume Bulls vs Bears (Improved)" is a raw and powerful volume-based indicator for TradingView that visualizes market participation by separating volume into "bullish" and "bearish" components. It provides a clear and visually appealing stacked histogram alongside a moving average of total volume, helping traders identify trends in market participation.
Key Features

Bullish vs Bearish Volume Separation:
Bullish Volume: Represents the portion of volume contributed by buyers (when prices move up).
Bearish Volume: Represents the portion of volume contributed by sellers (when prices move down).
Volume is calculated based on price action within the range of the candle:
Bulls = ((Close - Low) / (High - Low)) * Total Volume
Bears = ((High - Close) / (High - Low)) * Total Volume

Stacked Histogram:
Bullish and bearish volumes are plotted as a stacked histogram.
Bull Color: Green (default).
Bear Color: Red (default).
This makes it easy to spot shifts in volume dominance between bulls and bears.

Volume SMA:
A Simple Moving Average (SMA) of total volume over a user-defined period helps smooth out fluctuations and shows overall volume trends.
Default period is 20 bars.
SMA Line: Yellow (default), adjustable in width.

User-Customizable Inputs:
Volume SMA Period: Adjust the lookback period for the moving average.
Bull/Bear Colors: Customizable histogram colors.
SMA Line Color and Width: Allows flexibility for better chart aesthetics.

Non-Overlapping Visuals:
The histogram avoids overlap, ensuring clarity by visually stacking bullish and bearish volumes.

How to Use the Indicator

Identify Bullish Volume Dominance:
If the green (bullish) volume bars are larger, it indicates stronger buying pressure within the candle range.

Identify Bearish Volume Dominance:
If the red (bearish) volume bars are larger, it signals stronger selling pressure.

Volume Trend:
Use the Volume SMA line to identify whether overall volume is increasing, decreasing, or staying stable. Rising volume typically strengthens trends, while declining volume can indicate weakness.

Use Cases

Spotting volume trends that confirm price movements (e.g., rising prices with rising bullish volume).
Recognizing potential reversals when bearish volume starts dominating previously bullish candles.
Identifying accumulation or distribution phases by analyzing volume behavior.

Conclusion

This "Volume Bulls vs Bears (Improved)" indicator provides traders with deeper insights into market participation. Its raw, no-frills design offers clear visuals to help assess bullish and bearish volume dynamics with an additional smoothing component through the SMA. It’s an essential tool for volume-focused traders looking to confirm trends or anticipate reversals.
Volume

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明