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

ICT 00:00, 08:30, 09:30 & 13:30 Opens (NY) — Prior-Day History

96
ICT 00:00, 08:30, 09:30 & 13:30 Opens (NY)

This is a derivative of ALPHAICTRADER’s open-source script, republished under the MPL-2.0 with clear attribution and documented changes. It plots four New-York–anchored intraday reference levels—0000, 0830, 0930, 1330—as short, right-padded stubs with clean side labels. Use these time anchors (ICT-style midnight + key US windows) to frame bias, volatility pockets, and intraday trade locations.

What’s original in this version (changes)

Right-padded stubs instead of chart-wide rays — each level ends N bars past the latest candle (configurable).

Side labels at the line tip — text-only labels (0000, 0830, 0930, 1330) that sit at the right end of each stub and update every bar.

Optional prior-day history — show Today only or Today + Prior Day; older lines/labels auto-pruned.

Per-anchor controls — Display, Style, Color, Width, and Show Label for each time.

What it plots (and why)

0000 (NY Midnight): daily session anchor for bias/liquidity context.

0830 (NY): macro data window (CPI/NFP/claims) where volatility often concentrates.

0930 (NY): US cash equity market open; opening-drive structure/acceptance tests.

1330 (NY): early-afternoon anchor for continuation vs. fade.

How it works (under the hood)

Session detection: time("1", session, "America/New_York"); first bar flagged via not na(ts) and na(ts[1]).

Anchor price: open of that first bar per session/day.

Rendering: lines drawn with xloc=bar_index from start bar to bar_index + Right Pad; x2 updates every bar (no extend.right).

Labels: placed at line.get_x2(line) + Label Pad, soft color variant; updated per bar to stay on the tip.

History: arrays keep either today only or today + yesterday and delete anything older immediately.

How to use

Add to any intraday chart (futures/FX/indices). Anchors are always NY-time; TradingView handles DST.

Inputs

00:00 / 08:30 / 09:30 / 13:30 (NY): Display, Line Style, Color, Width, Show Label

Right Edge: Right Pad (bars) · Label Pad (bars)

History: Show Prior Day (History) — off = today only; on = today + yesterday

Suggested pads: Right Pad 2–5 bars; Label Pad 0–2.

These are context anchors, not signals. Combine with your execution model (market structure, liquidity, FVG/OBs, etc.).

Attribution & License (MPL-2.0)

Original work: “ICT NEW YORK MIDNIGHT OPEN AND 8.30 AM OPEN” by ALPHAICTRADER (MPL-2.0).

This derivative: modifications listed above; source published and kept under MPL-2.0 per license terms.

If you distribute a modified version of this Pine file, you must keep MPL-2.0, retain the copyright/licensing header, publish your modified source, and document your changes.

Notes: Pine v5. Minimalist (no day dividers). Educational tool; not financial advice.
Copyright: © ALPHAICTRADER 2022 · © Funk 2025
License: MPL-2.0
เอกสารเผยแพร่
What’s new (short)

Adds 13:30 (NY) & C.O anchors. Short right-padded stubs with side labels at the tip; per-level Display/Style/Color/Width. Optional prior-day history. Fixes orientation, label quotes, and 00:00 toggle. MPL attribution included.

Changelog (long)

v1.4.0 — 2025-09-10

New: 13:30 (NY) anchor with full controls (Display, Style, Color, Width, Label).

New: C.O (Current TF Open) — live anchor to the active bar’s open; short stub + “C.O” label at the tip (no quotes); updates on every tick and on timeframe changes.

New: Display toggle for 00:00 (now matches 08:30/09:30/13:30).

New: History toggle — Show Prior Day (History) (ON = today + yesterday; OFF = today only).

Improved: Lines draw as short right-padded stubs that move with the chart; labels are text-only at the right tip (no bubbles), subtle opacity.

Improved: Right Pad (bars) & Label Pad (bars) inputs for precise end-of-chart spacing.

Fix: Ensured horizontal orientation (bar-index coordinates + dynamic x2), no accidental price-axis lines.

Fix: Removed accidental quotes around labels; uses 0000 / 0830 / 0930 / 1330 / C.O cleanly.

Fix: 00:00/08:30/09:30 session triggers hardened (first bar detection); timestamp literal cleanup.

Compliance: Added explicit MPL-2.0 header and attribution to the original open-source work; description updated to explain what/why/how and usage per House Rules.

v1.3.0 — 2025-09-09

Switched to right-padded stubs (no extend.right) and side labels at tip.

Added option to turn off history (today-only mode).

Removed day dividers for a minimalist view.

v1.2.0 — 2025-09-08

Labels made text-only (no label boxes); subtle color; auto-follow right edge.

Added 0930 (NY) anchor with full styling controls; 0830 retained.

v1.1.0 — 2025-09-07

0000 (NY) anchor with style/color/width, and label “0000”.

Per-level inputs for color/line type; internal refactors.

v1.0.0 — 2025-09-06

Initial public release (NY midnight + data/open anchors).

Upgrade notes

If you see long rays, lower Right Pad (bars) (e.g., 2–5).

If labels bunch, bump Label Pad (bars) or vary styles/colors.

C.O has no history by design; it always tracks the current candle’s open.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน