OPEN-SOURCE SCRIPT
NY Session Candle (09:30-16:00 ET, Mon-Fri)

This indicator plots one synthetic candle per day that represents the official New York trading session (09:30–16:00 ET).
It aggregates the open, high, low, and close across the entire session and draws a single candle on your chart, making it easier to compare session ranges, direction, make studies and volatility.
Features:
-Aggregates intraday OHLC into one candle per session.
-Colors the candle green/red depending on close vs. open.
-Excludes weekends (Sat/Sun) automatically.
-Adjustable timezone and session window in settings.
Use case:
Helps traders visually analyze how each New York session behaved without changing chart timeframes. It is a visualization tool only and does not generate trading signals or predictions.
Notes:
The script does not repaint and does not use lookahead.
The candle of the session only shows once the FULL session is closed, it is not a dynamic candle.
It is for analysis purposes only, not a trading strategy.
Original code and idea; no third-party scripts reused
It aggregates the open, high, low, and close across the entire session and draws a single candle on your chart, making it easier to compare session ranges, direction, make studies and volatility.
Features:
-Aggregates intraday OHLC into one candle per session.
-Colors the candle green/red depending on close vs. open.
-Excludes weekends (Sat/Sun) automatically.
-Adjustable timezone and session window in settings.
Use case:
Helps traders visually analyze how each New York session behaved without changing chart timeframes. It is a visualization tool only and does not generate trading signals or predictions.
Notes:
The script does not repaint and does not use lookahead.
The candle of the session only shows once the FULL session is closed, it is not a dynamic candle.
It is for analysis purposes only, not a trading strategy.
Original code and idea; no third-party scripts reused
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้มันเป็นโอเพ่นซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันการทำงานของสคริปต์ได้ ขอแสดงความชื่นชมผู้เขียน! แม้ว่าคุณจะสามารถใช้งานได้ฟรี แต่อย่าลืมว่าการเผยแพร่โค้ดซ้ำนั้นจะต้องเป็นไปตามกฎระเบียบการใช้งานของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน