Think Script help for Premarket Volume

surtronomer

New member
Thanks in advance for the Help.

I would like a scanner that I can use during premarket to find stocks that trading higher volume in pre-market hours.
What I’d like is for it to scan for any stock that has done 5% or more of its average daily volume in the premarket. Average daily volume would be 50 period.

it seems like it’s possible and not too difficult, but I have no idea how to code for Thinkscript. It would also be great to have a quote for this percentage to be used in the watchlist so after the scan finds a stock, it can show that percent of premarket volume compared to average daily volume.

Thank you!!
 
Solution
While this does seem simple, I'm drawing a blank on how to achieve it -- the more I think, the harder the problem is getting...

Getting the 50 day volume average is easy enough. Getting pre-market volume for today is easy. HOWEVER, they require different time aggregations and scanners aren't allowed to use multiple aggregations.

Sorry I can't be more help, but I don't think this one is going to work

-mashume

EDIT
I suppose if you only want to run it pre-market it would be simple to do:
Code:
def avg_vol = Average(Volume(period = AggregationPeriod.DAY)[1], 50);
def today_vol = VOLUME;
plot eureka = if today_vol >= 0.05 * avg_vol then 1 else double.nan
But this will capture all of today's volume including RTH once RTH starts. It...
While this does seem simple, I'm drawing a blank on how to achieve it -- the more I think, the harder the problem is getting...

Getting the 50 day volume average is easy enough. Getting pre-market volume for today is easy. HOWEVER, they require different time aggregations and scanners aren't allowed to use multiple aggregations.

Sorry I can't be more help, but I don't think this one is going to work

-mashume

EDIT
I suppose if you only want to run it pre-market it would be simple to do:
Code:
def avg_vol = Average(Volume(period = AggregationPeriod.DAY)[1], 50);
def today_vol = VOLUME;
plot eureka = if today_vol >= 0.05 * avg_vol then 1 else double.nan
But this will capture all of today's volume including RTH once RTH starts. It will only be accurate AT 9:30.
 
Last edited:
Solution

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