Tweezer Candlestick

doogster7

New member
VIP
I see in ToS default Stock Hacker Candlestick choices, Tweezer pattern for either Tweezer top or Tweezer bottom is not listed. Does anyone have code for Stock Hacker to screen for these patterns? Thank you for your consideration. Doogster7

1758416318607.png1758416504035.png1758416754593.png
 

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

https://tos.mx/!fzEBVG8E this the script to use in the scanner
https://tos.mx/!6HJb2chE this is the scanner next is the set up that I use, I add an RSI function here just to get a more bullish result.
View attachment 25791
The "Bullish Reversal Patterns Scanner" is a ThinkScript designed to identify seven common bullish reversal candlestick patterns on daily charts within the ThinkOrSwim (TOS) platform. Its primary goal is to assist traders in detecting potential turning points where a downtrend may reverse into an uptrend, enabling timely entry points for long positions. The script outputs a binary signal (1 or 0) compatible with the Stock Hacker tool on daily aggregation, making it ideal for scanning large datasets to filter stocks exhibiting these patterns.

Functionality:
  • Pattern Detection: The script identifies the following bullish reversal patterns:
    • Hammer: A small body with a long lower shadow and minimal upper shadow, indicating rejection of lower prices after a downtrend.
    • Inverted Hammer: A small body with a long upper shadow and minimal lower shadow, suggesting bullish rejection after a downtrend.
    • Bullish Engulfing: A larger bullish candle that fully engulfs the previous bearish candle, signaling strong buying pressure.
    • Piercing Line: A bullish candle that opens below the prior bearish candle’s low and closes above its midpoint, indicating a potential reversal.
    • Morning Star: A three-candle pattern with a bearish candle, a small indecisive candle, and a bullish candle closing well above the first candle’s midpoint.
    • Bullish Harami: A small bullish candle within the range of the prior bearish candle, hinting at a slowdown in selling pressure.
    • Tweezer Bottom: Two candles with equal lows, where the second is bullish, suggesting support and a potential reversal.
  • Downtrend Confirmation: Each pattern requires a prior downtrend, defined as the previous day’s close being lower than the close five bars ago, ensuring the reversal context.
  • Volume Validation: Most patterns include a volume condition (current volume > previous volume) to confirm the strength of the reversal signal.
  • Output: The script combines all pattern detections into a single bullishPattern variable. The ScanSignal plot returns 1 if any pattern is detected, triggering a green upward arrow on the chart, and 0 otherwise, designed for use in the TOS Stock Hacker.
Technical Details:
  • The script is declared as lower to ensure compatibility with the scanner interface.
  • It uses price data (open, high, low, close) and volume from the prior day ([1]) and two days ago ([2]) to evaluate patterns.
  • The logic employs conditional statements and mathematical comparisons (e.g., absValue, >, <) to define candle characteristics and trends.
Intended Use: This scanner is optimized for daily timeframes, allowing traders to quickly identify stocks with potential bullish reversals for further analysis or trade setup. It serves as a filtering tool rather than a standalone trading system, requiring manual confirmation of signals with additional technical indicators or fundamental analysis.

Limitations: The simplified downtrend definition and lack of advanced filtering (e.g., trend strength or confirmation candles) may lead to false positives. Users should validate signals with broader market context and risk management strategies. You can always add to the scanner to make it stricter. I have added an RSI feature that helps limit and focus on stock that are starting to show bullish tendencies. You can add a MACD feature to implement this even further.

This script provides a practical, automated solution for spotting bullish reversal opportunities, enhancing trading efficiency within the TOS ecosystem.

Thank you for the information. Doogster7
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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