OPEN-SOURCE SCRIPT
Order-Flow Proxy (VWAP Deviation Zones)

Order-Flow Proxy (VWAP Deviation Zones) helps traders visualize when market price moves unusually far away from its Volume-Weighted Average Price (VWAP) — a key fair-value level used by institutional participants.
When price stretches too far above or below VWAP, it often signals temporary imbalance between buying and selling pressure.
This tool highlights those moments using simple color zones and an optional statistical Z-Score filter for deeper precision.
Concept:
VWAP combines both price and traded volume to define where most transactions occurred.
Deviations from it — measured either by a fixed distance (1%) or by Z-Score — can reveal overvaluation or undervaluation zones used by professional traders for contrarian setups.
How to use:
Tip:
Best used as a visual overlay for detecting stretched markets and potential reversals.
When price stretches too far above or below VWAP, it often signals temporary imbalance between buying and selling pressure.
This tool highlights those moments using simple color zones and an optional statistical Z-Score filter for deeper precision.
In short: it’s a clean, minimal mean-reversion indicator showing when price is statistically “too far” from fair value.
- Red zone → Price extended above VWAP → possible buyer exhaustion or short setup.
- Green zone → Price extended below VWAP → possible seller exhaustion or long setup.
- VWAP line → Acts as a dynamic fair-value anchor.
Concept:
VWAP combines both price and traded volume to define where most transactions occurred.
Deviations from it — measured either by a fixed distance (1%) or by Z-Score — can reveal overvaluation or undervaluation zones used by professional traders for contrarian setups.
How to use:
- Apply the indicator to any intraday chart (1m–1h recommended).
- Watch for background color shifts — red or green.
- Optionally enable the Z-Score filter to focus only on statistically extreme deviations.
- Combine with volume spikes, liquidity sweeps, or your own order-flow tools for confirmation.
Tip:
Best used as a visual overlay for detecting stretched markets and potential reversals.
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.