OPEN-SOURCE SCRIPT
[Tiestobob] Previous Day and Overnight Highs/Lows

**[Tiestobob] Previous Day and Overnight Highs/Lows**
This indicator plots two of the most widely watched price levels used by intraday traders — the **Previous Day High/Low (PDH/PDL)** and the **Overnight High/Low (ONH/ONL)** — directly on your chart, automatically adjusted for New York time (EST/EDT).
---
**📌 What It Does**
- **Previous Day H/L** — Draws dashed white lines at the prior trading day's high and low (6:00 PM – 4:00 PM ET session)
- **Overnight H/L** — Draws dotted green/red lines marking the high and low of the overnight session (6:00 PM – 9:30 AM ET), a key range watched by futures and forex traders before the regular market open
- Optional **H/L labels** (PDH, PDL, ONH, ONL) appear at the close of each session
- Lines can be **extended to the right** so levels remain visible throughout the trading day
---
**⚙️ Settings**
| Option | Description |
|---|---|
| Select what to plot | Choose between Previous Day H/L or Overnight H/L |
| Show H/L Labels | Toggle end-of-session labels on/off |
| Line Width | Adjust line thickness (1–3) |
| Extend Lines Right | Keep levels visible after the session ends |
---
**📋 Notes**
- All sessions are calculated using the **America/New_York** timezone, automatically accounting for daylight saving time
- Best used on intraday timeframes (1m, 5m, 15m, 1H)
- Pairs well with volume profile, VWAP, and market structure tools
---
*These levels are commonly used as areas of interest for reversals, breakouts, and liquidity sweeps. Use them as context — not signals.*
This indicator plots two of the most widely watched price levels used by intraday traders — the **Previous Day High/Low (PDH/PDL)** and the **Overnight High/Low (ONH/ONL)** — directly on your chart, automatically adjusted for New York time (EST/EDT).
---
**📌 What It Does**
- **Previous Day H/L** — Draws dashed white lines at the prior trading day's high and low (6:00 PM – 4:00 PM ET session)
- **Overnight H/L** — Draws dotted green/red lines marking the high and low of the overnight session (6:00 PM – 9:30 AM ET), a key range watched by futures and forex traders before the regular market open
- Optional **H/L labels** (PDH, PDL, ONH, ONL) appear at the close of each session
- Lines can be **extended to the right** so levels remain visible throughout the trading day
---
**⚙️ Settings**
| Option | Description |
|---|---|
| Select what to plot | Choose between Previous Day H/L or Overnight H/L |
| Show H/L Labels | Toggle end-of-session labels on/off |
| Line Width | Adjust line thickness (1–3) |
| Extend Lines Right | Keep levels visible after the session ends |
---
**📋 Notes**
- All sessions are calculated using the **America/New_York** timezone, automatically accounting for daylight saving time
- Best used on intraday timeframes (1m, 5m, 15m, 1H)
- Pairs well with volume profile, VWAP, and market structure tools
---
*These levels are commonly used as areas of interest for reversals, breakouts, and liquidity sweeps. Use them as context — not signals.*
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.