Weekly range: WH / WL (computed from the last 5 daily candles' highs/lows)
Opening Range (OR): OH / OL / OM (high/low/mid of the first hour of NYC open)
Initial Opening Range (IOH/IOL): high/low/mid of the first 30 minutes of NYC open
Secondary levels disabled by default (optional but can be displayed):
Morning Range (MR): MH / ML (high/low of the defined morning window)
Yesterday Afternoon Range: YAH / YAL (high/low of a defined afternoon window, carried into today)
London Range: LH / LL (high/low of the defined London window)
New York Midnight Open (NYMO): a single open price captured at a specific tiny window
New Week Opening Gap (NWOG High/Low): special "week gap" measurement using two small windows
Each of these can also optionally draw vertical lines at the session start/end for easier “time segmentation”.
The 2 most important concepts
1) Timezone matters (a lot)
All session windows are evaluated using:
i_tz (Timezone input) and
input.session() windows like "0930-1005".
If your chart is ES/SPX and you want “New York time,” set:
Timezone: America/New_York (recommended)
or keep a fixed offset like GMT-4 only if you know DST will not matter for your usage.
2) Timeframe limitations
Many session calculations require intraday data to build correctly. 15 minutes is the recommended timeframe.
If you load a daily/weekly chart, several levels may not display, because there are no intraday bars.
Settings overview (every input, what it does)
A) Session (Timezone)
Timezone (i_tz)
Controls how session time windows like “0930-1005” are interpreted.
It is important for this to be set correctly, otherwise the levels may not display accurately.
B) Time Configuration (session windows)
These define the time periods used by the script (all of these are customizable)
Market Hours (0930-1600)
Present in inputs and can be changed.
Open Range Time (0930-1030)
Builds Opening Range of first hour of NYC open: OH, OL, OM. The script tracks high/low during that window and then “locks” it once the window ends
Morning Range Time (0930-1200)
Builds Morning Range: MH, ML.
Yesterday Afternoon Range Time (1330-1600)
Builds Yesterday Afternoon Range: YAH, YAL.
These values get stored when a new day starts, then plotted.
London Range Time (0200-0500)
Builds London Range: LH, LL.
Initial Opening Range Time (0930-1000)
Builds Initial Opening Range of first 30 minutes of NYC open: OGH, OGL.
The script tracks high/low during that window and then “locks” it once the window ends
New York Midnight Opening Price (0000-0005)
Captures the open price inside this tiny window and plots NYMO.
Label Size
Global label size used by most labels (Tiny → Huge).
Abbreviation legend (what labels mean)
DL/DH: Daily Low / Daily High
YL/YH: Yesterday Low / Yesterday High
YC: Yesterday Close
YM: Yesterday Mid
WL/WH: Weekly Low / Weekly High (rolling 5 daily candles)
OL/OH/OM: Opening Low / Opening High / Opening Mid