PROTECTED SOURCE SCRIPT
Candlestick Pattern Dectector

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.
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.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。