PROTECTED SOURCE SCRIPT
Updated Prev Day & Premarket High/Low Lines

This TradingView Pine Script is designed to enhance intraday trading by visually marking key price levels on the chart. It automatically plots horizontal lines representing the previous day's high and low, as well as the pre-market session's high and low. These levels are critical for identifying support and resistance zones that traders often use for entries, exits, or to anticipate price reactions.
The script calculates the previous day's high and low using daily historical data. For the pre-market session, which is defined as 4:00 AM to 9:30 AM Eastern Time, it tracks price movements on intraday charts and captures the highest and lowest price reached during that session.
At exactly 9:31 AM EST, once the pre-market ends, the script draws horizontal lines at these levels for the current trading day. Each line's color and width are fully customizable through input settings, allowing users to match their chart themes or preferences.
This tool is especially helpful for day traders and scalpers who rely on short-term price action. It ensures that important reference levels are clearly displayed without manual effort, aiding in quick decision-making and improving overall trading discipline and strategy execution.
The script calculates the previous day's high and low using daily historical data. For the pre-market session, which is defined as 4:00 AM to 9:30 AM Eastern Time, it tracks price movements on intraday charts and captures the highest and lowest price reached during that session.
At exactly 9:31 AM EST, once the pre-market ends, the script draws horizontal lines at these levels for the current trading day. Each line's color and width are fully customizable through input settings, allowing users to match their chart themes or preferences.
This tool is especially helpful for day traders and scalpers who rely on short-term price action. It ensures that important reference levels are clearly displayed without manual effort, aiding in quick decision-making and improving overall trading discipline and strategy execution.
Release Notes
naProtected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
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.