OPEN-SOURCE SCRIPT
VWAP Filtered with Trend

This indicator combines the classic **VWAP** with a trend EMA filtered by the TDFI oscillator to confirm market direction.
- VWAP is displayed in white as the fair value reference.
- The trend EMA dynamically changes color according to market condition: green (uptrend), red (downtrend), orange (range).
- Candles highlight in blue when a bullish VWAP crossover is confirmed, and in fuchsia when a bearish crossover is confirmed.
- Includes adjustable thresholds and a cooldown filter to reduce noise and improve reliability.
This approach allows traders to identify not only the relative position to VWAP but also the strength and clarity of the trend, enhancing decision-making across all timeframes.
- VWAP is displayed in white as the fair value reference.
- The trend EMA dynamically changes color according to market condition: green (uptrend), red (downtrend), orange (range).
- Candles highlight in blue when a bullish VWAP crossover is confirmed, and in fuchsia when a bearish crossover is confirmed.
- Includes adjustable thresholds and a cooldown filter to reduce noise and improve reliability.
This approach allows traders to identify not only the relative position to VWAP but also the strength and clarity of the trend, enhancing decision-making across all timeframes.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.