PROTECTED SOURCE SCRIPT
Bullish Candlestick Pattern Tracker (21 Patterns)

Script Title: Bullish Candlestick Pattern Tracker (21 Patterns)
Overview
This script is a comprehensive tool designed to automatically detect and track the lifecycle of 21 distinct bullish candlestick patterns.
It identifies a pattern upon the close of a bar and then monitors its status over a user-defined period. The primary goal is to provide traders with clear, automated signals for potential bullish reversals, complete with pre-calculated confirmation and stop-loss levels based on established technical analysis definitions.
This indicator is built in Pine Script v6 and uses a stateful tracking system to manage each detected pattern.
Key Features
21 Bullish Patterns: Detects a wide array of patterns, from single-bar formations (e.g., Bullish Hammer) to complex three-bar formations (e.g., Bullish Morning Star, Bullish Three White Soldiers).
Stateful Lifecycle Tracking: This is not just a pattern detector. It monitors each pattern's status in real-time after detection:
Not Confirmed: The pattern has formed, but the price has not yet closed above the confirmation level.
Confirmed: The price has successfully closed above the confirmation level.
Failed: The price has closed below the stop-loss level (either before or after confirmation).
Customizable Confirmation Period: Users can define how many bars the script should wait for a pattern to be confirmed or to fail (via the confBarCount input).
Clear Visual Labels: Displays a detailed label under each unconfirmed pattern, showing:
Pattern Name (e.g., "Bullish Engulfing")
Status: "Not Confirmed"
Confirmation Level (Teyit): The price that must be breached (on close) for the pattern to be considered valid.
Stop-Loss Level (S/L): The price level that invalidates the pattern.
Modular Inputs: Each of the 21 patterns can be individually toggled on or off from the settings menu, allowing you to focus only on the patterns you trust.
Methodology & Logic
The logic for pattern detection, as well as the specific rules for each pattern's Confirmation Level and Stop-Loss Level, is strictly based on the definitions provided in the "Mum Formasyonları (Kasım 2015 Versiyon 7.1.4)" guide by Matriks Bilgi Dağıtım Hizmetleri A.Ş.
This script serves as a Pine Script v6 implementation of those specific rules, designed for stock market analysis (Bullish signals only).
How to Use (Parameters Explained)
Teyit Bar Sayısı (Conf. Bar Count): This is the most important input. It defines the "expiration" for a pattern. For example, if set to 3, the script will monitor a new pattern for 3 bars. If it is not confirmed or failed within those 3 bars, the label will disappear.
Status Toggles (e.g., showNotConfirmed): Allows you to filter which pattern statuses are visible on the chart. It is recommended to keep all three active.
Pattern Toggles (e.g., 1. Bullish Hammer Göster): Use these 21 checkboxes to activate or deactivate the detection for specific patterns.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. All trading involves significant risk, and past performance is not indicative of future results. Please conduct your own research and backtesting before making any trading decisions.
Overview
This script is a comprehensive tool designed to automatically detect and track the lifecycle of 21 distinct bullish candlestick patterns.
It identifies a pattern upon the close of a bar and then monitors its status over a user-defined period. The primary goal is to provide traders with clear, automated signals for potential bullish reversals, complete with pre-calculated confirmation and stop-loss levels based on established technical analysis definitions.
This indicator is built in Pine Script v6 and uses a stateful tracking system to manage each detected pattern.
Key Features
21 Bullish Patterns: Detects a wide array of patterns, from single-bar formations (e.g., Bullish Hammer) to complex three-bar formations (e.g., Bullish Morning Star, Bullish Three White Soldiers).
Stateful Lifecycle Tracking: This is not just a pattern detector. It monitors each pattern's status in real-time after detection:
Not Confirmed: The pattern has formed, but the price has not yet closed above the confirmation level.
Confirmed: The price has successfully closed above the confirmation level.
Failed: The price has closed below the stop-loss level (either before or after confirmation).
Customizable Confirmation Period: Users can define how many bars the script should wait for a pattern to be confirmed or to fail (via the confBarCount input).
Clear Visual Labels: Displays a detailed label under each unconfirmed pattern, showing:
Pattern Name (e.g., "Bullish Engulfing")
Status: "Not Confirmed"
Confirmation Level (Teyit): The price that must be breached (on close) for the pattern to be considered valid.
Stop-Loss Level (S/L): The price level that invalidates the pattern.
Modular Inputs: Each of the 21 patterns can be individually toggled on or off from the settings menu, allowing you to focus only on the patterns you trust.
Methodology & Logic
The logic for pattern detection, as well as the specific rules for each pattern's Confirmation Level and Stop-Loss Level, is strictly based on the definitions provided in the "Mum Formasyonları (Kasım 2015 Versiyon 7.1.4)" guide by Matriks Bilgi Dağıtım Hizmetleri A.Ş.
This script serves as a Pine Script v6 implementation of those specific rules, designed for stock market analysis (Bullish signals only).
How to Use (Parameters Explained)
Teyit Bar Sayısı (Conf. Bar Count): This is the most important input. It defines the "expiration" for a pattern. For example, if set to 3, the script will monitor a new pattern for 3 bars. If it is not confirmed or failed within those 3 bars, the label will disappear.
Status Toggles (e.g., showNotConfirmed): Allows you to filter which pattern statuses are visible on the chart. It is recommended to keep all three active.
Pattern Toggles (e.g., 1. Bullish Hammer Göster): Use these 21 checkboxes to activate or deactivate the detection for specific patterns.
Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. All trading involves significant risk, and past performance is not indicative of future results. Please conduct your own research and backtesting before making any trading decisions.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.