OPEN-SOURCE SCRIPT
Updated Rolling VWAP + SMA

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.
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
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.