Scan with difference in 5 day high and 3 day high price is less than $1.00

kabira

Member
VIP
I have two charts below.

First chart on the left : Time span is 5days and time frame is 15 minutes.

Second chart on the right: Time Span is 3days and time frame is 15 minutes.

Both charts have TOS built High Low bubbles. [I use the TOS Chart Settings - General and have the show high/low bubbles checked and it displays the high /low bubbles on the chart correctly with the appropriate time span]



In the first chart below on left the time span is 5 days and 15 min time frame the High is 153.06 and the low is 149.22 which you can see on the chart

In the second chart on the right the time span is 3 Days and 15 min time frame the High is 153.01 and the low is 150.75 which you can see on the chart



This is my request. I need to scan for the stocks where the difference between the left chart 5 days’ time span HIGH and right chart 3 days’ time span HIGH is less than $1.00.

As soon as the 15 min time frame candle completes on the 3 Day Time Span which displays the HIGH bubble and the difference is less than $1.00 from the 5Day time span HIGH I need to know.

[Difference of less than $1.00 from HIGH of 5Day time span and HIGH of 3 day time span]



Its will be same for the LOW as well the difference between the LOW of the 5day time span and 3 day time span is less than $1.00 I need to scan those.



I need the time span and price to be set by input variables where I can change it to different time spans and difference price if needed.

I was trying something like this.

def day3h = high > Highest(high[1],78); [78 is the number of 15 min bars in 3 days tf]

def day5h = high > Highest(high[1],130); [130 is the number of 15 min bars in 5days tf]

def Diff = day5h - day3h;

#def scan3 = if scan2 < 1.00 then Scan1 else scan;

plot Scan = if Diff < 1.00 then day3h else else double.nan;
 

Attachments

  • thinkscript1.png
    thinkscript1.png
    98.9 KB · Views: 61

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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