Previous Candle watchlist Column

Hello. I was wondering if there was a way to have a column on the watchlist that reads "Previous candle red" where the assign value color is red when that candle closes red or "Previous candle green" where the assign value color is green when that candle closes green..(your chose on the time frame but preferrable 5 minute, 15 minute, and 30 minute..

@tradeking313 Do you mean something like this?

#Previous Candle Watchlist Column
#choose your preferred aggregation from choices in column editor

AddLabel(1, if close[1] < open[1] then "Previous Candle Red"
else if close[1] > open[1] then "Previous Candle Green" else
"Previous Candle Neutral",;
AssignBackgroundColor(if close[1] < open[1] then
else if close[1] > open[1] then else color.gray);
@Pensar I have been looking for something like this with same conditions but for the watchlist to change colors based on previous day close and RTH opening. instead of t being based on the current candles. I'm not a coder so can you post adjust and post this/ Thanks
@soary Check if this works. Make certain you choose a daily aggregation in the watchlist.

#Previous Close vs Open Watchlist Column
#shows if the open of the current bar is greater than, less than, or equal to the previous bar close
#select a daily aggregation

AddLabel(1, if open < close[1] then "Open < Close"
else if open > close[1] then "Open > Close" else
"Open = Close",;
AssignBackgroundColor(if open < close[1] then
else if open > close[1] then else color.gray);
Last edited:
looking for a script that i can add to my watchlist to tell me when a stock crosses the market open line. red to green
i feel like ive seen it on here but i have searched and cant find it


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
410 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.