OPEN-SOURCE SCRIPT
MYND Candlestick Pattern Reliability Learner v1.0

MYND Candlestick Pattern Reliability Learner [v1.0]
14 classic candlestick patterns, each with its own live, self-tracking win rate - so you know which ones are actually working on THIS symbol right now, not just which ones a textbook says should.
WHAT IT DOES
This indicator detects 14 classic candlestick patterns (7 bullish, 7 bearish: Engulfing, Hammer, Hanging Man, Inverted Hammer, Shooting Star, Harami, Morning/Evening Star, Piercing Line/Dark Cloud Cover, Three White Soldiers/Three Black Crows) from raw price action. But detecting patterns isn't the point - every other candlestick tool does that. The actual point is that each pattern gets its OWN rolling, forward-graded reliability score, and a pattern that's stopped working recently gets muted from live signals automatically, rather than every textbook pattern being treated as permanently trustworthy. Reliability genuinely drifts by symbol, timeframe, and market regime - this tool tracks that drift instead of ignoring it.
MULTI-TIMEFRAME CONFLUENCE
Up to 3 configurable higher timeframes are checked for the SAME pattern (the stronger read) or a DIFFERENT pattern that still agrees on direction (a softer but real confluence read) - both tracked and shown separately on the dashboard. An MTF Mode setting controls what that does: Off ignores it, Warn fires signals normally but flags a caution marker and alert when none of your higher timeframes confirm, and Gate suppresses signals entirely unless enough higher timeframes agree. Every higher-timeframe check uses that timeframe's most recently CLOSED bar only, never the still-forming one, to avoid repainting.
HOW IT WORKS
Each pattern gets its own rolling window of graded past occurrences - did price move favorably over your Evaluation Forward Bars after that specific pattern fired. A pattern with too few tracked occurrences gets a cold-start benefit of the doubt; past that, it only contributes to a live signal if its own reliability clears your threshold. This is the same rolling self-tracking-accuracy architecture already proven in MYND KNN and MYND PWEV, applied here to candlestick patterns instead of nearest-neighbor matching or external sources.
KEY FEATURES
A 19-row live dashboard showing every one of the 14 patterns' current reliability % and sample size side by side, plus aggregate bullish/bearish reliability roll-ups and full MTF agreement detail. Optional volume confirmation. Light/Dark theme presets plus a colorblind-safe signal color option. Full customization throughout, with tooltips on every setting that benefits from one.
HOW TO USE IT
Works out of the box with MTF Confluence pre-configured (1H and 4H enabled by default, adjust to fit your chart). The dashboard is the primary tool here - scan it to see which patterns are actually earning their keep on this specific symbol and timeframe right now, since that will differ from symbol to symbol and shift over time. Start in Warn mode to see how often your setups actually get higher-timeframe confirmation before deciding whether to switch to the stricter Gate mode.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Plain Doji is intentionally excluded - it signals indecision, not a directional bet, so it has no "did it work" outcome to grade the way the other 14 patterns do. Higher-timeframe pattern checks are not individually reliability-tracked (that would require duplicating the full rolling-accuracy system on every configured timeframe) - MTF simply confirms whether a genuine pattern formed there.
ALERTS
All 4 alerts (Bullish/Bearish Signal, MTF Disagreement Warning, and the ALL Signals combo) use TradingView's standard alertcondition() system - no special setup required.
This tool can only tell you how a pattern has performed recently on this symbol/timeframe - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results.
14 classic candlestick patterns, each with its own live, self-tracking win rate - so you know which ones are actually working on THIS symbol right now, not just which ones a textbook says should.
WHAT IT DOES
This indicator detects 14 classic candlestick patterns (7 bullish, 7 bearish: Engulfing, Hammer, Hanging Man, Inverted Hammer, Shooting Star, Harami, Morning/Evening Star, Piercing Line/Dark Cloud Cover, Three White Soldiers/Three Black Crows) from raw price action. But detecting patterns isn't the point - every other candlestick tool does that. The actual point is that each pattern gets its OWN rolling, forward-graded reliability score, and a pattern that's stopped working recently gets muted from live signals automatically, rather than every textbook pattern being treated as permanently trustworthy. Reliability genuinely drifts by symbol, timeframe, and market regime - this tool tracks that drift instead of ignoring it.
MULTI-TIMEFRAME CONFLUENCE
Up to 3 configurable higher timeframes are checked for the SAME pattern (the stronger read) or a DIFFERENT pattern that still agrees on direction (a softer but real confluence read) - both tracked and shown separately on the dashboard. An MTF Mode setting controls what that does: Off ignores it, Warn fires signals normally but flags a caution marker and alert when none of your higher timeframes confirm, and Gate suppresses signals entirely unless enough higher timeframes agree. Every higher-timeframe check uses that timeframe's most recently CLOSED bar only, never the still-forming one, to avoid repainting.
HOW IT WORKS
Each pattern gets its own rolling window of graded past occurrences - did price move favorably over your Evaluation Forward Bars after that specific pattern fired. A pattern with too few tracked occurrences gets a cold-start benefit of the doubt; past that, it only contributes to a live signal if its own reliability clears your threshold. This is the same rolling self-tracking-accuracy architecture already proven in MYND KNN and MYND PWEV, applied here to candlestick patterns instead of nearest-neighbor matching or external sources.
KEY FEATURES
A 19-row live dashboard showing every one of the 14 patterns' current reliability % and sample size side by side, plus aggregate bullish/bearish reliability roll-ups and full MTF agreement detail. Optional volume confirmation. Light/Dark theme presets plus a colorblind-safe signal color option. Full customization throughout, with tooltips on every setting that benefits from one.
HOW TO USE IT
Works out of the box with MTF Confluence pre-configured (1H and 4H enabled by default, adjust to fit your chart). The dashboard is the primary tool here - scan it to see which patterns are actually earning their keep on this specific symbol and timeframe right now, since that will differ from symbol to symbol and shift over time. Start in Warn mode to see how often your setups actually get higher-timeframe confirmation before deciding whether to switch to the stricter Gate mode.
WHAT THIS TOOL DELIBERATELY DOES NOT DO
Plain Doji is intentionally excluded - it signals indecision, not a directional bet, so it has no "did it work" outcome to grade the way the other 14 patterns do. Higher-timeframe pattern checks are not individually reliability-tracked (that would require duplicating the full rolling-accuracy system on every configured timeframe) - MTF simply confirms whether a genuine pattern formed there.
ALERTS
All 4 alerts (Bullish/Bearish Signal, MTF Disagreement Warning, and the ALL Signals combo) use TradingView's standard alertcondition() system - no special setup required.
This tool can only tell you how a pattern has performed recently on this symbol/timeframe - it is not a guarantee of future performance. This tool is provided for informational and educational purposes and does not constitute financial advice. Trading involves risk; past performance and historical patterns do not guarantee future results.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.