OPEN-SOURCE SCRIPT
Custom Session Boundaries with Timezone Support

This indicator draws two clean vertical lines on your chart — one marking the start of your selected trading session and one marking the end. No clutter, no extra lines between them. Just the two boundaries you care about.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.