How to filter out gappy stocks

muscleman

New member
I am trying to build a scanner, and it needs to have some basic liquidity rules like market cap > 1b and average daily volume > 50k. I also want to add a custom filter that excludes frequent gappers. For example, ABB really ****s because on the daily chart, you can see it gaps around pretty much every day.
The other example is AIQUY. While gaps provide special info, they do not in such stocks that gaps every day.
What's your suggestion to filter out this kind of stocks?
 
i think it is easier to start at the end. describe what you want to see, or have happen. then work your way backwards.

if you want a program to do stuff,
3. you need to create formulas that compare things/conditions.
2. things need to be defined.
1. list out chart characteristics to look for, and define them.


things to define,
..frequent,
what does frequent mean to you?

....on each bar, look back x bars and count the gaps and calculate a ratio. then compare the ratio to some number.

..gap
what 2 price parameters define a gap?
high and low? close to close?

should the gap be > than a dollar amount or > than a % of a price?
 
Last edited by a moderator:
I think the gap happens when low[0] > high[1]. If occasionally it gaps, I understand. That's the nature of stocks that don't trade 24 hours a day. But if it gaps pretty much every day, then it is not a tradable stock. It is unclear to me how the rules should be though. I start learning thinkscript last week and feel comfortable to write a custom script to filter this out, but I mostly want to discuss
1. Is there an existing custom filter that I can use that filters out gappy stocks?
2. What rules do you think are the best that identifies gappy stocks?
 

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