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
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。