Volume scan for past 10 bars on daily and those bars meet another criteria

jngy2k

Member
The scan is going to help me find momentum stocks based on volume stocks that traded above 10 million volume in one day with a higher relative volume on that day usually start trending. I'm looking for stocks that traded 10million volume IN ONE DAY within the past 10 days and not 10 million volume overall within 10 days.

The custom scan I come up with on TOS is below but not sure if it is operating correctly then I would like to scan those stocks that traded 10M volume in one of the Days out of 10 days to have had above relative volume st dv. > 2. for the day it traded above 10 million volume.

thoughts + suggestions ???

qD51EJdh.jpg
 
Last edited:
nevermind i figured it out
the value criteria IS FOR ONE BAR out of the 10 BARS searched

I haven't figured out how to specifically attach the Relative Volume St Dv criteria to the First criteria though.
Also is there a OR function?
For example, volume is greater than 10million within last 10 bars OR volume is greater than 20million within last 10 bars.
??
 
Yes there is a "OR" (just needs to meet 1 of the 2 criteria) syntax
and there is also a "AND" syntax (needs to meet both criteria).

plotting the volume greater than 20 million within the last 10 bars will over ride volume greater than 10million because 10 million is less than 20million. therefore you just need volume is greater than 20 million within last 10 bars.

however at your request here you go what you asked for...

Code:
volume is greater than or equal to 10000000 within 10 bars or volume is greater than or equal to 20000000 within 10 bars
 
Last edited:
Yes there is a "OR" (just needs to meet 1 of the 2 criteria) syntax
and there is also a "AND" syntax (needs to meet both criteria).

plotting the volume greater than 20 million within the last 10 bars will over ride volume greater than 10million because 10 million is less than 20million. therefore you just need volume is greater than 20 million within last 10 bars.

however at your request here you go what you asked for...

Code:
volume is greater than or equal to 10000000 within 10 bars or close is greater than or equal to 20000000 within 10 bars
@XeoNoX yeah i realized this mistake just now.
i meant volume between 10mil to 20mil OR volume between 30 mil to 40 mil. does that make sense?
however i realied there is no BETWEEN function. I have to use greater than or less than so I have to combine two statements to make a between.
then that prevents the code from being able to add OR.
 
coded it mixed, you can use either words syntax or the symbol syntax. as per your request above here you go volume between 10mil to 20mil OR volume between 30 mil to 40 mil within the last 10 bars.

Code:
volume is greater than or equal to 10000000 and volume is less than or equal to 20000000 within 10 bars or volume >= 30000000 and volume <= 40000000 within 10 bars
 

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