Pre-market highs and lows watchlist column

asifa273

New member
Hello,

I am trying to get the preMarketHighs and preMarketLows to display in the Watchlist and make some calculated comparing it against the price of the stock. I want these values even during the regular trading hours and even when the ToS is not running during the preMarket hours. If someone has already have a code for this, please share.

Thanks,
Asif.
 
Solution
here you go...


HIGHEST PREMARKET HIGH AS COLUMN
NOTE: * Set time Aggregation to 1 to 30 minutes *
updated to reflect updated trading hours starting at 03:00

Code:
# Highest PreMarket High price for thinkorswim column v1.0
# Request filled by XeoNoX via use thinkscript.com 12/08/2025
# https://usethinkscript.com/threads/pre-market-highs-and-lows-watchlist-column.21770/
# NOTE: *** Set time Aggregation to 1-30 minutes  ***

declare lower;

def start_time = 0300;
def endtime = 0930;
def selected_time = if GetLastDay() == GetDay() and SecondsFromTime(start_time) >= 0 and SecondsFromTime(endtime) < 0 then 1 else 0;

def hh =  if selected_time and high > hh[1] then high else hh[1];

plot PM_High=hh...
here you go...


HIGHEST PREMARKET HIGH AS COLUMN
NOTE: * Set time Aggregation to 1 to 30 minutes *
updated to reflect updated trading hours starting at 03:00

Code:
# Highest PreMarket High price for thinkorswim column v1.0
# Request filled by XeoNoX via use thinkscript.com 12/08/2025
# https://usethinkscript.com/threads/pre-market-highs-and-lows-watchlist-column.21770/
# NOTE: *** Set time Aggregation to 1-30 minutes  ***

declare lower;

def start_time = 0300;
def endtime = 0930;
def selected_time = if GetLastDay() == GetDay() and SecondsFromTime(start_time) >= 0 and SecondsFromTime(endtime) < 0 then 1 else 0;

def hh =  if selected_time and high > hh[1] then high else hh[1];

plot PM_High=hh;

PM_High.assignValueColor( if close < PM_High then color.downtick else if close > PM_High then color.uptick else color.white);


LOWEST PREMARKET LOW AS COLUMN
NOTE: * Set time Aggregation to 1 to 30 minutes *
updated to reflect updated trading hours starting at 03:00

Code:
# Lowest PreMarket Low price for thinkorswim column v1.0
# Request filled by XeoNoX via use thinkscript.com 12/08/2025
# https://usethinkscript.com/threads/pre-market-highs-and-lows-watchlist-column.21770/
# NOTE: *** Set time Aggregation to 1-30 minutes ***

declare lower;

def start_time = 0300;
def endtime = 0930;
def selected_time = if GetLastDay() == GetDay() and SecondsFromTime(start_time) >= 0 and SecondsFromTime(endtime) <0 then 1 else 0;

def PMLow = if selected_time and !selected_time[1] then low
else if selected_time and low < PMLow[1] then low else PMLow[1];

plot LowestOfPM =PMLow;

LowestOfPM.assignValueColor( if close < LowestOfPM then color.downtick else if close > LowestOfPM then color.uptick else color.white);
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
560 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top