OPEN-SOURCE SCRIPT
Aggiornato All in One ICT

## NY Time Open Levels + NWOG + NDOG + RTH ORG + Killzones
A multi-concept ICT/SMT-style toolkit built around New York time, combining daily/weekly opening gaps, regular-trading-hours opening range gaps, and the major trading session killzones — all in one indicator.
**Features:**
**📍 Intraday Open Levels**
Dotted horizontal lines marking the open price at key times each day: 00:00, 02:00, 08:30, 09:30, 10:00, and 18:00 (New York time). Each fully toggleable.
**🟧 NWOG — New Week Opening Gap**
Marks the gap between Friday's ~16:59 close and the market's next 18:00 reopen (Sunday or Monday). Drawn as a shaded box with a midline.
**🟦 NDOG — New Day Opening Gap**
Marks the gap between each trading day's ~16:59 close and that same day's 18:00 reopen (the daily futures/forex maintenance-break gap) — every day except Friday, which feeds the NWOG instead.
**🔷 EHPDA**
The 50% midpoint between the facing edges of consecutive NWOG boxes, plotted as a dashed aqua line — useful for tracking a running "fair value" reference between weekly gaps.
**🎨 RTH ORG — Regular Trading Hours Opening Range Gap**
The gap between the prior day's 16:14 close and the next 09:30 RTH open. Drawn as two lines (upper/lower) with no box, color-coded by the originating weekday (Fri = red, Mon = lime, Tue = aqua, Wed = fuchsia, Thu = orange) so you can see at a glance which day's gap you're looking at. Weekend closes are excluded, and only the most recent trading week's worth is kept on the chart.
**⏱️ Killzones**
The core ICT session windows, each drawn as a simple top/bottom line bracket around the session's high and low (no box):
- Asian: 20:00 – 00:00
- London: 02:00 – 05:00
- New York AM: 08:30 – 11:30
- Lunch: 11:30 – 13:30
- New York PM: 13:30 – 16:00
Lines build live as each session develops and freeze in place once it ends — they don't stretch forward with price.
**⚙️ Settings**
All timezone-based logic runs on America/New_York time by default, with an optional manual UTC offset override. Every gap type and killzone has its own show/hide toggle and a "how many to keep" control so your chart doesn't get cluttered with old history.
*This indicator is for informational and educational purposes only and does not constitute financial advice. Past gap/session behavior does not guarantee future results.*
Note di rilascio
# NY Time Open Levels + NWOG + NDOG + EHPDA + RTH ORG**A multi-concept ICT/SMC toolkit combining session open levels, opening gaps, and killzones — all anchored to New York time.**
This indicator brings together several concepts commonly used in ICT (Inner Circle Trader) and Smart Money Concepts trading into a single, clean overlay. It automatically detects key New York session times and draws the levels, gaps, and zones traders use to frame daily and weekly price behavior.
## Features
**🕐 NY Session Open Levels**
Automatically marks the open price at key intraday times: 00:00, 02:00, 08:30, 09:30, 10:00, and 18:00 (New York time). Each level is plotted as a dotted line that extends through the session, resetting daily. Any combination of levels can be toggled on or off.
**📦 NWOG — New Week Opening Gap**
Plots the gap between Friday's ~16:59 close and the market's next opening (Sunday/Monday 18:00), shown as a shaded box with a midline. Keeps a configurable number of historical NWOGs on the chart.
**📦 NDOG — New Day Opening Gap**
Same concept as NWOG but for daily (non-Friday) opens — the gap between each day's ~16:59 close and that same day's 18:00 reopen.
**📐 EHPDA — Equilibrium Half Point Draw Around**
Plots the 50% midpoint between the facing edges of two consecutive NWOGs, a level often used as a magnet/reference zone between weekly opening gaps.
**📊 RTH ORG — Regular Trading Hours Opening Range Gap**
Tracks the gap between the prior session's 16:14 close and the next Regular Trading Hours open at 09:30. Draws two horizontal lines (upper and lower boundary of the gap), each correctly originating from its own source candle — the close-based level starts at the 4:14 PM candle, and the open-based level starts at the 9:30 AM candle. Lines are color-coded by the originating weekday, making it easy to visually track which session each gap belongs to. Handles weekends/holidays automatically, so a Friday close correctly pairs with the following Monday's open.
**🎯 ICT Killzones**
Highlights the high/low range of five major sessions as they develop in real time, then freezes once the session ends:
- Asian (20:00–00:00)
- London (02:00–05:00)
- New York AM (08:30–11:30)
- Lunch (11:30–13:30)
- New York PM (13:30–16:00)
Each killzone keeps a configurable number of past sessions visible for historical reference.
## Timezone Handling
All calculations default to America/New_York time, ensuring accuracy regardless of your chart's exchange timezone or daylight saving time changes. A manual UTC offset override is also available for custom setups.
## How to Use It
This tool is designed for traders who use time-based and gap-based concepts (ICT, SMC, or similar frameworks) to identify areas of interest, liquidity, and draws on liquidity throughout the trading day and week. Combine the opening gaps (NWOG/NDOG/RTH ORG) with killzone ranges to build a narrative around where price is likely to react.
## Notes
- All levels, boxes, and lines are limited to a configurable history count to keep the chart clean and within Pine's line/label/box limits.
- Works on any symbol with sufficient historical data covering the relevant session times (works best on futures, forex, and other markets with extended/overnight sessions).
- This is not a signal generator — it is a context and structure tool meant to be used alongside your own analysis and risk management.
*This script is provided for educational and informational purposes only and does not constitute financial advice.*
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.