OPEN-SOURCE SCRIPT
Updated

Rolling VWAP + SMA

121
Rolling VWAP + SMA (Dynamic Trend Colour)

This indicator plots TradingView’s official time-based Rolling VWAP alongside a Simple Moving Average (SMA) on the price chart.

Both lines dynamically change colour based on their relationship:

🟢 Green when Rolling VWAP is above the SMA (bullish bias)

🔴 Red when Rolling VWAP is below the SMA (bearish bias)

⚪ Gray when they are equal

It provides a clean visual trend filter by combining volume-weighted price positioning (RVWAP) with a traditional moving average, helping traders quickly identify shifts in momentum and directional bias.
Release Notes
Rolling VWAP + SMA (Dynamic Trend Colour)

This indicator plots TradingView’s official time-based Rolling VWAP alongside a Simple Moving Average (SMA) on the price chart.

Both lines dynamically change colour based on their relationship:

🟢 Green when Rolling VWAP is above the SMA (bullish bias)

🔴 Red when Rolling VWAP is below the SMA (bearish bias)

⚪ Gray when they are equal

It provides a clean visual trend filter by combining volume-weighted price positioning (RVWAP) with a traditional moving average, helping traders quickly identify shifts in momentum and directional bias.

SarK

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.