how to get the high/low/close of the current trading day up to a bar on 3min chart?

hitormiss

New member
on the 3min chart, would like to get the high/low/close of the current trading day up to the bar the cursor pointing to, instead of getting the high/low/close of the current day up to the last bar? so, if starting from certain bar, the price goes up, then the high of day of the last bar is higher than the starting bar's high of day. thx
 
on the 3min chart, would like to get the high/low/close of the current trading day up to the bar the cursor pointing to, instead of getting the high/low/close of the current day up to the last bar? so, if starting from certain bar, the price goes up, then the high of day of the last bar is higher than the starting bar's high of day. thx

thinkscript can't interact with a cursor.

it sounds like you want to find,
the HLC of a group of bars,
that start at the days open,
and stops before the current bar.

you will have to come up with a way to define the the ending bar.
time of day or duration from start,
x bars from start bar,
x bars back from current bar,
.....
 
Thanks for the reply. I may want arrays to store H/L/Cs since 09:30 EST as bars move forward for a regular trading day. a group/subset of bars may do the job. but I am not sure how to do this in thinkscript. Is there any sample I can look into for a reference? TIA!
 
I am looking for an indicator that automatically calculates the highs to the lows, lows to high in intraday chart and for the week. Like yesterday, market was down let see -2% and rallied to +2%, that's a 4% move. I like an indicator which is based on this move from price.

Thanks for your help!

ALSO, I was wondering, is there any possibility to have this:
https://usethinkscript.com/threads/...-and-low-as-watchlist-column.5157/#post-61302
in a histogram on a daily move? I am trying to play around with this code and already had this code changed to 1 day, but love to have it ytd on a daily basis (that you can see on a daily, like that from yesterday, wednesday etc.). Thanks for your help!
 
Last edited by a moderator:
I am looking for an indicator that automatically calculates the highs to the lows, lows to high in intraday chart and for the week. Like yesterday, market was down let see -2% and rallied to +2%, that's a 4% move. I like an indicator which is based on this move from price.

Thanks for your help!

ALSO, I was wondering, is there any possibility to have this:
https://usethinkscript.com/threads/...-and-low-as-watchlist-column.5157/#post-61302
in a histogram on a daily move? I am trying to play around with this code and already had this code changed to 1 day, but love to have it ytd on a daily basis (that you can see on a daily, like that from yesterday, wednesday etc.). Thanks for your help!

maybe this will help,
https://usethinkscript.com/threads/help-with-relative-range.10482/#post-92839
show 3 colored columns, after the last bar, that represent the price ranges of 3 time periods, day, week, month.
 
maybe this will help,
https://usethinkscript.com/threads/help-with-relative-range.10482/#post-92839
show 3 colored columns, after the last bar, that represent the price ranges of 3 time periods, day, week, month.
Thank you, I have tried this yesterday. This is not what I was looking for.

I used so far the following codes; but love to have this on a daily chart for let say last 200 days. Now I only can see through the labels of just one day.
High to low:
def Highday = Highest(highday, 1) ;
plot percentage = Round((Low / High - 1) * 100);
AddLabel(yes, "Last: " +Low +" | High: " +High +" | %: " +percentage, color.orange);plot Data = close;


Off the low to close:
def lowest = lowest(low, 1) ;
plot percentage = Round((close / low - 1) * 100);
AddLabel(yes, "Last: " +close +" | Low: " +low +" | %: " +percentage, color.pink);plot Data = close;


High of the day to close:
def Highday = Highest(highday, 1) ;
plot percentage = Round((close / High - 1) * 100);
AddLabel(yes, "Last: " +close +" | High: " +High +" | %: " +percentage, color.blue);plot Data = close;

Love to work on these labels:
  • Open to high
  • Open to low
  • Close to high
  • Close to low

on the 3min chart, would like to get the high/low/close of the current trading day up to the bar the cursor pointing to, instead of getting the high/low/close of the current day up to the last bar? so, if starting from certain bar, the price goes up, then the high of day of the last bar is higher than the starting bar's high of day. thx

I made the above, as I could not find this myself. Someone made this code a little different and I changed to do the following. I hope this may work for you. This code changes with the timeframe, you can use it for any timeframe.
 

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
443 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