Script for (open=high) and (open=low)

kabira

Member
VIP
Hello I am looking for a script for (open=high) and (open=low).

Open high Low Scanner is a technique used to filter out scrips that have open=high or open=low. The strategy says that if open=high, one should go short in that scrip and when open=low, one should go long in that scrip.

Also just calrification:
In open = high [Is it high of the previous day]
and in open= low [Is it Low of the previous day]

Your help is appreciated if someone can provide script to add to my TOS.
 
@kabira You're welcome to make an attempt and we'll help you along but we really shouldn't be expected to bring your visions to reality... We get far too many requests by newer members to have others do their coding for them and it should be considered poor forum etiquette... Members write their own code and share is here, graciously, but shouldn't be expected to code on request simply because someone doesn't want to learn Thinkscript... The only way to learn is to start... I could never trust indicators I don't thoroughly understand, and if I can understand them I should also be able to write them as well... We're here to help those willing to help themselves... You have nothing to lose but the time we'd have to invest while you simply sat and waited...
 

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

Get started by using the Candlestick Pattern Builder in TOS.

No coding involved. You get to drag and drop things based on how you envision the pattern to be. It will then build the code for you.

Start there and let us know how it goes.

vT1EVPq.png
 
@kabira You're welcome to make an attempt and we'll help you along but we really shouldn't be expected to bring your visions to reality... We get far too many requests by newer members to have others do their coding for them and it should be considered poor forum etiquette... Members write their own code and share is here, graciously, but shouldn't be expected to code on request simply because someone doesn't want to learn Thinkscript... The only way to learn is to start... I could never trust indicators I don't thoroughly understand, and if I can understand them I should also be able to write them as well... We're here to help those willing to help themselves... You have nothing to lose but the time we'd have to invest while you simply sat and waited...
@rad14733 Sorry didn't mean to write the script for me. I was thinking there might be one already done. Or my be one is laready in TOS to use.

Also I was confused about open = high or open = low. I have seen people talking about this and wanted to try and I have not seen any where what is high comparing to. Is this previous day high? If some one through some light i will try the query.

Let me get started on this if anyone knows the logic can you please advise the below

when open=high is the the high the high of the previous day?
when open=low is the low the low ofg the previous day.?
 
@kabira I am not aware of any code similar to what you have described... If a search doesn't garner any results the you might be breaking new ground... Good luck...
lol. I get lot of results when I do open = high and open= low in google. but none of them say what is the high or low related to. is it same day or previous day. Cannot be same day because this is to run at the opening of the market. So I am assuming it to be previous day high but nor sure. Any gurus out here who used this logic? to confirm.
 
@kabira Are you more interested in using this on Charts, as a Custom Watchlist Column, or as a Scan...??? I have an idea that may help you along but I'm way behind on other projects at the moment... I'll try to squeeze some time in ASAP...
 
Hello I am trying the below scripts from one of the post from @BenTen. How can I modify the code to add the logic below.

1) Opening = Previous Days High
2) Opening = Previous Days Low



Use the script below to scan for stocks trading above or below its previous day's close.

Code:
# Previous Day's Close

input aggregationPeriod = AggregationPeriod.DAY;
def close = close(period = aggregationPeriod)[1];
plot prev_close = close;

Use the script below to scan for stocks trading above or below its current day's opening price.

Code:
input aggregationPeriod = AggregationPeriod.DAY;
def open = open(period = aggregationPeriod);
plot current_open = open;
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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