OPEN-SOURCE SCRIPT
Updated StonkGame Major Market Open/Close

Plots vertical lines for Tokyo, London, and New York session opens and closes — auto-adjusted to your chart's timezone.
Open lines = lighter, dashed style.
Close lines = solid, full-color style.
Helps identify key liquidity windows, session-driven volatility, and clean market structure — without chart clutter.
Fully customizable colors and line styles for a professional, minimal look.
Open lines = lighter, dashed style.
Close lines = solid, full-color style.
Helps identify key liquidity windows, session-driven volatility, and clean market structure — without chart clutter.
Fully customizable colors and line styles for a professional, minimal look.
Release Notes
🕒 StonkGame Major Market SessionsThis script plots vertical lines for the open and close of Tokyo, London, and New York trading sessions, adjusted to your selected timezone.
✅ Fully customizable:
• Choose which sessions to display
• Set your timezone (e.g., New York, London, UTC, Tokyo)
• Customize line colors and styles
• Includes alert options for NY Open/Close
📌 Instructions:
Add to chart
Open settings ⚙️
Select your timezone
Toggle sessions and customize appearance
Ideal for intraday traders who rely on session-based volatility and flow timing.
Built with clean Pine Script v6 and best practices.
Release Notes
Cleaned up the code and removed the alert functions since they weren’t really needed. Rewrote the time match logic to be more reliable across timeframes and cleaned up some helper functions to make the whole thing more efficient and easier to read. Also updated the chart screenshot to actually show what the script is supposed to look like — just the session lines, nothing else cluttering it.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.