Label with Low and Time after the High of Day

decoder

New member
Good evening, Can you please any of you thinkscript jedis help me with a label with the low and time after the high of day has set. if is possible to add time inputs thanks for your time.
Screenshot 2024-02-17 004726.png
 
Good evening, Can you please any of you thinkscript jedis help me with a label with the low and time after the high of day has set. if is possible to add time inputs thanks for your time.View attachment 21081

This might work how you want it

Screenshot 2024-03-03 044940.png
Code:
#Highest High during RTH
def h        = compoundValue(1,
               if GetTime() crosses above RegularTradingStart(GetYYYYMMDD())
               then high
               else max(high,h[1]), h[1]);
              
def hbn      = if GetDay() == GetLastDay()
               then if high == h
                    then BarNumber()
                    else hbn[1]
               else 0;

def hday     = if BarNumber() == HighestAll(hbn)
               then high
               else hday[1];

plot highday = hday;
highday.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);

#Lowest Low after High of Day
def l       = if BarNumber() == HighestAll(hbn + 1)
              then low
              else Min(low, l[1]);
def lbn     = if GetDay() == GetLastDay() and  secondsfromtime(1600)<0
              then if low == l
                   then BarNumber()
                   else lbn[1]
              else 0;
def lday    = if barnumber()==Highestall(lbn) then l else lday[1];
plot lowday = lday;
lowday.setpaintingStrategy(paintingStrategy.HORIZONTAL);


#Time Bubbles------------------------------------------------------------------------
input showbubbles    = yes;
Input showlastbubble = yes;
def hour    = Floor(((9 * 60 + 30) + (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000) / 60);
def minutes = (GetTime() - RegularTradingStart(GetYYYYMMDD())) / 60000 - ((hour - 9) * 60 + 30) + 60;
AddChartBubble(showbubbles and if showlastbubble then barnumber() == highestall(lbn) else lday, lday, lday+"\n"+hour + ":" + (if minutes < 10 then "0" else "") + minutes, Color.white, no);

#
 

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

Hi SleepyZ, can you please provide the time and price of the next Swinglow after last Swinghigh?
Thanks,

The code actively on the chart should at the moving highest high keep recording lower lows with times until the highest high for the day is found and then the moving lower lows until the lowest low is achieved.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
396 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