OPEN-SOURCE SCRIPT
ที่อัปเดต: Time Anchors

Time Anchors
Plots up to 10 horizontal price anchors and up to 10 vertical time markers at user-configured times of day. Designed for futures traders who track key intraday times — session opens, economic releases, hour boundaries.
Horizontal lines capture the open price of the bar that opens at the specified time (e.g., 09:30) and extend that level forward, with the time label aligned to the right and vertically centered on the price.
Vertical lines mark a specific time of day, extending top-to-bottom across the chart, with a stacked time label pinned to the bottom of the visible viewport.
Daily reset. Both line types are wiped at the start of every futures trading day (18:00 NY) — the chart only ever shows today's anchors.
Per-line styling. Each of the 20 slots independently configures:
Time (HH:MM, 24-hour)
Line style — solid / dashed / dotted
Line color
Label color
Label size — tiny / small / normal / large / huge
Global settings
Timezone — default America/New_York
Show horizontal lines / Show vertical lines — master toggles
Label offset (bars) — gap between line endpoint and the right-side label
Horizontal line width / Vertical line width
Disable a slot by clearing its Time field.
Timeframe note. Detection requires the chart bar to open exactly at the configured minute. Works cleanly on 1m, 5m, 15m, 30m, and NY-aligned 1h. On non-aligned timeframes (e.g., a 4h chart not anchored to NY), times that fall between bar opens are silently skipped.
Credits. Uses the PineCoders VisibleChart library for viewport-aware label positioning.
Plots up to 10 horizontal price anchors and up to 10 vertical time markers at user-configured times of day. Designed for futures traders who track key intraday times — session opens, economic releases, hour boundaries.
Horizontal lines capture the open price of the bar that opens at the specified time (e.g., 09:30) and extend that level forward, with the time label aligned to the right and vertically centered on the price.
Vertical lines mark a specific time of day, extending top-to-bottom across the chart, with a stacked time label pinned to the bottom of the visible viewport.
Daily reset. Both line types are wiped at the start of every futures trading day (18:00 NY) — the chart only ever shows today's anchors.
Per-line styling. Each of the 20 slots independently configures:
Time (HH:MM, 24-hour)
Line style — solid / dashed / dotted
Line color
Label color
Label size — tiny / small / normal / large / huge
Global settings
Timezone — default America/New_York
Show horizontal lines / Show vertical lines — master toggles
Label offset (bars) — gap between line endpoint and the right-side label
Horizontal line width / Vertical line width
Disable a slot by clearing its Time field.
Timeframe note. Detection requires the chart bar to open exactly at the configured minute. Works cleanly on 1m, 5m, 15m, 30m, and NY-aligned 1h. On non-aligned timeframes (e.g., a 4h chart not anchored to NY), times that fall between bar opens are silently skipped.
Credits. Uses the PineCoders VisibleChart library for viewport-aware label positioning.
Release Note
Adding tooltips to labelsสคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน