N Z Multi Candle Pattern Pullback Reversal Filter
- Göstergeler
- Sürüm: 1.0
- Etkinleştirmeler: 5
N Z Multi Candle Pattern Pullback Reversal Filter
1. Overview
- Pola MultiCandle MultiFilter is a custom technical indicator for MetaTrader 4 (MT4) built to detect structured multi-candle price action formations combined with a modular 15-indicator confluence suite and automated ATR target visualization.
- The indicator scans sequential candlestick structures across 4-candle, 5-candle, and 6-candle windows to identify trend-continuation pullback setups and momentum or breakout reversal setups on confirmed closed bars.
- Designed for discretionary traders seeking objective visual cues, the tool plots color-coded directional arrows on the main chart and projects dynamic Entry, Stop Loss (SL), and multi-tier Take Profit (TP1, TP2, TP3) reference levels scaled to current volatility.
- All signal calculations run strictly on confirmed closed candles (Bar 1 and historical bars), ensuring deterministic non-repainting behavior once a bar closes.
2. Operating Principle and Signal Methodology
- Dual-Engine Price Action Architecture:
- Mode 1 (Trend-Pullback Continuation Engine): Scans sequential candlestick structures across 4-bar, 5-bar, and 6-bar windows to detect directional impulse legs followed by a counter-trend pullback bar and a resuming confirmation bar.
- Mode 2 (Momentum and Breakout Reversal Engine): Evaluates multi-bar directional exhaustion sequences followed by a counter-directional breakout candle reclaiming prior structural price boundaries.
- Mode 3 (Combined Dual-Engine Mode): Runs both continuation pullback detection and exhaustion breakout reversal detection simultaneously, plotting distinct arrows for 4-Candle (4C), 5-Candle (5C), and 6-Candle (6C) formations.
- Candle Body Proportion Validation:
- In Trend-Pullback mode, optional proportional body checks compare relative body contraction and expansion across the impulse, pullback, and confirmation candles to filter weak price action without manual measurement.
- Modular 15-Filter Confluence Layer:
- Candidate patterns pass through an integrated 15-module technical filter framework before plotting on the chart.
- Each filter operates via an independent boolean toggle. When multiple filters are enabled simultaneously, strict logical AND confluence is enforced so signals appear only when every active module agrees on direction.
- All 15 filters default to false, allowing traders to inspect baseline price action formations first and progressively layer trend, momentum, volatility, or structural filters.
- Technical Mechanics of the 15 Confluence Modules:
- Filter 1 (RSI Cross): Confirms bullish momentum when RSI crosses upward above the oversold level, and bearish momentum when RSI crosses downward below the overbought level.
- Filter 2 (ADX Trend Strength): Requires the ADX main line to exceed the minimum threshold level to filter out low-momentum ranging markets.
- Filter 3 (Single Moving Average): Requires bar close above the reference Moving Average for bullish signals and below the Moving Average for bearish signals.
- Filter 4 (Ichimoku Senkou Span B): Validates macro cloud bias by requiring bar close above Senkou Span B for bullish setups and below Senkou Span B for bearish setups.
- Filter 5 (RSI 75 Macro Bias): Uses a 75-period RSI midline check, permitting bullish signals above 50.0 and bearish signals below 50.0.
- Filter 6 (Double Moving Average Alignment): Requires the fast Moving Average (MA A) to remain above the slow Moving Average (MA B) for bullish alignment, and below for bearish alignment.
- Filter 7 (Awesome Oscillator): Supports three combinable sub-checks: minimum positive or negative histogram amplitude, bar-over-bar histogram slope polarity, and zero-line directional alignment.
- Filter 8 (Parabolic SAR): Confirms directional trend continuation when bar close stays above Parabolic SAR dots for BUY and below Parabolic SAR dots for SELL.
- Filter 9 (Heiken Ashi Polarity): Computes internal smoothed Heiken Ashi open and close values, requiring bullish Heiken Ashi candles for BUY and bearish candles for SELL.
- Filter 10 (CCI Trend): Evaluates longer-period Commodity Channel Index polarity relative to the zero line (positive for BUY, negative for SELL).
- Filter 11 (CCI Overbought/Oversold): Confirms directional breakout momentum when CCI extends beyond configured upper or lower threshold levels.
- Filter 12 (Relative Vigor Index): Provides both a macro RVI zero-line bias filter and an RVI main-versus-signal line alignment filter.
- Filter 13 (MACD Histogram and Zero-Line): Validates bullish or bearish MACD histogram polarity (Main versus Signal) alongside an optional MACD main-line zero-axis filter.
- Filter 14 (Support/Resistance and Fibonacci Retracement): Checks whether price interacts with rolling high/low Support and Resistance buffer zones or dynamic swing Fibonacci retracement bands.
- Filter 15 (Wilder's ATR Supertrend): Computes an internal ATR-based Supertrend band, permitting BUY signals during uptrend states and SELL signals during downtrend states.
- Volatility-Scaled ATR Target Calculation:
- When a confirmed signal occurs on the most recent closed bar, the indicator reads Average True Range (ATR) at that signal bar and multiplies it by InpATRMultiplier to define a 1R volatility risk unit.
- For bullish signals, SL is projected 1R below the signal close, while TP1, TP2, and TP3 are projected at 1R, 2R, and 3R above entry; bearish signals mirror these projections symmetrically.
- Closed-Bar Evaluation and Non-Repainting Behavior:
- Historical bars compute chronologically and live signals evaluate exclusively on the most recently closed candle (shift 1).
- The live forming candle (shift 0) is excluded from signal generation and kept empty at all times, ensuring plotted arrows never shift, repaint, or disappear after candle close.
- Buy and Sell Signal Conditions:
- Bullish BUY Signal: Generated when a valid 4C, 5C, or 6C bullish pullback continuation or bullish reversal breakout formation completes at candle close and passes all active directional filters.
- Bearish SELL Signal: Generated when a valid 4C, 5C, or 6C bearish pullback continuation or bearish reversal breakout formation completes at candle close and passes all active directional filters.
- Trade Exit Reference: As an analytical chart indicator rather than an automated execution robot, trade exits are referenced visually via the projected ATR Stop Loss (1R) and tiered Take Profit levels (TP1 at 1R, TP2 at 2R, TP3 at 3R), or upon an opposing confirmed signal.
3. Key Features and Graphical Interface Guide
- Multi-Length Pattern Engine: Independent toggles for 4-Candle (4C), 5-Candle (5C), and 6-Candle (6C) price action formations.
- Integrated 15-Filter Confluence Suite: Built-in filtering via RSI Cross, ADX Trend Strength, Single Moving Average, Ichimoku Senkou Span B, Macro RSI 75, Double Moving Average Alignment, Awesome Oscillator, Parabolic SAR, Heiken Ashi Polarity, CCI Trend, CCI Overbought/Oversold, RVI Trend and Signal Cross, MACD Histogram and Zero-Line, Rolling Support/Resistance Zones, Swing Fibonacci Retracement Zones, and ATR Supertrend.
- Automated Volatility Target Lines and Chart Hygiene:
- Projects Entry, Stop Loss (1R), and three Risk-to-Reward Take Profit lines (1R, 2R, 3R) anchored to the latest confirmed signal using Average True Range (ATR).
- Automatically updates target coordinates when a newer confirmed signal forms and cleanly removes all indicator chart objects upon indicator removal or timeframe change.
- Graphical User Interface (GUI) Color Legend:
- Aqua Up Arrow (BUY 4C): Confirmed 4-candle bullish signal below candle low.
- Red Down Arrow (SELL 4C): Confirmed 4-candle bearish signal above candle high.
- DodgerBlue Up Arrow (BUY 5C): Confirmed 5-candle bullish signal below candle low.
- DarkOrange Down Arrow (SELL 5C): Confirmed 5-candle bearish signal above candle high.
- Gold Up Arrow (BUY 6C): Confirmed 6-candle bullish signal below candle low.
- Magenta Down Arrow (SELL 6C): Confirmed 6-candle bearish signal above candle high.
- Gold Solid Line (BUY / SELL Entry): Reference closing price of the latest confirmed signal bar.
- Red Dashed Line (SL): Volatility-based Stop Loss level at 1.0x risk distance.
- LimeGreen Dashed Line (TP1 1R): First profit target at 1:1 risk-to-reward distance.
- MediumSeaGreen Dashed Line (TP2 2R): Second profit target at 1:2 risk-to-reward distance.
- DodgerBlue Dashed Line (TP3 3R): Extended profit target at 1:3 risk-to-reward distance.
- Multi-Channel Alert System:
- Supports MT4 pop-up alerts, WAV audio playback, mobile push notifications via MetaQuotes ID, and Experts log output containing pattern type (4C, 5C, or 6C), symbol, timeframe, timestamp, and Entry, SL, and TP1-TP3 levels, protected by a bar-timestamp lock so each closed bar alerts once.
4. Operation Recommendations and Terminal Performance
- Supported Instruments: Compatible with major and minor Forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD), spot metals (XAUUSD), indices, and liquid CFDs. Adjust point-based inputs (ArrowOffset and SR_Zone_Points) to match instrument tick size on metals or indices.
- Recommended Timeframes: Suitable across intraday and swing timeframes including M15, M30, H1, and H4. Lower timeframes (M1 and M5) benefit from enabling trend filters such as Double MA, Ichimoku Senkou Span B, or Supertrend to filter intraday noise.
- Practical Filter Configuration Workflows:
- Baseline Structure Inspection: Keep all 15 filters set to false to observe raw 4C, 5C, and 6C pullback and breakout patterns across historical bars.
- Trend-Continuation Confluence: Enable Double MA Alignment or Supertrend alongside ADX Trend Strength to restrict pullback signals to established directional trends.
- Structural Zone Confluence: Combine Support/Resistance proximity or Fibonacci retracement filtering with Trend-Pullback mode to focus on reactions near swing levels.
- Account Environment: Works on standard and ECN MT4 accounts. Low-spread ECN execution helps preserve risk-to-reward geometry when trading lower-timeframe ATR target projections.
- CPU and Memory Efficiency: Uses incremental bar calculation (rates_total - prev_calculated) so historical data computes once on load and only newly closed bars update on live ticks. Internal Heiken Ashi and Supertrend buffers allocate only when enabled. Avoid opening excessive simultaneous charts with all 15 filters active on low-specification hardware.
5. Input Parameters Documentation
- Group A: Strategy and Entry Pattern Settings
- InpHeaderEntry1 (Default: "=== [ENTRY] Strategy & Method Selection ==="): Header for strategy selection.
- InpEntryMethod (Default: ENTRY_METHOD_ALL): Pattern engine: 0 (ENTRY_METHOD_POLA_N) Trend-Pullback, 1 (ENTRY_METHOD_REVERSAL_BO) Momentum/Breakout Reversal, or 2 (ENTRY_METHOD_ALL) combined mode.
- InpHeaderEntry2 (Default: "=== [ENTRY] Signal Activation ==="): Header for pattern toggles.
- UseSignal1 (Default: true): Toggles 4-Candle (4C) pattern detection.
- UseSignal2 (Default: true): Toggles 5-Candle (5C) pattern detection.
- UseSignal3 (Default: true): Toggles 6-Candle (6C) pattern detection.
- InpHeaderEntry3 (Default: "=== [ENTRY] Candle Body Validation (Pola N) ==="): Header for body validation.
- UseBodyFilter1 (Default: true): Toggles pullback body contraction check against preceding impulse bar.
- UseBodyFilter2 (Default: true): Toggles confirmation body expansion check against pullback bar.
- Group B: ATR Volatility and Target Level Settings (SL / TP)
- InpHeaderTarget (Default: "=== [TARGET] ATR & Target Levels (SL/TP) ==="): Header for target lines.
- InpShowTargetLines (Default: true): Toggles Entry, SL, TP1, TP2, and TP3 lines for latest signal.
- InpATRPeriod (Default: 7, bars): Lookback period in bars for ATR volatility calculation.
- InpATRMultiplier (Default: 1.5, factor): Multiplier applied to ATR to set 1R Stop Loss distance.
- InpLineBarsRight (Default: 1, bars): Bars extending target lines right of live bar (Bar 0).
- InpFontSize (Default: 8, points): Font size in points for Entry, SL, and TP labels.
- InpColorEntry (Default: clrGold): Color of Entry line and label.
- InpColorSL (Default: clrRed): Color of Stop Loss (1R) line and label.
- InpColorTP1 (Default: clrLimeGreen): Color of Take Profit 1 (1R) line and label.
- InpColorTP2 (Default: clrMediumSeaGreen): Color of Take Profit 2 (2R) line and label.
- InpColorTP3 (Default: clrDodgerBlue): Color of Take Profit 3 (3R) line and label.
- InpTargetLineStyle (Default: STYLE_DASH): Line style for SL, TP1, TP2, and TP3 lines.
- InpLineWidth (Default: 1, pixels): Line thickness in pixels for target lines.
- Group C: Visual Arrows and Notification Settings
- InpHeaderVisual (Default: "=== [VISUAL] Arrow & Visual Settings ==="): Header for arrow styling.
- ArrowOffset (Default: 100, points): Vertical offset in broker points from candle highs/lows.
- BuyColor1 (Default: clrAqua): Arrow color for 4C bullish BUY signals.
- SellColor1 (Default: clrRed): Arrow color for 4C bearish SELL signals.
- BuyColor2 (Default: clrDodgerBlue): Arrow color for 5C bullish BUY signals.
- SellColor2 (Default: clrDarkOrange): Arrow color for 5C bearish SELL signals.
- BuyColor3 (Default: clrGold): Arrow color for 6C bullish BUY signals.
- SellColor3 (Default: clrMagenta): Arrow color for 6C bearish SELL signals.
- InpHeaderAlert (Default: "=== [ALERT] Notifications & Audio ==="): Header for alerts.
- EnableAlert (Default: true): Toggles MT4 pop-up alerts on closed-bar signals.
- EnableSound (Default: true): Toggles WAV audio alert playback.
- EnablePush (Default: false): Toggles mobile push notifications via MetaQuotes ID.
- EnableComment (Default: true): Toggles printing signal and target coordinates to Experts log.
- SoundFile (Default: "alert.wav"): Audio filename in MetaTrader Sounds folder.
- Group D: Filter 1 - RSI Cross Filter
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ==="): Header for RSI crossover filter.
- Use_RSI_Cross_Filter (Default: false): Toggles RSI oversold/overbought crossover filter.
- RSI_Length (Default: 14, bars): Averaging period in bars for RSI crossover.
- RSI_Price_Source (Default: PRICE_CLOSE): Applied price series for RSI.
- RSI_Oversold (Default: 30.0, level): Lower RSI threshold crossed upward for BUY confirmation.
- RSI_Overbought (Default: 70.0, level): Upper RSI threshold crossed downward for SELL confirmation.
- Group E: Filter 2 - ADX Trend Strength Filter
- InpFilter2 (Default: "=== 2. ADX FILTER ==="): Header for ADX filter.
- Use_ADX_Filter (Default: false): Toggles ADX minimum trend strength filter.
- ADX_Period (Default: 10, bars): Lookback period in bars for ADX.
- ADX_Min_Level (Default: 20.0, level): Minimum ADX main-line value required for signals.
- Group F: Filter 3 - Single Moving Average Filter
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ==="): Header for single MA filter.
- Use_MA_Filter (Default: false): Toggles price-versus-MA filter (close above MA for BUY, below for SELL).
- MA_Period (Default: 50, bars): Averaging period in bars for Moving Average.
- MA_Method (Default: MODE_SMA): MA smoothing algorithm (SMA, EMA, SMMA, or LWMA).
- MA_Shift (Default: 0, bars): Horizontal bar shift offset for Moving Average.
- Group G: Filter 4 - Ichimoku Senkou Span B Filter
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ==="): Header for Ichimoku filter.
- Use_Ichimoku_Filter (Default: false): Toggles closing price filtering against Ichimoku Senkou Span B.
- Ichimoku_Tenkan (Default: 9, bars): Tenkan-sen period in bars.
- Ichimoku_Kijun (Default: 26, bars): Kijun-sen period in bars.
- Ichimoku_SenkouB (Default: 52, bars): Senkou Span B period in bars.
- Group H: Filter 5 - RSI 75 Macro Bias Filter
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ==="): Header for macro RSI filter.
- Use_RSI75_Filter (Default: false): Toggles macro RSI midline filter (above 50.0 for BUY, below 50.0 for SELL).
- RSI_Filter_Period (Default: 75, bars): Lookback period in bars for macro RSI midline.
- Group I: Filter 6 - Double Moving Average Alignment Filter
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ==="): Header for dual MA filter.
- Use_DoubleMA_Filter (Default: false): Toggles dual MA alignment (Fast MA A above Slow MA B for BUY, below for SELL).
- MA_A_Period (Default: 30, bars): Averaging period for Fast MA (MA A).
- MA_A_Method (Default: MODE_EMA): Smoothing method for Fast MA (MA A).
- MA_A_Applied (Default: PRICE_CLOSE): Applied price for Fast MA (MA A).
- MA_A_Shift (Default: 0, bars): Horizontal bar shift for Fast MA (MA A).
- MA_B_Period (Default: 140, bars): Averaging period for Slow MA (MA B).
- MA_B_Method (Default: MODE_EMA): Smoothing method for Slow MA (MA B).
- MA_B_Applied (Default: PRICE_CLOSE): Applied price for Slow MA (MA B).
- MA_B_Shift (Default: 0, bars): Horizontal bar shift for Slow MA (MA B).
- Group J: Filter 7 - Awesome Oscillator (AO) Filter
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ==="): Header for AO filter.
- Use_AO_Filter (Default: false): Primary toggle enabling Awesome Oscillator validation.
- Use_AO_Volume_Filter (Default: false): Toggles minimum AO histogram amplitude check.
- AO_Buy_Min (Default: 4.0, AO units): Minimum positive AO value for BUY when Use_AO_Volume_Filter is active.
- AO_Sell_Max (Default: -4.0, AO units): Maximum negative AO value for SELL when Use_AO_Volume_Filter is active.
- Use_AO_Color_Filter (Default: false): Requires rising AO bars for BUY and falling AO bars for SELL.
- Use_AO_Zero_Filter (Default: false): Requires AO above 0.0 rising for BUY, or below 0.0 falling for SELL.
- Group K: Filter 8 - Parabolic SAR Filter
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ==="): Header for Parabolic SAR filter.
- Use_SAR_Filter (Default: false): Toggles Parabolic SAR filter (close above SAR for BUY, below for SELL).
- SAR_Step (Default: 0.02, step): Acceleration factor step increment for Parabolic SAR.
- SAR_Maximum (Default: 0.2, max): Maximum acceleration factor limit for Parabolic SAR.
- Group L: Filter 9 - Heiken Ashi Polarity Filter
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ==="): Header for Heiken Ashi filter.
- Use_HeikenAshi_Filter (Default: false): Toggles internal Heiken Ashi polarity filter (bullish candle for BUY, bearish for SELL).
- Group M: Filter 10 - CCI Trend Filter
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ==="): Header for CCI trend filter.
- Use_CCI_Filter (Default: false): Toggles CCI zero-line filter (CCI above 0.0 for BUY, below 0.0 for SELL).
- CCI_Period (Default: 50, bars): Lookback period in bars for CCI trend calculation.
- CCI_Applied (Default: PRICE_CLOSE): Applied price series for CCI trend calculation.
- Group N: Filter 11 - CCI Overbought and Oversold Filter
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ==="): Header for CCI OB/OS filter.
- Use_CCI_OBOS_Filter (Default: false): Toggles CCI momentum check beyond overbought/oversold levels.
- CCI_OBOS_Period (Default: 14, bars): Lookback period in bars for CCI OB/OS calculation.
- CCI_OBOS_Applied (Default: PRICE_CLOSE): Applied price series for CCI OB/OS calculation.
- CCI_Overbought (Default: 100.0, level): Upper CCI threshold for bullish confirmation.
- CCI_Oversold (Default: -100.0, level): Lower CCI threshold for bearish confirmation.
- Group O: Filter 12 - Relative Vigor Index (RVI) Filters
- InpFilter12 (Default: "=== 12. RVI FILTERS ==="): Header for RVI filters.
- Use_RVI_Filter (Default: false): Toggles macro RVI zero-line filter (above 0.0 for BUY, below 0.0 for SELL).
- RVI_Period (Default: 75, bars): Lookback period in bars for macro RVI calculation.
- Use_RVI_Signal_Filter (Default: false): Toggles RVI main-versus-signal filter (Main above Signal for BUY, below for SELL).
- RVI_Signal_Period (Default: 20, bars): Lookback period in bars for RVI signal crossover.
- Group P: Filter 13 - MACD Histogram and Zero-Line Filters
- InpFilter13 (Default: "=== 13. MACD FILTERS ==="): Header for MACD filters.
- Use_MACD_Filter (Default: false): Toggles MACD histogram polarity filter (Main above Signal for BUY, below for SELL).
- MACD_FastEMA (Default: 12, bars): Fast EMA period in bars for MACD.
- MACD_SlowEMA (Default: 26, bars): Slow EMA period in bars for MACD.
- MACD_SignalSMA (Default: 9, bars): Signal line SMA period in bars for MACD.
- MACD_Applied (Default: PRICE_CLOSE): Applied price series for MACD.
- Use_MACD_Zero_Filter (Default: false): Toggles MACD main-line zero-axis filter (Main above 0.0 for BUY, below 0.0 for SELL).
- Group Q: Filter 14 - Support/Resistance and Fibonacci Retracement Filters
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ==="): Header for structural zone filters.
- Use_SR_Filter (Default: false): Toggles rolling Support/Resistance proximity validation.
- SR_Period (Default: 50, bars): Lookback window in bars for rolling Support lows and Resistance highs.
- SR_Zone_Points (Default: 80, points): Proximity buffer in points around Support and Resistance levels.
- Use_Fib_Filter (Default: false): Toggles dynamic swing Fibonacci retracement zone validation.
- Fib_Level_1 (Default: 0.382, ratio): First Fibonacci retracement ratio defining pullback zone.
- Fib_Level_2 (Default: 0.618, ratio): Second Fibonacci retracement ratio defining pullback zone.
- ZigZag_Depth (Default: 12, bars): Minimum bar depth to identify swing high and low anchor points.
- ZigZag_Deviation (Default: 5, points): Minimum price deviation in points between consecutive swings.
- ZigZag_Backstep (Default: 3, bars): Minimum bar separation between adjacent swing points.
- Group R: Filter 15 - Supertrend Filter
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ==="): Header for ATR Supertrend filter.
- Use_Supertrend_Filter (Default: false): Toggles Wilder's ATR Supertrend directional alignment filter.
- ST_AtrPeriod (Default: 10, bars): Wilder's ATR lookback period in bars for Supertrend.
- ST_Factor (Default: 3.0, factor): ATR multiplier controlling Supertrend band width and sensitivity.
6. Risk Disclaimer
- Trading foreign exchange, commodities, indices, and other leveraged financial instruments carries substantial risk and may not be suitable for all investors.
- Past performance, historical chart signals, and simulated backtest observations do not guarantee future trading results.
- This indicator is an analytical technical analysis software tool designed to assist traders in identifying candlestick formations and indicator confluence; it does not constitute financial or investment advice and does not guarantee financial profit.
- Always test the indicator thoroughly on a MetaTrader 4 demo account across your chosen symbols and timeframes to understand its operational behavior before considering live market deployment.
