OPEN-SOURCE SCRIPT
Updated Candlestick Patterns

Short Description: Identify and visualize 16 key candlestick patterns in real-time.
Long Description:
The Candlestick Pattern Detector is a powerful indicator designed to help traders identify and visualize 16 key candlestick patterns in real-time. This indicator overlays the identified patterns on the chart, making it easy for traders to spot potential trend reversals, continuations, or significant price movements.
The indicator detects the following candlestick patterns:
Bullish Engulfing
Bearish Engulfing
Bullish Harami
Bearish Harami
Bullish Piercing
Dark Cloud Cover
Hammer
Hanging Man
Inverted Hammer
Shooting Star
Morning Star
Evening Star
Three White Soldiers
Three Black Crows
Bullish Marubozu
Bearish Marubozu
Each pattern is labeled on the chart with its respective name and color-coded to indicate whether it's a bullish (green) or bearish (red) signal. This makes it easy for traders to quickly spot patterns and make informed decisions based on the detected signals.
To use the Candlestick Pattern Detector, simply add it to your TradingView chart, and it will automatically highlight the identified patterns on the price chart. The patterns are identified based on well-established candlestick pattern recognition techniques, giving traders a reliable tool to aid their technical analysis.
Whether you're a seasoned trader or just starting, the Candlestick Pattern Detector can be a valuable addition to your trading toolkit, helping you to identify potential trading opportunities based on classic candlestick patterns.
Long Description:
The Candlestick Pattern Detector is a powerful indicator designed to help traders identify and visualize 16 key candlestick patterns in real-time. This indicator overlays the identified patterns on the chart, making it easy for traders to spot potential trend reversals, continuations, or significant price movements.
The indicator detects the following candlestick patterns:
Bullish Engulfing
Bearish Engulfing
Bullish Harami
Bearish Harami
Bullish Piercing
Dark Cloud Cover
Hammer
Hanging Man
Inverted Hammer
Shooting Star
Morning Star
Evening Star
Three White Soldiers
Three Black Crows
Bullish Marubozu
Bearish Marubozu
Each pattern is labeled on the chart with its respective name and color-coded to indicate whether it's a bullish (green) or bearish (red) signal. This makes it easy for traders to quickly spot patterns and make informed decisions based on the detected signals.
To use the Candlestick Pattern Detector, simply add it to your TradingView chart, and it will automatically highlight the identified patterns on the price chart. The patterns are identified based on well-established candlestick pattern recognition techniques, giving traders a reliable tool to aid their technical analysis.
Whether you're a seasoned trader or just starting, the Candlestick Pattern Detector can be a valuable addition to your trading toolkit, helping you to identify potential trading opportunities based on classic candlestick patterns.
Release Notes
This enhanced script identifies key candlestick reversal patterns with refined accuracy and flexibility. Designed to reduce clutter while maximizing signal clarity — especially on higher timeframes like the weekly chart.🔍 Included Patterns:
Bullish/Bearish Engulfing
Harami
Piercing Line / Dark Cloud Cover
Morning/Evening Star
Hammer / Hanging Man / Inverted Hammer / Shooting Star
Three White Soldiers / Three Black Crows
Bullish/Bearish Marubozu
⚙️ Custom Features:
Minimum body size filter to remove weak/indecisive candles
Trend confirmation logic (detects patterns only after valid trend movement)
Smart label spacing so charts don’t get overwhelmed
Staggered label height for easier reading
Optional grouping: Combine similar bullish/bearish patterns into one “combo” label
Works on all timeframes, optimized for daily and weekly
📈 Use this to spot early reversal signals, validate price exhaustion, or combine with support/resistance for precision entries.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.