Candlestick Patterns mq5
- Indicators
-
Yaroslav Sukov
Кандидат физ-мат наук.
Программист.
Доцент кафедры теории вероятностей и мат. статистики.
Директор Учебно-научного полигона.
Учредитель Агентства путешествий Путевка.Ру
Учредитель студии звукозаписи FireStudio.
Учредитель загородного семейного клуба.
Директор базы отдыха. - Version: 1.20
- Activations: 5
Principle of Work
The Candlestick Patterns v1.11 indicator is a comprehensive tool for automatic recognition of 57 classic candlestick patterns on the MetaTrader 5 chart. The indicator scans each closed bar and checks it against one or more patterns from its database.
Pattern Detection Cascade
On each closed bar (shift = 1, i.e., the most recent completed bar), the indicator performs the following sequence:
- Pattern recognition — first checks three-candle and multi-candle patterns (as they are stronger), then single and two-candle patterns
- Strength filtering — patterns with strength below InpMinStrength are discarded
- Direction filtering — can show only bullish or only bearish patterns
- Volume filter — patterns with abnormally low volume are discarded
- Flat filter — patterns in a narrow range (low ATR) are discarded
- Trend context determination — current trend is classified (Early/Mature Bullish/Bearish or Range)
- Signal drawing — pattern arrow, entry arrow, text label
- Notification — alert fires only on the latest closed bar
Key Principle: No Repaint
All calculations are performed only on closed bars. The current (unclosed) bar is skipped — signals never repaint after appearing.
Chart Visualization
For each detected pattern, the indicator displays:
- Small arrow below/above the candle (Lime/Red, size 2) — pattern marker
- Large arrow on the candle (DarkGreen/Maroon, size 4) — entry arrow showing which candle to open the trade from (at the pattern candle's close price)
- Text label — pattern name in English + strength + trend context
- Indicator badge in corner — live information about indicator operation
