OTE Time Matrix [Pascal ⧋]

“OTE Time Matrix [Pascal ⧋]” anchors each session’s range to the current session open, then projects OTE retracements and expansion zones. It’s session-aware, timezone-aware, and market-aware (stocks, futures, forex, crypto) with safeguards for RTH and futures quirks.
What it does
Detects up to four user-defined sessions (A–D) in a chosen timezone or the exchange timezone.
For each new session, pulls the previous session’s high/low/open, offsets them from the current session open, and draws:
Anchored HIGH/LOW levels
EQ (0.5) and custom OTE retracement lines
Optional projection zones (e.g., 1.20–1.50× range) above/below
Handles stocks RTH trimming (9:30–16:00 ET), shortened futures days, and the 18:00 futures extension bug.
Features
Sessions & Timezones
4 sessions (default: 18:00–00:00, 00:00–08:30, 08:30–11:00, 11:00–18:00).
Timezone selector (NY/Chicago/LA/London/…/UTC/Exchange).
“Show current only” or display N historical sessions with optional historical labels.
Anchored Range Levels
Prior session HIGH/LOW reapplied to current session open.
Optional Open anchor line with label (session start time).
Line styling: Solid/Dashed/Dotted; width control.
OTE Retracements
EQ (0.5) plus up to four custom levels (defaults: 0.618, 0.382, 0.236, 0.764).
Per-level labels with price tooltips; size control (Tiny/Small/Normal).
Projections
Shaded expansion boxes above/below using range multipliers (default 1.20 → 1.50).
Optional boundary projection lines with style/width controls.
Box transparency control.
Market Safeguards
Stocks: clamps drawings to RTH, skips zero-duration sessions.
Futures: holiday short days handled; 18:00 → 17:59 fix.
Forex/Crypto: continuous handling without special clamps.
Performance/b]
Cleans up old lines/labels/boxes; caps historical displays.
Separate stores per session; label visibility control for history.
Disclaimer
This tool is for chart visualization and education. It does not constitute financial advice or a guarantee of outcomes. Always validate levels and manage risk independently.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ pascalalgo โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้ที่ได้รับการอนุมัติจากผู้เขียนเท่านั้นที่สามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องร้องขอและได้รับอนุญาตก่อนจึงจะสามารถใช้งานได้ โดยปกติจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม ทำตามคำแนะนำของผู้เขียนด้านล่างหรือติดต่อ pascalalgo โดยตรง
TradingView ไม่แนะนำให้ชำระเงินหรือใช้สคริปต์ เว้นแต่ว่าคุณจะเชื่อถือผู้เขียนสคริปต์และเข้าใจวิธีการทำงานของมัน คุณยังอาจพบทางเลือกของโอเพนซอร์ส แบบฟรีในสคริปต์ชุมชนของเรา