OPEN-SOURCE SCRIPT
Updated PDH/PDL + OVN-H/L (Right-Aligned Labels + Alerts)

Automatically plots the PDH/L (Prior Day High/Low) and OVN-H/L (Overnight High/Low) of the current session.
✅ What it does:
Plots PDH/PDL each day — they appear freshly after 9:30 AM EST, for the entire regular session.
Does NOT extend lines overnight — breaks the line between 16:00 and the next 9:30.
Plots OVN-H / OVN-L as dashed lines, after 9:30 AM EST each day, from 9:30 to 16:00 only.
Clean lines that reset daily
Right-aligned labels showing the level names and price values
🔔 Alerts Included:
Cross Above PDH
Cross Below PDL
Cross Above OVN-H
Cross Below OVN-L
Works on 30min or lower timeframe
✅ What it does:
Plots PDH/PDL each day — they appear freshly after 9:30 AM EST, for the entire regular session.
Does NOT extend lines overnight — breaks the line between 16:00 and the next 9:30.
Plots OVN-H / OVN-L as dashed lines, after 9:30 AM EST each day, from 9:30 to 16:00 only.
Clean lines that reset daily
Right-aligned labels showing the level names and price values
🔔 Alerts Included:
Cross Above PDH
Cross Below PDL
Cross Above OVN-H
Cross Below OVN-L
Works on 30min or lower timeframe
Release Notes
Updated to capture the correct 930am OVN cut off and the correct PDH/L rangeOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.