Bollinger Bands Scanner Dash Volatility Breakout
- Indicatori
- Versione: 1.0
- Attivazioni: 5
OVERVIEW
The Bollinger Bands Breakout Scanner Dashboard is a comprehensive technical analysis and monitoring utility designed for MetaTrader 5. Its primary purpose is to scan multiple financial instruments across various timeframes simultaneously to identify potential price breakouts based on the standard Bollinger Bands indicator. This software is built as an interactive dashboard that continuously evaluates market data, processes multi-layered technical filters, calculates dynamic risk parameters using the Average True Range (ATR), and alerts the user when specific technical conditions are met. This tool does not execute automated trades; it functions strictly as a visual and analytical aid for manual trading operations.
OPERATING PRINCIPLE AND CORE ALGORITHM
The foundational algorithm of this scanner relies on the Bollinger Bands volatility indicator. The system evaluates the position of the closing price relative to the upper and lower bands to generate directional signals.
Buy Signal Logic: A bullish breakout signal is triggered when the previous candle's open price is below the Upper Bollinger Band, and its closing price crosses and closes above the Upper Bollinger Band.
Sell Signal Logic: A bearish breakout signal is triggered when the previous candle's open price is above the Lower Bollinger Band, and its closing price crosses and closes below the Lower Bollinger Band.
Signal Validity and Calculation: All primary entry signals are calculated strictly on closed bars (Bar 1). This ensures that the core Bollinger Bands breakout signal is fixed and does not repaint or shift after the candle has closed. If the Fibonacci filter is activated, users should note that it relies on a ZigZag formation which dynamically updates swing points.
Stop Loss and Take Profit Logic: Risk parameters are dynamically calculated using the ATR indicator. The Stop Loss (SL) distance is determined by multiplying the ATR value by a user-defined coefficient. Take Profit 1 (TP1) and Take Profit 2 (TP2) are calculated based on a proportional Risk-to-Reward ratio relative to the Stop Loss distance.
KEY FEATURES AND DASHBOARD INTERFACE
Multi-Symbol and Multi-Timeframe Scanning: The dashboard can process up to 15 symbols and multiple timeframes simultaneously, presenting the data in a unified matrix.
Comprehensive 17-Layer Filtering System: The tool includes 17 optional technical filters (RSI, ADX, Moving Averages, Ichimoku, Awesome Oscillator, Parabolic SAR, Heiken Ashi, CCI, RVI, MACD, Support/Resistance, and Fibonacci). Users can enable or disable these filters to refine signal generation based on their specific analytical requirements.
Interactive Graphical User Interface (GUI): The panel displays vital metrics including Pair, Timeframe, Direction, Signal Time, Entry Price, SL, TP1, TP2, Band Value, and Signal Age. Clicking the 'OPEN' button instantly switches the active chart to the corresponding pair and timeframe.
Visual Chart Plotting: When a signal is selected, the utility automatically plots visual elements on the chart, including entry arrows and dashed lines indicating the exact SL and TP levels.
Alert Mechanisms: Supports terminal pop-up alerts, sound notifications, push notifications to mobile devices, and email alerts.
Color Coding Interpretation: Green text/elements indicate a bullish condition or Buy signal. Red text/elements indicate a bearish condition or Sell signal. Muted gray/blue colors indicate neutral states, inactive elements, or unfulfilled conditions.
PERFORMANCE OPTIMIZATION AND CPU USAGE
Scanning multiple symbols and timeframes with 17 indicators can consume significant CPU and memory resources. To maintain optimal terminal performance:
- Adjust the 'Max pairs to process' parameter to a reasonable limit (e.g., 10-15 pairs).
- Increase the 'Scan interval' to 7-10 seconds to reduce the frequency of recalculations.
- Limit 'Bars analyzed per TF' to the minimum required for your strategy to avoid excessive historical array processing.
OPERATION AND SETUP RECOMMENDATIONS
Recommended Instruments: Major and minor currency pairs with sufficient liquidity (e.g., EURUSD, GBPUSD, USDJPY, XAUUSD).
Recommended Timeframes: M15, M30, H1, H4, and D1.
Account Requirements: Suitable for both Hedging and Netting account types. A low spread ECN account is recommended for optimal entry conditions. Latency is not highly critical as the scanner operates on closed bars, but a stable VPS ensures uninterrupted scanning and alert delivery.
INPUT PARAMETERS LIST
=== Scanner Settings ===
InpSymbols (Default: "EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD,USDCHF,NZDUSD,EURJPY,GBPJPY,XAUUSD") -> Comma-separated list of symbols to scan. Leave empty to scan the Market Watch.
InpTimeframes (Default: "M5,M15,M30,H1,H4") -> Comma-separated list of timeframes to evaluate.
InpUseWatch (Default: true) -> If true, the system ignores InpSymbols and scans all visible pairs in the Market Watch window.
InpMaxSymbols (Default: 15) -> The maximum number of symbols to process to prevent terminal lag.
InpScanSec (Default: 7) -> The interval in seconds between each scanning cycle.
InpBarsCopy (Default: 120) -> The number of historical bars to copy into memory for indicator calculation.
InpLookback (Default: 100) -> The maximum number of historical bars to check for the most recent breakout signal.
InpDirection (Default: 0) -> Filter signals by direction. 0 = Both, 1 = Buy only, 2 = Sell only.
=== Bollinger Bands Entry Settings ===
InpBBPeriod (Default: 20) -> The averaging period for the Bollinger Bands calculation.
InpBBDeviation (Default: 0.5) -> The standard deviation multiplier for the upper and lower bands.
InpBBPrice (Default: PRICE_CLOSE) -> The applied price used for the Bollinger Bands calculation.
=== ATR SL & TP Settings ===
InpATRPeriod (Default: 14) -> The averaging period for the Average True Range indicator.
InpATRMultSL (Default: 1.5) -> The multiplier applied to the ATR value to calculate the Stop Loss distance.
InpTP1_RR (Default: 1.0) -> The Risk-to-Reward ratio for Take Profit 1 (e.g., 1.0 equals 1:1 RR).
InpTP2_RR (Default: 2.0) -> The Risk-to-Reward ratio for Take Profit 2 (e.g., 2.0 equals 1:2 RR).
=== FILTER: RSI CROSS ===
Use_RSI_Cross_Filter (Default: false) -> Enables the RSI crossover logic filter.
RSI_Length (Default: 14) -> The period for the RSI calculation.
RSI_Price_Source (Default: PRICE_CLOSE) -> The applied price for the RSI.
Oversold (Default: 30.0) -> The lower boundary limit for the RSI filter.
Overbought (Default: 70.0) -> The upper boundary limit for the RSI filter.
=== FILTER: ADX ===
Use_ADX_Filter (Default: false) -> Enables the Average Directional Movement Index trend strength filter.
ADX_Period (Default: 10) -> The calculation period for the ADX.
ADX_Min_Level (Default: 20.0) -> The minimum ADX value required to validate a signal.
=== FILTER: SINGLE MA ===
Use_MA_Filter (Default: true) -> Enables the single Moving Average trend filter.
MA_Period (Default: 50) -> The averaging period for the MA.
MA_Method (Default: MODE_EMA) -> The smoothing method for the MA.
MA_Applied (Default: PRICE_CLOSE) -> The applied price for the MA.
MA_Shift (Default: 0) -> The horizontal shift of the MA.
=== FILTER: ICHIMOKU SENKOU SPAN B ===
Use_Ichimoku_Filter (Default: false) -> Enables the Ichimoku Kinko Hyo cloud filter.
Ichimoku_SenkouB (Default: 52) -> The calculation period for Senkou Span B.
Ichimoku_Shift (Default: 26) -> The horizontal displacement for the Ichimoku cloud.
=== FILTER: RSI 75 ===
Use_RSI75_Filter (Default: false) -> Enables a secondary long-period RSI baseline filter.
RSI_Filter_Period (Default: 75) -> The calculation period for the secondary RSI.
RSI_Filter_Price (Default: PRICE_CLOSE) -> The applied price for the secondary RSI.
=== FILTER: DOUBLE MA ===
Use_DoubleMA_Filter (Default: false) -> Enables the dual Moving Average crossover trend filter.
MA_A_Period (Default: 30) -> The period for the fast MA.
MA_A_Method (Default: MODE_EMA) -> The smoothing method for the fast MA.
MA_A_Applied (Default: PRICE_CLOSE) -> The applied price for the fast MA.
MA_A_Shift (Default: 0) -> The horizontal shift for the fast MA.
MA_B_Period (Default: 140) -> The period for the slow MA.
MA_B_Method (Default: MODE_EMA) -> The smoothing method for the slow MA.
MA_B_Applied (Default: PRICE_CLOSE) -> The applied price for the slow MA.
MA_B_Shift (Default: 0) -> The horizontal shift for the slow MA.
=== FILTER: AWESOME OSCILLATOR ===
Use_AO_Filter (Default: false) -> Enables the Awesome Oscillator filter.
Use_AO_Volume_Filter (Default: false) -> Mandates that AO momentum must exceed defined volume thresholds.
AO_Buy_Min (Default: 4.0) -> The minimum positive AO value for buy signals.
AO_Sell_Max (Default: -4.0) -> The maximum negative AO value for sell signals.
Use_AO_Color_Filter (Default: false) -> Mandates that AO histogram color aligns with the signal direction.
Use_AO_Zero_Filter (Default: false) -> Mandates that the AO must be above zero for buys and below zero for sells.
=== FILTER: PARABOLIC SAR ===
Use_SAR_Filter (Default: false) -> Enables the Parabolic Stop and Reverse filter.
SAR_Step (Default: 0.02) -> The step increment value for the SAR calculation.
SAR_Maximum (Default: 0.2) -> The maximum limit value for the SAR calculation.
=== FILTER: HEIKEN ASHI ===
Use_HeikenAshi_Filter (Default: false) -> Validates signals based on the color/direction of the calculated Heiken Ashi candle.
=== FILTER: CCI TREND ===
Use_CCI_Filter (Default: false) -> Enables the Commodity Channel Index trend filter (above/below zero).
CCI_Period (Default: 50) -> The averaging period for the CCI.
CCI_Applied (Default: PRICE_CLOSE) -> The applied price for the CCI.
=== FILTER: CCI OB & OS ===
Use_CCI_OBOS_Filter (Default: false) -> Enables the Commodity Channel Index overbought/oversold filter.
CCI_OBOS_Period (Default: 14) -> The calculation period for the secondary CCI.
CCI_OBOS_Applied (Default: PRICE_CLOSE) -> The applied price for the secondary CCI.
CCI_Overbought (Default: 100.0) -> The upper boundary threshold for the CCI.
CCI_Oversold (Default: -100.0) -> The lower boundary threshold for the CCI.
=== FILTER: RVI TREND ===
Use_RVI_Filter (Default: false) -> Enables the Relative Vigor Index trend filter.
RVI_Period (Default: 75) -> The calculation period for the RVI.
=== FILTER: RVI SIGNAL ===
Use_RVI_Signal_Filter (Default: false) -> Enables the RVI main line and signal line crossover filter.
RVI_Signal_Period (Default: 20) -> The calculation period for the RVI crossover check.
=== FILTER: MACD SIGNAL ===
Use_MACD_Filter (Default: false) -> Enables the MACD histogram and signal line difference filter.
MACD_FastEMA (Default: 12) -> The period for the fast Exponential Moving Average.
MACD_SlowEMA (Default: 26) -> The period for the slow Exponential Moving Average.
MACD_SignalSMA (Default: 9) -> The period for the signal Simple Moving Average.
MACD_Applied (Default: PRICE_CLOSE) -> The applied price for the MACD.
=== FILTER: MACD LEV 0 ===
Use_MACD_Zero_Filter (Default: false) -> Mandates that the main MACD line must be on the correct side of the zero baseline.
=== FILTER: SUPPORT & RESISTANCE ===
Use_SR_Filter (Default: true) -> Enables the automated Support and Resistance proximity filter.
SR_Period (Default: 50) -> The lookback period in bars to determine the highest high and lowest low.
SR_Zone_Points (Default: 100) -> The tolerance zone size in points to validate a bounce or touch of the SR levels.
=== FILTER: FIBONACCI ===
Use_Fib_Filter (Default: false) -> Enables the Fibonacci retracement zone filter based on ZigZag swings.
Fib_Level_1 (Default: 0.382) -> The primary Fibonacci retracement boundary.
Fib_Level_2 (Default: 0.618) -> The secondary Fibonacci retracement boundary.
ZigZag_Depth (Default: 12) -> The depth parameter for the underlying ZigZag algorithm determining the swing points.
ZigZag_Deviation (Default: 5) -> The deviation parameter for the ZigZag algorithm.
ZigZag_Backstep (Default: 3) -> The backstep parameter for the ZigZag algorithm.
=== Alert & Notifications ===
InpAlertPopup (Default: false) -> Activates terminal pop-up window alerts.
InpAlertSound (Default: false) -> Activates terminal audio alerts.
InpSoundFile (Default: "alert2.wav") -> The specific audio file name to play for sound alerts.
InpAlertPush (Default: false) -> Activates push notifications sent to the MetaQuotes ID mobile application.
InpAlertEmail (Default: false) -> Activates email alerts sent via the terminal's SMTP configuration.
InpEmailSubject (Default: "BB Breakout Signal") -> The subject line text for outgoing email alerts.
InpAlertOnlyNew (Default: false) -> If true, the system will only trigger alerts for newly formed bar signals, ignoring older historical signals upon initialization.
=== Display & Layout ===
InpX (Default: 12) -> The initial horizontal X-axis coordinate for the dashboard.
InpY (Default: 28) -> The initial vertical Y-axis coordinate for the dashboard.
InpScale (Default: 100) -> The magnification scale percentage of the GUI (minimum 70, maximum 180).
InpRowH (Default: 18) -> The height of each data row in pixels.
InpFont (Default: 8) -> The base font size for text elements inside the dashboard.
InpPadX (Default: 8) -> The internal left padding size in pixels.
InpWPair (Default: 68) -> The width of the Pair column in pixels.
InpWTF (Default: 34) -> The width of the Timeframe column in pixels.
InpWArah (Default: 44) -> The width of the Direction column in pixels.
InpWTime (Default: 96) -> The width of the Signal Time column in pixels.
InpWEntry (Default: 64) -> The width of the Entry Price column in pixels.
InpWSL (Default: 64) -> The width of the Stop Loss column in pixels.
InpWTP1 (Default: 64) -> The width of the Take Profit 1 column in pixels.
InpWTP2 (Default: 64) -> The width of the Take Profit 2 column in pixels.
InpWBand (Default: 58) -> The width of the Bollinger Band value column in pixels.
InpWUmur (Default: 42) -> The width of the Signal Age column in pixels.
InpWOpen (Default: 44) -> The width of the Open Chart button column in pixels.
InpShowEmpty (Default: false) -> If true, displays symbols and timeframes on the dashboard even when no valid signal is currently detected.
InpMaxRows (Default: 18) -> The maximum number of visible rows rendered on the dashboard to control screen usage.
=== Sorting ===
InpSortBy (Default: SORT_TIME) -> Determines the default sorting column structure (Time, Pair, Timeframe, or Direction).
InpSortNewest (Default: true) -> If true, sorts data in descending order, displaying the most recent signals at the top.
=== Draw Signal On Current Chart ===
InpDrawOnChart (Default: true) -> If true, the utility draws graphical elements on the active chart corresponding to the selected signal.
InpShowArrow (Default: true) -> Enables the rendering of directional entry arrows on the chart.
InpShowLevels (Default: true) -> Enables the rendering of horizontal dashed lines representing the SL, TP1, and TP2 targets.
InpExtendBars (Default: 30) -> Determines how many future bars the horizontal target lines will extend across the chart.
InpArrowCodeBuy (Default: 233) -> The Wingdings font code character used for the bullish entry arrow.
InpArrowCodeSell (Default: 234) -> The Wingdings font code character used for the bearish entry arrow.
InpArrowSize (Default: 2) -> The graphical size multiplier of the entry arrows.
InpArrowDistance (Default: 15) -> The offset distance in points from the candlestick high/low to place the entry arrow.
=== Theme & Colors ===
InpColBg (Default: C'18,22,28') -> The main background color of the dashboard panel.
InpColHead (Default: C'32,38,48') -> The background color of the dashboard header and title areas.
InpColRow (Default: C'24,28,36') -> The primary background color for alternating data rows.
InpColRow2 (Default: C'28,33,42') -> The secondary background color for alternating data rows.
InpColText (Default: C'220,225,230') -> The default color for neutral text elements.
InpColBull (Default: C'0,230,118') -> The font color representing bullish signals and text.
InpColBear (Default: C'255,82,82') -> The font color representing bearish signals and text.
InpColMute (Default: C'120,128,140') -> The font color for inactive, old, or secondary text elements.
InpColAccent (Default: C'41,98,255') -> The accent color used for borders, active buttons, and titles.
InpColArrowBuy (Default: C'0,230,118') -> The color of the bullish entry arrow drawn on the chart.
InpColArrowSell (Default: C'255,82,82') -> The color of the bearish entry arrow drawn on the chart.
InpColEntry (Default: C'41,98,255') -> The color of the horizontal line depicting the entry level.
InpColSL (Default: C'255,82,82') -> The color of the horizontal line depicting the Stop Loss level.
InpColTP1 (Default: C'0,200,83') -> The color of the horizontal line depicting the Take Profit 1 level.
InpColTP2 (Default: C'0,230,118') -> The color of the horizontal line depicting the Take Profit 2 level.
RISK DISCLAIMER
Trading foreign exchange, commodities, and other financial instruments involves significant risk and may not be suitable for all investors. Past performance does not guarantee future results. This software is an analytical and operational tool designed to assist traders in technical analysis; it does not guarantee financial profit. Always thoroughly test the product on a demo account to understand its operational behavior before considering deployment in live trading environments.
