OPEN-SOURCE SCRIPT
VWAP (5 min)

VWAP (5 min) is a session-based market structure indicator for futures/equities traders. It automatically plots the key price levels that ICT and institutional traders reference daily:
Session Levels
RTH (Regular Trading Hours) High, Low, and Open — updated live during the 9:30–4:00 PM session
Overnight (ON) High and Low — covers the 5:00 PM–9:30 AM globex session, with a gray background shading during those hours
Initial Balance (IB) High and Low — the first 60 minutes of RTH (9:30–10:30 AM), drawn as a two-tone box
Prior Day Levels
Yesterday's High (YH) and Yesterday's Low (YL) — carried forward from the prior RTH session
VWAP
A 5-minute timeframe VWAP that can be displayed on a 1-minute chart, colored green when trending up and red when trending down
Includes an adjustable Lookahead toggle in the VWAP Settings group — when off (default), VWAP only updates on confirmed 5-min bar closes, which is safe for backtesting and avoids repainting; when on, VWAP updates in real time as the current 5-min bar develops, which is useful for live trading but will repaint on historical bars
Labels
All levels are labeled dynamically at the right edge of the chart and scale their offset based on how many bars are visible
Session Levels
RTH (Regular Trading Hours) High, Low, and Open — updated live during the 9:30–4:00 PM session
Overnight (ON) High and Low — covers the 5:00 PM–9:30 AM globex session, with a gray background shading during those hours
Initial Balance (IB) High and Low — the first 60 minutes of RTH (9:30–10:30 AM), drawn as a two-tone box
Prior Day Levels
Yesterday's High (YH) and Yesterday's Low (YL) — carried forward from the prior RTH session
VWAP
A 5-minute timeframe VWAP that can be displayed on a 1-minute chart, colored green when trending up and red when trending down
Includes an adjustable Lookahead toggle in the VWAP Settings group — when off (default), VWAP only updates on confirmed 5-min bar closes, which is safe for backtesting and avoids repainting; when on, VWAP updates in real time as the current 5-min bar develops, which is useful for live trading but will repaint on historical bars
Labels
All levels are labeled dynamically at the right edge of the chart and scale their offset based on how many bars are visible
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.