OPEN-SOURCE SCRIPT
Updated Daily MGI - OnlyFlow

MGI (Market Generated Information) plots key daily reference levels used by auction market and order flow traders. It draws Prior Day High, Low, Mid, and Close, Overnight High/Low, Opening Range, Initial Balance, RTH VWAP, and Value Area levels — all with price labels extending to the current bar.
Each line originates from the bar where the level was actually printed, giving you immediate visual context on where the market established its boundaries.
Features:
- Full Day (ETH) or RTH Only mode for prior day levels
- Configurable Opening Range and Initial Balance durations with ±50/100/150/200% extensions
- RTH VWAP and session midline
- Approximate prior day Value Area (VAH/VAL/POC)
- All levels togglable with customizable colors and label sizes
- Lines draw from their origin point to the current bar
Built as a lightweight alternative to paid order flow packages. Designed for futures (ES, NQ, etc.) but works on any instrument with defined RTH/ETH sessions. Adjust the RTH and ETH session times in settings to match your market.
Each line originates from the bar where the level was actually printed, giving you immediate visual context on where the market established its boundaries.
Features:
- Full Day (ETH) or RTH Only mode for prior day levels
- Configurable Opening Range and Initial Balance durations with ±50/100/150/200% extensions
- RTH VWAP and session midline
- Approximate prior day Value Area (VAH/VAL/POC)
- All levels togglable with customizable colors and label sizes
- Lines draw from their origin point to the current bar
Built as a lightweight alternative to paid order flow packages. Designed for futures (ES, NQ, etc.) but works on any instrument with defined RTH/ETH sessions. Adjust the RTH and ETH session times in settings to match your market.
Release Notes
.Release Notes
Updated Full Day to Work ProperlyRTH works Overnight
Individual labeling options
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.