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.
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus MarketAlgoBot.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.
Penafian
Skrip jemputan sahaja
Hanya pengguna yang diluluskan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Ini selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi terus MarketAlgoBot.
TradingView tidak menyarankan pembayaran untuk atau menggunakan skrip kecuali anda benar-benar mempercayai penulisnya dan memahami bagaimana ia berfungsi. Anda juga boleh mendapatkan alternatif sumber terbuka lain yang percuma dalam skrip komuniti kami.
Arahan penulis
Amaran: sila baca panduan kami untuk skrip jemputan sahaja sebelum memohon akses.