Intraday HOD & LOD for ThinkorSwim

@XeoNoX thank you for your thorough response! I get the idea now for what I want I'd want the -1.00. So last question if I wanted this for the 1 DAY 1 Min chart what would I need to tweak to get it to work? Or is that even possible?
 

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

This is not meant for the chat, it a scanner and a built for a data point. there is no 1minute for high of DAY, its either the high of the day or its not. your not scanning for high of the minute, atleast i assume your not. however you can use the minutes chart to look for the high of the day. The end goal is for high of the day, how you deiced to view it is up to you. To put it in perspective.... you can count to 100 by 1s or by 2s, or by 5s, the end goal is for you get to get to 100, how you get there is up to you. Take a few seconds of our time and Load the high/low graph column into thinkorswim and you will hopefully understand how it works.

keep in mind TOS scanners only scan once every few minutes, as mentioned before thats why its better to relax the highlowdegree threshold a bit.
 
Last edited:
I searched and did not find a basic intraday indicator for high of day and low of day, so I created what I was looking for in my trading. This script is intended to make both HOD and LOD easily recognizable and kept in mind via both line and chart bubble for trading. This will continue to update in real time as NHOD or NLOD are set.

View attachment 2242

Code:
#Intraday HOD/LOD Plot
#Stoneybucks
#Simple green HOD and red LOD line and bubble plotting each, and it updates intraday as new ones are set HOD/LOD are set. Bubble is intentionally shifted to ideally be out of the way from viewing price as the day progresses.

plot highLine = HighestAll(if IsNaN(close[-1])
                            then high(period = "Day")
                            else Double.NaN);

plot lowLine = LowestAll(if IsNaN(close[-1])
                            then low (period = "Day")
                            else Double.NaN);



input showBubble = yes;
input ShiftBubble = -75;
def n1 = ShiftBubble + 1;
def cond = showBubble and IsNaN(close[ShiftBubble]) and !IsNaN(close[n1]) ;
AddChartBubble(cond, highLine, Concat("HOD: ", Round(highLine)), Color.GREEN);

input showBubble1 = yes;
input ShiftBubble1 = -75;
def n2 = ShiftBubble + 1;
def cond1 = showBubble and IsNaN(close[ShiftBubble]) and !IsNaN(close[n2]) ;
AddChartBubble(cond, lowLine, Concat("LOD: ", Round(lowLine)), Color.RED);
Is there any way this can make sounds when HOD and LOD is reached?
 
Is there any way this can make sounds when HOD and LOD is reached?

Alerts when HOD and LOD is reached
Add this code snippet to the bottom of your study:
Ruby:
def newHOD = high == HighestAll(high(period = "Day")) and high > high[1];
def newLOD = low == LowestAll(low(period = "Day")) and low < low[1];

Alert(newHOD, "New High of Day", Alert.BAR, Sound.Ding);
Alert(newLOD, "New Low of Day", Alert.BAR, Sound.Bell);
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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