Structura Candles Volume 1 v1.0█ OVERVIEW
Structura Candles Volume 1 is an advanced candlestick pattern recognition indicator based on the research methodology of Thomas N. Bulkowski's "Encyclopedia of Candlestick Charts." This indicator identifies 19 statistically-validated candlestick patterns and provides real-time backtesting against your current chart.
█ METHODOLOGY
Unlike traditional candlestick indicators that rely on theoretical pattern behavior, this script implements Bulkowski's empirical approach:
- Trend Detection: 10-period EMA to define short-term trend context
- Tall Candle Filter: 146% of 22-day average height threshold (statistically significant candles)
- Breakout Confirmation: Tracks whether price breaks above pattern high or below pattern low within a user-defined window
- Non-Repainting: Signals only confirm on bar close
█ PATTERNS INCLUDED
LONG Signals (Bullish):
- Three-Line Strike Bearish (84% reversal rate per Bulkowski)
- Engulfing Bullish
- Morning Star / Morning Doji Star
- Belt Hold Bullish
- Abandoned Baby Bullish
- Rising Window
- Three Inside Up
- Three Outside Up
SHORT Signals (Bearish):
- Engulfing Bearish
- Three Black Crows
- Evening Star / Evening Doji Star
- Abandoned Baby Bearish
- Two Black Gapping
- Falling Window
- Belt Hold Bearish
- Three Inside Down
- Three Outside Down
█ FEATURES
- Real-time pattern detection with LONG/SHORT direction
- Dynamic win rate calculation based on YOUR chart's historical performance
- Comparison to Bulkowski's book statistics
- Label colors update based on outcome:
🟡 Yellow = Pending (awaiting breakout)
🟢 Green = WIN (correct breakout direction)
🔴 Red = LOSS (wrong breakout direction)
⚪ Gray = Timeout (excluded from statistics)
- Separated LONG vs SHORT performance dashboard
- Adjustable breakout timeout window
█ HOW TO USE
1. When a pattern appears, the label shows direction (LONG/SHORT) and historical win rate
2. Wait for bar close confirmation (✓ CONFIRMED status)
3. Monitor subsequent bars for breakout above pattern high (bullish) or below pattern low (bearish)
4. Use the dashboard to identify which patterns perform best on your specific instrument
█ IMPORTANT DISCLAIMER
- Past performance does not guarantee future results
- The "Book WR" values are from Bulkowski's historical research on US equities and may differ across instruments, timeframes, and market conditions
- This indicator is for educational and analytical purposes only
- Always use proper risk management and do your own analysis before trading
- The win rates displayed are based on the breakout methodology, not actual trade profitability
█ SETTINGS
- Max Bars to Breakout: How long to wait for pattern confirmation (default: 10)
- Pattern Toggles: Enable/disable individual patterns
- Bulkowski Parameters: Adjust trend EMA, height threshold, and doji tolerance
█ ACCESS
This is an invite-only script. For access, please send a direct message.
Chỉ báo Pine Script®






















