OPEN-SOURCE SCRIPT
Updated

StonkGame Major Market Open/Close

523
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.
Release Notes
🕒 StonkGame Major Market Sessions
This 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.

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.