Pro BB Bollinger Bands Breakout Signal MultiFilter
- 지표
- 버전: 1.0
- 활성화: 5
Pro BB Bollinger Bands Breakout Signal MultiFilter
Overview
Bollinger Band Signal MultiFilter NR is a technical chart indicator built for MetaTrader 4 that combines a Bollinger Bands breakout detection engine with a modular 15-filter confluence framework and automated Average True Range (ATR) risk-reward level plotting. Designed as an objective analytical and visual decision-support tool, this indicator monitors price expansion beyond the upper and lower Bollinger Bands, validates each breakout candidate against user-selected trend, momentum, volatility, and price-structure filters, and plots directional BUY/SELL signal arrows directly on the main price window. Upon signal confirmation, the indicator automatically projects dynamic Entry, Stop Loss (SL), and three Take Profit (TP1, TP2, TP3) horizontal reference lines based on a 1:1, 1:2, and 1:3 Risk-to-Reward (RR) framework. All calculations strictly evaluate closed candlesticks to maintain historical signal integrity and prevent signal shifting on live unclosed bars.
Operating Principle
- Core Breakout Detection: The indicator plots three standard Bollinger Bands lines (Upper Band, Middle Band, and Lower Band) calculated from user-defined period, deviation multiplier, and applied price settings. Rather than generating continuous signals on every bar outside the bands, the engine identifies specific breakout candles that open inside or near the band boundary and close decisively beyond the outer band envelope.
- Bullish (BUY) Signal Logic: A bullish breakout candidate is detected when a closed candlestick finishes as a bullish candle (close price above open price), closes strictly above the Upper Band, while its wick or low price interacts with or remains at or below the Upper Band level. Once this breakout structure occurs on a closed bar, the candidate is passed through all enabled modules inside the MultiFilter suite. If every active filter confirms bullish alignment, an upward BUY arrow is plotted below the candle low.
- Bearish (SELL) Signal Logic: A bearish breakout candidate is detected when a closed candlestick finishes as a bearish candle (close price below open price), closes strictly below the Lower Band, while its wick or high price interacts with or remains at or above the Lower Band level. The candidate is then evaluated by all enabled modules inside the MultiFilter suite. If every active filter confirms bearish alignment, a downward SELL arrow is plotted above the candle high.
- Modular Multi-Confluence Validation: The integrated filter engine operates on an AND-gate architecture. By default, all 15 supplementary filters are disabled so traders can observe raw Bollinger Bands breakouts or selectively activate individual filters to match specific market regimes (trending, breakout continuation, or pullback confirmation). When multiple filters are enabled simultaneously, a signal arrow is plotted only when every active filter satisfies its directional condition on the exact same closed bar.
- Non-Repainting Behavior and Closed-Bar Evaluation: The indicator enforces strict closed-bar execution (Bar 1 evaluation). Live forming bars (Bar 0) are explicitly excluded from arrow buffer assignment so signals never flicker, disappear, or relocate while a candle is still developing. Once a candle closes and an arrow is printed on the chart, that historical signal remains fixed in position across chart refreshes and timeframe switches.
- Dynamic ATR Risk and Target Projection: When a confirmed BUY or SELL arrow is generated, the indicator reads the ATR value at the signal candle and multiplies it by the user-configured ATR multiplier to define the initial risk distance (1R). An Entry line is drawn at the signal candle close price, a Stop Loss line is placed at 1R against the trade direction, and three progressive Take Profit levels (TP1 at 1R, TP2 at 2R, and TP3 at 3R) are projected forward to assist with structured trade management.
Key Features
- Non-repainting closed-bar signal generation that eliminates premature alerts during live candle formation.
- Built-in Upper, Middle, and Lower Bollinger Bands visualization directly on the main chart window with customizable line colors and styles.
- Integrated 15-filter technical confluence suite covering trend direction, trend strength, momentum oscillators, volatility bands, candlestick smoothing, and swing structure.
- Automated on-chart horizontal projection lines and price labels for Entry, Stop Loss (SL), TP1 (1R), TP2 (2R), and TP3 (3R) calculated dynamically via ATR.
- Automatic chart object cleanup that updates target lines exclusively for the most recent confirmed signal and removes all graphical objects cleanly upon indicator removal.
- Multi-channel real-time alert system supporting MetaTrader pop-up alerts, customizable WAV sound files for BUY and SELL events, mobile push notifications via MetaQuotes ID, and Experts tab log printing.
- Optimized buffer management designed to process historical bars efficiently without freezing the MetaTrader 4 terminal.
- Complete flexibility to customize periods, deviations, filter thresholds, arrow spacing, line widths, and color schemes.
Operation and Setup Recommendations
- Supported Instruments: Suitable for major and minor Forex currency pairs (such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD), precious metals (such as XAUUSD), indices, and liquid CFD instruments. Because breakout behavior varies by asset volatility, traders should test spread characteristics and adjust the Bollinger Bands deviation and ATR multiplier per symbol.
- Recommended Timeframes: Compatible with all standard MetaTrader 4 timeframes. For intraday and day trading setups, M15, M30, and H1 offer balanced signal frequency and noise reduction. For swing trading setups, H4 and D1 provide broader structural breakouts. Lower timeframes (M1 and M5) can be used during high-liquidity sessions when paired with trend and momentum filters.
- Broker and Account Environment: Compatible with both Hedging and Netting account types on MetaTrader 4. Standard or ECN/Raw spread accounts with reliable historical bar data (minimum 200 bars loaded on chart) are recommended so all lookback periods stabilize accurately upon attachment.
- Computational Performance Note: Enabling numerous complex filters (such as Supertrend, Heiken Ashi, Support/Resistance, and Fibonacci ZigZag calculations) simultaneously across a large number of open charts increases CPU utilization during initial history loading. Keep only necessary charts open and activate only the specific filters required by your trading plan.
- Alert Configuration Note: To receive mobile push notifications, ensure your MetaQuotes ID is properly configured in MetaTrader 4 under Tools -> Options -> Notifications before setting InpPush to true. For custom audio alerts, ensure the specified .wav files exist inside the terminal Sounds directory.
Graphical User Interface (GUI) Elements
- Upper and Lower Bollinger Bands (Default: Red Solid Lines): Visualizes the outer volatility envelope used to detect candlestick breakout closes.
- Middle Bollinger Band (Default: Red Dotted Line): Visualizes the central moving average baseline of the Bollinger Bands channel.
- BUY Signal Arrow (Default: Aqua Upward Arrow, Wingdings 233): Plotted below the signal candlestick low at a configurable point offset when a bullish breakout passes all active filters.
- SELL Signal Arrow (Default: Red Downward Arrow, Wingdings 234): Plotted above the signal candlestick high at a configurable point offset when a bearish breakout passes all active filters.
- Entry Line and Label (Default: Gold Solid Line): Marks the exact closing price of the confirmed signal candlestick where the setup is triggered.
- Stop Loss Line and Label (Default: Red Dashed Line): Marks the calculated invalidation level located at 1.0x ATR risk distance from the Entry price.
- TP1 (1R), TP2 (2R), and TP3 (3R) Lines and Labels (Default: Lime Green, Medium Sea Green, and Dodger Blue Dashed Lines): Marks the three progressive reward targets scaled as integer multiples of the initial ATR risk distance.
Input Parameters Documentation
Group 1: Bollinger Bands Core Entry Settings
- InpGroup1 (Default: "=== Bollinger Bands Core Entry Settings ==="): Section header label organizing core Bollinger Bands calculation parameters in the Inputs tab.
- InpPeriod (Default: 20): Number of historical bars used to calculate the Bollinger Bands moving average and standard deviation.
- InpDeviation (Default: 0.5): Standard deviation multiplier determining the width between the Middle Band and the Upper/Lower Bands.
- InpPrice (Default: PRICE_CLOSE): Applied candlestick price series (Close, Open, High, Low, Median, Typical, or Weighted) used in Bollinger Bands computation.
- InpBandColor (Default: clrRed): Display color applied to the Upper, Middle, and Lower Bollinger Bands lines on the chart.
Group 2: Signal Visual Settings
- InpGroup2 (Default: "=== Signal Visual Settings ==="): Section header label organizing directional arrow appearance settings.
- InpBuyColor (Default: clrAqua): Display color for upward BUY signal arrows plotted beneath bullish breakout candles.
- InpSellColor (Default: clrRed): Display color for downward SELL signal arrows plotted above bearish breakout candles.
- InpArrowShift (Default: 30): Vertical spacing distance in broker points between the candlestick High/Low and the plotted signal arrow.
Group 3: Alerts and Notifications
- InpGroup3 (Default: "=== Alerts & Notifications ==="): Section header label organizing real-time alert delivery options.
- InpAlert (Default: true): Enables or disables the standard MetaTrader pop-up alert window when a new signal closes on Bar 1.
- InpSound (Default: true): Enables or disables audible WAV sound playback upon signal confirmation.
- InpPush (Default: false): Enables or disables sending push notifications to the MetaTrader mobile app via MetaQuotes ID.
- InpPrintLog (Default: true): Enables or disables printing detailed signal timestamps, symbols, timeframes, and directions to the Experts terminal log.
- InpBuySound (Default: "ok.wav"): Filename of the audio file located in the terminal Sounds folder played when a BUY signal triggers.
- InpSellSound (Default: "timeout.wav"): Filename of the audio file located in the terminal Sounds folder played when a SELL signal triggers.
Group 4: ATR and Target Levels (SL/TP)
- InpGroup4 (Default: "=== ATR & Target Levels (SL/TP) ==="): Section header label organizing ATR risk calculation and target line visualization.
- InpShowTargets (Default: true): Enables or disables drawing the Entry, SL, TP1, TP2, and TP3 horizontal lines and price labels for the latest confirmed signal.
- InpATRPeriod (Default: 7): Lookback period in bars used to calculate the Average True Range (ATR) volatility value at the signal candle.
- InpATRMultiplier (Default: 1.5): Multiplier applied to the ATR value to establish the Stop Loss distance (1R) and proportional Take Profit multiples.
- InpLineExtendBars (Default: 1): Number of future bars to the right of the current live candle (Bar 0) to extend target lines and text labels.
- InpFontSize (Default: 8): Font size in points for the Entry, SL, TP1, TP2, and TP3 text labels rendered on the chart.
- InpColorEntry (Default: clrGold): Line and label color for the confirmed signal Entry level.
- InpColorSL (Default: clrRed): Line and label color for the ATR-based Stop Loss level.
- InpColorTP1 (Default: clrLimeGreen): Line and label color for the first Take Profit target (1:1 Risk-to-Reward).
- InpColorTP2 (Default: clrMediumSeaGreen): Line and label color for the second Take Profit target (1:2 Risk-to-Reward).
- InpColorTP3 (Default: clrDodgerBlue): Line and label color for the third Take Profit target (1:3 Risk-to-Reward).
- InpTargetStyle (Default: STYLE_DASH): Line drawing style (Solid, Dash, Dot, DashDot, or DashDotDot) applied to SL, TP1, TP2, and TP3 lines.
- InpLineWidth (Default: 1): Pixel thickness of the SL and TP target lines (Entry line automatically renders at InpLineWidth + 1).
Filter Module 1: RSI Cross Filter
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ==="): Section header label for the Relative Strength Index level-crossover filter.
- Use_RSI_Cross_Filter (Default: false): Enables or disables requiring RSI to cross out of oversold territory for BUY signals or out of overbought territory for SELL signals.
- RSI_Length (Default: 14): Lookback period in bars for the RSI crossover calculation.
- RSI_Price_Source (Default: PRICE_CLOSE): Applied price series used to compute RSI values.
- RSI_Oversold (Default: 30.0): Lower threshold level that RSI must cross upward from to validate a BUY signal.
- RSI_Overbought (Default: 70.0): Upper threshold level that RSI must cross downward from to validate a SELL signal.
Filter Module 2: ADX Trend Strength Filter
- InpFilter2 (Default: "=== 2. ADX FILTER ==="): Section header label for the Average Directional Index trend-strength filter.
- Use_ADX_Filter (Default: false): Enables or disables requiring the main ADX line to exceed a minimum threshold to filter out low-momentum ranging markets.
- ADX_Period (Default: 10): Lookback period in bars for the ADX calculation.
- ADX_Min_Level (Default: 20.0): Minimum ADX main-line value required to allow either BUY or SELL signal confirmation.
Filter Module 3: Single Moving Average Filter
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ==="): Section header label for the single Moving Average directional trend filter.
- Use_MA_Filter (Default: false): Enables or disables requiring the signal candle close price to sit above the Moving Average for BUY or below it for SELL.
- MA_Period (Default: 50): Lookback period in bars for the single Moving Average line.
- MA_Method (Default: MODE_SMA): Smoothing algorithm (Simple, Exponential, Smoothed, or Linear Weighted) for the Moving Average.
- MA_Shift (Default: 0): Horizontal shift in bars applied to the Moving Average calculation.
Filter Module 4: Ichimoku Senkou Span B Filter
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ==="): Section header label for the Ichimoku Kinko Hyo baseline cloud filter.
- Use_Ichimoku_Filter (Default: false): Enables or disables requiring the signal candle close price to be above Senkou Span B for BUY or below Senkou Span B for SELL.
- Ichimoku_Tenkan (Default: 9): Lookback period in bars for the Tenkan-sen (Conversion Line).
- Ichimoku_Kijun (Default: 26): Lookback period in bars for the Kijun-sen (Base Line).
- Ichimoku_SenkouB (Default: 52): Lookback period in bars for calculating the Senkou Span B cloud boundary.
Filter Module 5: Long-Period RSI Midline Filter
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ==="): Section header label for the long-period RSI 50-level trend bias filter.
- Use_RSI75_Filter (Default: false): Enables or disables requiring a long-period RSI to remain above the 50.0 midline for BUY signals or below 50.0 for SELL signals.
- RSI_Filter_Period (Default: 75): Lookback period in bars for the macro RSI trend filter.
Filter Module 6: Double Moving Average Crossover Alignment Filter
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ==="): Section header label for the dual Moving Average trend alignment filter.
- Use_DoubleMA_Filter (Default: false): Enables or disables requiring Fast MA (MA A) to be above Slow MA (MA B) for BUY signals and below Slow MA for SELL signals.
- MA_A_Period (Default: 30): Lookback period in bars for the faster Moving Average (MA A).
- MA_A_Method (Default: MODE_EMA): Smoothing method applied to MA A.
- MA_A_Applied (Default: PRICE_CLOSE): Applied price source used for MA A.
- MA_A_Shift (Default: 0): Horizontal bar shift applied to MA A.
- MA_B_Period (Default: 140): Lookback period in bars for the slower baseline Moving Average (MA B).
- MA_B_Method (Default: MODE_EMA): Smoothing method applied to MA B.
- MA_B_Applied (Default: PRICE_CLOSE): Applied price source used for MA B.
- MA_B_Shift (Default: 0): Horizontal bar shift applied to MA B.
Filter Module 7: Awesome Oscillator (AO) Filter
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ==="): Section header label for the Bill Williams Awesome Oscillator momentum sub-filters.
- Use_AO_Filter (Default: false): Master switch enabling or disabling the Awesome Oscillator filter suite.
- Use_AO_Volume_Filter (Default: false): Sub-filter requiring AO histogram amplitude to exceed minimum threshold levels (AO_Buy_Min for BUY, AO_Sell_Max for SELL).
- AO_Buy_Min (Default: 4.0): Minimum positive AO value required when Use_AO_Volume_Filter is active for BUY setups.
- AO_Sell_Max (Default: -4.0): Maximum negative AO value required when Use_AO_Volume_Filter is active for SELL setups.
- Use_AO_Color_Filter (Default: false): Sub-filter requiring rising AO momentum (current bar greater than previous bar) for BUY and falling AO momentum for SELL.
- Use_AO_Zero_Filter (Default: false): Sub-filter requiring AO to be both rising and above the zero line for BUY, or falling and below the zero line for SELL.
Filter Module 8: Parabolic SAR Filter
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ==="): Section header label for the Parabolic Stop and Reverse trailing trend filter.
- Use_SAR_Filter (Default: false): Enables or disables requiring price close to sit above the Parabolic SAR dot for BUY signals or below the dot for SELL signals.
- SAR_Step (Default: 0.02): Acceleration factor increment step used in Parabolic SAR calculation.
- SAR_Maximum (Default: 0.2): Maximum acceleration factor cap used in Parabolic SAR calculation.
Filter Module 9: Heiken Ashi Candlestick Filter
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ==="): Section header label for the smoothed Heiken Ashi candle polarity filter.
- Use_HeikenAshi_Filter (Default: false): Enables or disables requiring a bullish Heiken Ashi candle (HA Close > HA Open) for BUY signals and a bearish Heiken Ashi candle (HA Close < HA Open) for SELL signals.
Filter Module 10: Commodity Channel Index (CCI) Trend Filter
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ==="): Section header label for the CCI zero-line trend bias filter.
- Use_CCI_Filter (Default: false): Enables or disables requiring CCI to read strictly above 0.0 for BUY signals and strictly below 0.0 for SELL signals.
- CCI_Period (Default: 50): Lookback period in bars for the CCI zero-line trend calculation.
- CCI_Applied (Default: PRICE_CLOSE): Applied price source used for the CCI trend calculation.
Filter Module 11: CCI Overbought and Oversold Momentum Filter
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ==="): Section header label for the CCI extreme momentum expansion filter.
- Use_CCI_OBOS_Filter (Default: false): Enables or disables requiring CCI to break above the overbought threshold for bullish breakout momentum or below the oversold threshold for bearish momentum.
- CCI_OBOS_Period (Default: 14): Lookback period in bars for the short-term CCI momentum filter.
- CCI_OBOS_Applied (Default: PRICE_CLOSE): Applied price source used for the short-term CCI calculation.
- CCI_Overbought (Default: 100.0): Upper CCI threshold required for BUY breakout momentum confirmation.
- CCI_Oversold (Default: -100.0): Lower CCI threshold required for SELL breakout momentum confirmation.
Filter Module 12: Relative Vigor Index (RVI) Filters
- InpFilter12 (Default: "=== 12. RVI FILTERS ==="): Section header label for the RVI zero-line and signal-line filters.
- Use_RVI_Filter (Default: false): Enables or disables requiring the RVI main line to be above 0.0 for BUY signals and below 0.0 for SELL signals.
- RVI_Period (Default: 75): Lookback period in bars for the RVI zero-line trend filter.
- Use_RVI_Signal_Filter (Default: false): Enables or disables requiring the RVI main line to sit above its signal line for BUY and below its signal line for SELL.
- RVI_Signal_Period (Default: 20): Lookback period in bars for the RVI main-versus-signal line comparison.
Filter Module 13: MACD Histogram and Zero-Line Filters
- InpFilter13 (Default: "=== 13. MACD FILTERS ==="): Section header label for the Moving Average Convergence Divergence filters.
- Use_MACD_Filter (Default: false): Enables or disables requiring positive MACD histogram momentum (Main line above Signal line) for BUY and negative histogram momentum for SELL.
- MACD_FastEMA (Default: 12): Lookback period in bars for the fast Exponential Moving Average in MACD.
- MACD_SlowEMA (Default: 26): Lookback period in bars for the slow Exponential Moving Average in MACD.
- MACD_SignalSMA (Default: 9): Lookback period in bars for the MACD signal line Simple Moving Average.
- MACD_Applied (Default: PRICE_CLOSE): Applied price source used for MACD calculation.
- Use_MACD_Zero_Filter (Default: false): Enables or disables requiring the MACD main line to be strictly above the 0.0 baseline for BUY and below 0.0 for SELL.
Filter Module 14: Support/Resistance and Fibonacci Retracement Filters
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ==="): Section header label for structural price-action proximity filters.
- Use_SR_Filter (Default: false): Enables or disables requiring the signal candle to interact with recent swing Support zones for BUY or swing Resistance zones for SELL.
- SR_Period (Default: 50): Lookback window in bars used to identify recent Support lows and Resistance highs.
- SR_Zone_Points (Default: 80): Tolerance buffer in broker points around detected Support and Resistance levels defining an active reaction zone.
- Use_Fib_Filter (Default: false): Enables or disables requiring the signal candle range to intersect the Fibonacci retracement zone between Fib_Level_1 and Fib_Level_2 derived from recent ZigZag swings.
- Fib_Level_1 (Default: 0.382): First Fibonacci retracement ratio boundary (default 38.2%).
- Fib_Level_2 (Default: 0.618): Second Fibonacci retracement ratio boundary (default 61.8%).
- ZigZag_Depth (Default: 12): Minimum number of bars required between swing highs and swing lows in the internal swing detector.
- ZigZag_Deviation (Default: 5): Minimum price change in points required to establish a valid swing extreme.
- ZigZag_Backstep (Default: 3): Minimum bar separation required between consecutive swing pivot points.
Filter Module 15: Supertrend Filter
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ==="): Section header label for the ATR-based Supertrend directional regime filter.
- Use_Supertrend_Filter (Default: false): Enables or disables requiring the Supertrend state to be in an Uptrend regime for BUY signals and a Downtrend regime for SELL signals.
- ST_AtrPeriod (Default: 10): Wilder's ATR lookback period in bars used to compute the Supertrend volatility bands.
- ST_Factor (Default: 3.0): Volatility multiplier applied to ATR to set the trailing Supertrend band distance.
Risk Disclaimer
Trading foreign exchange, commodities, indices, and other leveraged financial instruments carries a high level of risk and may not be suitable for all investors. Past performance, historical signal visualization, or simulated testing results do not guarantee future trading outcomes. This software is strictly a technical analysis and charting utility designed to assist traders in identifying market conditions; it does not provide financial or investment advice and does not guarantee profitable results. Always test the indicator thoroughly on a demo account to understand its operational behavior and parameter sensitivity before applying it in a live trading environment.
