OPEN-SOURCE SCRIPT
VWAP + RSI Confluence

This indicator merges VWAP and RSI into one clean visual system by coloring candles based on their agreement.
Green candles → Bullish confluence: Price is above VWAP and RSI is above the midline (default 50).
Red candles → Bearish confluence: Price is below VWAP and RSI is below the midline.
White candles (Hold) → Conflict between VWAP and RSI. The market is undecided — best to stay out and avoid choppy, low-quality setups.
The white “Hold” candles act as a powerful filter that helps you avoid trading when the two indicators disagree.
How to Use
Trade in the direction of the colored candles (green = long bias, red = short bias).
Avoid trading during white “Hold” candles.
Best used at key support/resistance levels or in combination with your existing price action or structure.
Works on all timeframes and instruments.
Important Setup Step (Required for Reliable Colors)
For the custom candle colors to display correctly even when the indicator is not selected, you must do the following once:
Add the indicator to your chart.
Right-click anywhere on the chart.
Select Object Tree.
Right-click on VWAP + RSI Confluence.
Go to Visual Order → Bring to front.
After this step, the colors will remain stable. It is recommended to save your chart as a template afterward so you don’t have to repeat this process.
Settings
VWAP Anchor: Choose between Day, Week, Month, or Year (resets the VWAP calculation accordingly).
RSI Length: Default is 21 (adjustable).
RSI Midline: Default is 50.0 (the threshold for bullish/bearish agreement).
Colors: Fully customizable colors for Bullish candles, Bearish candles, Hold candles, and their wicks.
Recommended Use
This indicator is especially useful for day trading and swing trading when you want a clear visual filter that reduces conflicting signals between momentum (RSI) and institutional average price (VWAP).
Green candles → Bullish confluence: Price is above VWAP and RSI is above the midline (default 50).
Red candles → Bearish confluence: Price is below VWAP and RSI is below the midline.
White candles (Hold) → Conflict between VWAP and RSI. The market is undecided — best to stay out and avoid choppy, low-quality setups.
The white “Hold” candles act as a powerful filter that helps you avoid trading when the two indicators disagree.
How to Use
Trade in the direction of the colored candles (green = long bias, red = short bias).
Avoid trading during white “Hold” candles.
Best used at key support/resistance levels or in combination with your existing price action or structure.
Works on all timeframes and instruments.
Important Setup Step (Required for Reliable Colors)
For the custom candle colors to display correctly even when the indicator is not selected, you must do the following once:
Add the indicator to your chart.
Right-click anywhere on the chart.
Select Object Tree.
Right-click on VWAP + RSI Confluence.
Go to Visual Order → Bring to front.
After this step, the colors will remain stable. It is recommended to save your chart as a template afterward so you don’t have to repeat this process.
Settings
VWAP Anchor: Choose between Day, Week, Month, or Year (resets the VWAP calculation accordingly).
RSI Length: Default is 21 (adjustable).
RSI Midline: Default is 50.0 (the threshold for bullish/bearish agreement).
Colors: Fully customizable colors for Bullish candles, Bearish candles, Hold candles, and their wicks.
Recommended Use
This indicator is especially useful for day trading and swing trading when you want a clear visual filter that reduces conflicting signals between momentum (RSI) and institutional average price (VWAP).
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.