Bollinger Bands Scan

ajai

New member
VIP
Hello @BenTen ,Is there is scan in tos which can identify stocks with following criteria
1.close out side the bollinger band
2.Next candle(daily)closes higher than the previous candle which closed outside the BB.
 
Hello @BenTen ,Is there is scan in tos which can identify stocks with following criteria
1.close out side the bollinger band
2.Next candle(daily)closes higher than the previous candle which closed outside the BB.

To scan with default settings for the BollingerBands the Scan would be:

Ruby:
close > BollingerBands()."UpperBand" and close[1] > BollingerBands()."UpperBand"[1]

The Scan would use a Custom Study...

1751642885877.png



And if you only want Stocks where these are the first two candles closing above the BollingerBands you would use:

Ruby:
close > BollingerBands()."UpperBand" and close[1] > BollingerBands()."UpperBand"[1] and close[2] < BollingerBands()."UpperBand"[2]

1751643163734.png



Examples:

1751647438537.png


1751647479979.png
 
Last edited:

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

TY @rad14733 ,I tried to add the line in the default code but it does not want to paste.In your $DRI example the the candle does not close below the previous candle which closed outside the upper band though.
 
TY @rad14733 ,I tried to add the line in the default code but it does not want to paste.In your $DRI example the the candle does not close below the previous candle which closed outside the upper band though.

That wasn't what you asked for, you asked for a candle closing above the previous candle that closed above the upper band...

1.close out side the bollinger band
2.Next candle(daily)closes higher than the previous candle which closed outside the BB.

What is it that you actually want...???
 
TY @rad14733 ,I think I was not clear before
A.for bullish set up
1.candle closing out side the lower band
2.next candle candle closing higer than the high of the previous candle.
for bearish set up
opposite of the above conditions
B.for another bullish set up
1.Candle closing out side of lower band
2.Candle crossing the midband within last 15 bars.

I appreciate your help.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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