OPEN-SOURCE SCRIPT
X OR AVWAP

X OR AVWAP is a multi-layered market mapping tool designed to combine Opening Range analysis, Anchored VWAP (AVWAP) positioning, and SMA markers into a unified visual framework.
Opening Range (OR) Mapping
The indicator supports two independent Opening Ranges, allowing traders to define both a primary range and a micro range for finer analysis. This is particularly effective when viewing lower timeframes, where a smaller OR inside the larger OR reveals intraday microstructure.
OR #1 and OR #2 each have configurable session times, colors, and optional midpoint lines.
Historical OR boxes can be shown or hidden, with the ability to extend levels forward in time.
Optional Fibonacci-based expansion levels (0.5x, 1x, 1.5x, 2x, 3x OR) are available for projecting breakout targets and retracement zones.
Traders can toggle high/low lines, midpoints, and labels independently for cleaner chart presentation.
Anchored VWAP (AVWAP) Layers
To track institutional capital flow and session bias, the indicator offers three separate AVWAP anchors, each independently controlled:
Can be anchored to custom events, sessions, or manual reference points.
Enables granular capital flow mapping down to 4-hour increments, helping traders align intraday trades with broader directional bias.
Each AVWAP can be toggled on/off to avoid clutter and isolate the most relevant flow line for the current setup.
SMA Markers
For additional context, simple moving average markers can be displayed alongside OR and AVWAP structure, helping gauge trend direction and mean-reversion potential.
Use Case
This tool is built for traders who want to combine structure, flow, and trend in a single view. On lower timeframes, the dual OR feature allows for a “range-within-a-range” perspective, revealing short-term liquidity pockets inside the day’s primary auction boundaries. The multi-anchor AVWAPs track how price interacts with session-based weighted averages, highlighting points where institutional bias may shift. When combined with SMA markers, the trader gains a comprehensive map for scalping, intraday swing trading, and capital flow tracking.
Opening Range (OR) Mapping
The indicator supports two independent Opening Ranges, allowing traders to define both a primary range and a micro range for finer analysis. This is particularly effective when viewing lower timeframes, where a smaller OR inside the larger OR reveals intraday microstructure.
OR #1 and OR #2 each have configurable session times, colors, and optional midpoint lines.
Historical OR boxes can be shown or hidden, with the ability to extend levels forward in time.
Optional Fibonacci-based expansion levels (0.5x, 1x, 1.5x, 2x, 3x OR) are available for projecting breakout targets and retracement zones.
Traders can toggle high/low lines, midpoints, and labels independently for cleaner chart presentation.
Anchored VWAP (AVWAP) Layers
To track institutional capital flow and session bias, the indicator offers three separate AVWAP anchors, each independently controlled:
Can be anchored to custom events, sessions, or manual reference points.
Enables granular capital flow mapping down to 4-hour increments, helping traders align intraday trades with broader directional bias.
Each AVWAP can be toggled on/off to avoid clutter and isolate the most relevant flow line for the current setup.
SMA Markers
For additional context, simple moving average markers can be displayed alongside OR and AVWAP structure, helping gauge trend direction and mean-reversion potential.
Use Case
This tool is built for traders who want to combine structure, flow, and trend in a single view. On lower timeframes, the dual OR feature allows for a “range-within-a-range” perspective, revealing short-term liquidity pockets inside the day’s primary auction boundaries. The multi-anchor AVWAPs track how price interacts with session-based weighted averages, highlighting points where institutional bias may shift. When combined with SMA markers, the trader gains a comprehensive map for scalping, intraday swing trading, and capital flow tracking.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.