PROTECTED SOURCE SCRIPT

Candlestick Pattern Dectector

33
Candle Pattern Detector is a price action tool that scans every candle in real time and tags the major reversal and continuation patterns for you. Instead of guessing what you are seeing on the chart, this script reads the structure of each candle, compares it to recent volatility, and then prints a clear trade bias: Long, Short, or Neutral.

The script measures body size, total range, and wick length over a customizable lookback period so it can filter out tiny, meaningless candles and focus on decisive moves. From there it automatically detects:

Doji (neutral, potential reversal zones)

Hammer and Hanging Man

Inverted Hammer and Shooting Star

Bullish and Bearish Engulfing

Morning Star and Evening Star

Piercing Line and Dark Cloud Cover

Three White Soldiers and Three Black Crows

When a valid pattern forms, the indicator prints a color-coded label on the chart that includes both the pattern name and the suggested signal. Green labels and triangle-up markers highlight Long setups. Red labels and triangle-down markers highlight Short setups. Doji and other neutral reads are shown as informational only so you can pay attention to possible turning points.

Alerts are built in so you do not have to stare at the screen. Turn on alerts once, choose Long and/or Short, and the script will notify you when a new pattern and signal are printed at bar close. The lookback period, alerts, and labels can all be toggled in the inputs to fit your style, whether you are scalping intraday or swing trading higher time frames.

Use Candle Pattern Detector as a decision support tool: line it up with your own key levels, higher time frame trend, and risk management plan. It will handle the pattern recognition work so you can stay focused on execution.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.