Advanced Candlestick Patterns [MAB]

Advanced Candlestick Patterns is a framework that detects well-defined candlestick patterns with a consistent Validation / Devalidation process, optional swing-context filters, and a hidden-candle reconstruction mode for stricter pattern anatomy.
The goal is clarity and discipline: signals are described, thresholds are visible, and risk parameters are explicit.
⚙️ Key Features
- 📊 Pattern Engine (Extensible) — Modular detection methods so new patterns can be added without changing workflow.
- ✅ Validation / Devalidation — Clear rules for confirmation and invalidation; plotted with distinct lines for transparency.
- 📈 Swing Filter (Optional) — Require setups to align with local swing highs/lows via selectable lookbacks.
- 🧩 Hidden-Candle Mode — Reconstructs OHLC (prev close + current extremes) to reveal intra-bar structure; visuals may differ from native bars.
- 🎯Target Systems — Choose Points, Percentage, or Risk:Reward; info label shows EP/SL/TP-1.
- Performance-Safe Controls — Label size, info toggle, and non-editable internal lines.
📈 How to Use
- Add the script to your chart (after access is granted).
- Choose pattern types for Bullish and Bearish detection from the inputs.
⁃ Enable Hidden Candles if you want stricter intra-bar anatomy.
⁃ Enable Detect near Swings and pick a swing length (Smaller/Medium/Bigger). - 💬Decide whether to show Trade Info Labels (Entry, SL, Target 1).
- 🎯Set your Target Mode (Points / Percentage / Risk:Reward) and parameter.
- ✅ Use the plotted Validation (confirmation) and Devalidation (invalidation) levels to plan.
Tip: With Detect near Swings ON, a setup counts only if the prior bar’s high/low equals the rolling extreme. If too strict, adjust the lookback or disable.
💡Recommended charting
• Intraday structure: 5m–15m–30m
• Swing confirmation: 2h-4h–1D
• Test across multiple symbols; avoid cherry-picking.
🛡 Risk Management System
This tool displays mechanics—you control the risk. A common template:
- Entry: Entry is typically considered only after validation.
- Stop-Loss: Initial SL at the structure-defined level (displayed).
- Target 1: Choose Points / % / Risk:Reward (e.g., 1R).
- After TP-1: Consider partial profits and trail the remainder via ATR / short MA / swing boxes (user-defined).
No target or trail is guaranteed—market conditions change.
🧭 Visual Guide
#1. Input Selections Window:
#2. Bearish Patterns: Valid and Devaild rules for the Bearish Patterns
#3. Bullish Patterns: Valid and Devalied rules for the Bullish Patterns
#4. Spotted Bullish Harami Pattern & Trade Info label explained:
#5. Spotted Bearish Engulfing Pattern:
⚠️ Important Notes
- ⏱️ Timeframes: Works on all timeframes. For intraday, start 5m–15m; for swing, use 4h–1D. Evaluate on bar close.
- ✅ Instruments: Any OHLC market (Crypto/FX/Indices/Equities). Forward-adjusted data may show minor visual differences.
- 🧩 Hidden-Candle Mode: Detection follows reconstructed bars; visuals may differ from native candles.
- 🔔 Signal Lifecycle: Deterministic New → Validated → Devalidated. Levels reset to na when devalidated.
- 🚫 No Look-Ahead: No repainting after bar close. Intrabar values can update until the bar closes.
- 📊 Performance: High label/line counts can slow charts on lower TFs; reduce label size or toggle Trade Info if needed.
🔐 Conclusion and Access
This framework promotes a disciplined, rules-first approach to pattern-based trading: clear definitions, visible Validation/Devalidation levels, and explicit risk references.
👉 For how to request access, please see the Author’s Instructions section below.
🧾 Disclaimer
This script is intended solely for educational and informational purposes. It does not provide financial or investment advice, nor should it be interpreted as a recommendation to buy, sell, or trade any securities or derivatives.
We are not SEBI-registered advisors, and the strategies shown are not personalized guidance. Past performance or backtested results are not indicative of future outcomes and should not be relied upon for live trading without thorough evaluation.
Trading in financial markets—especially options—involves significant risk. Both profits and losses are inherent to the trading process.
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com MarketAlgoBot.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso: leia nosso guia para scritps somente sob convite antes de solicitar acesso.
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com MarketAlgoBot.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso: leia nosso guia para scritps somente sob convite antes de solicitar acesso.