NLMS Volatility Trail Scanner Dashboard Multi Pair
- Indicatori
- Versione: 1.0
- Attivazioni: 5
NLMS Volatility Trail Scanner Dashboard Multi Pair
Overview
- Product Identity and Purpose: NLMS Volatility Trail Scanner Dashboard is a technical analysis indicator and multi-symbol, multi-timeframe scanner for MetaTrader 4 (MT4) that monitors currency pairs, metals, and indices concurrently from one chart.
- Analytical Architecture: Combines a Normalized Least Mean Squares (NLMS) adaptive volatility trailing model, a modular 15-group technical confluence suite, an ATR-based Stop Loss (SL) and dual Risk-to-Reward Take Profit (TP1 and TP2) calculator, an interactive on-chart dashboard, and a multi-channel alert dispatcher.
Technical Operating Principle
- Adaptive Baseline and Volatility Envelope: Processes historical bars chronologically using an NLMS adaptive filter that updates internal tap weights exclusively on completed candles, paired with an ATR volatility envelope forming upper and lower trailing thresholds to track directional swings and filter noise.
- Closed-Candle Evaluation and Non-Repainting Behavior: All directional flips, filter checks, and ATR level calculations execute strictly on closed bars (shift 1 and older within InpLookback); once a candle closes and a signal confirms, its timestamp, entry price, trailing value, SL, and TP levels remain fixed and do not repaint or shift on later ticks.
- Bullish (BUY) Signal Logic: Confirmed when the adaptive volatility trailing threshold transitions from a downward or neutral state into an upward trajectory on a closed candle, provided InpDirection permits BUY setups (0 or 1) and all enabled technical confluence filters confirm bullish alignment on that same closed bar.
- Bearish (SELL) Signal Logic: Confirmed when the adaptive volatility trailing threshold transitions from an upward or neutral state into a downward trajectory on a closed candle, provided InpDirection permits SELL setups (0 or 2) and all enabled technical confluence filters confirm bearish alignment on that same closed bar.
- ATR Stop Loss and Take Profit Levels: Reads the standard ATR value at the confirmed signal bar, multiplies it by InpATRMultSL to set Stop Loss distance from the signal bar close, and projects TP1 and TP2 using InpTP1_RR and InpTP2_RR Risk-to-Reward multipliers.
Key Features and Graphical User Interface (GUI)
- Multi-Pair and Multi-Timeframe Matrix: Scans up to InpMaxSymbols from either the active MT4 Market Watch list or a custom symbol list across any selected timeframes from M1 to MN1 on a configurable timer interval.
- Movable, Scalable, and Persistent Panel: Renders an interactive table directly on the chart; dragging the title header moves the panel anywhere on screen, UI geometry scales from 70% to 180% for standard or high-DPI displays, and panel coordinates plus collapsed state persist across timeframe switches via global variables.
- Header Action Buttons and Column Sorting: The upper bar includes a REFRESH button to reload symbols and trigger an immediate scan, a CLEAR button to remove dashboard objects, and a MIN/MAX toggle button to collapse the panel into a compact bar; clicking PAIR, TF, DIR, or TIME headers sorts active rows in ascending or descending order.
- Table Columns and Color Legend: Displays PAIR (symbol), TF (timeframe), DIR (green text for BUY, red text for SELL), TIME (signal bar timestamp), ENTRY (signal bar close price), SL (red Stop Loss level), TP 1 (green first target), TP 2 (green second target), TRAIL (active NLMS trailing value), AGE (elapsed time since signal confirmation in seconds, minutes, hours, or days), and an OPEN button; muted gray text marks inactive fields, hints, or rows without active signals when InpShowEmpty is enabled.
- One-Click Chart Switching and Level Plotting: Clicking OPEN switches the active chart to that pair and timeframe in candlestick mode and plots directional arrows alongside a dotted blue Entry line, dashed red SL line, and dashed green TP1/TP2 lines extending across InpExtendBars.
- Modular 15-Group Technical Confluence Suite: Works with all filters disabled for raw NLMS trailing signals or combines up to 15 built-in filter groups: (1) RSI Crossover, (2) ADX Trend Strength, (3) Single Moving Average, (4) Ichimoku Senkou Span B, (5) Long-Period RSI Midpoint, (6) Double Moving Average Alignment, (7) Awesome Oscillator (amplitude, color momentum, and zero-line modes), (8) Parabolic SAR, (9) Heiken Ashi Candle Polarity, (10) CCI Zero-Line Trend, (11) CCI Overbought/Oversold Thresholds, (12) RVI Zero-Line and Signal Crossover, (13) MACD Histogram and Zero-Line, (14) Swing Support/Resistance Proximity and ZigZag Fibonacci Retracement Zone, and (15) Integrated Wilder ATR Supertrend Direction.
- Multi-Channel Alert Dispatcher: Sends terminal pop-up alerts, customizable WAV sound alerts, mobile push notifications via MetaQuotes ID, and SMTP email alerts with full Entry, SL, TP1, TP2, and trailing data, plus an option to alert only on new signal timestamps.
Operation Recommendations and Computational Efficiency
- Recommended Instruments: Tested on major and cross forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD, USDCHF, NZDUSD, EURJPY, GBPJPY) and spot gold (XAUUSD); applicable to any liquid MT4 symbol after verifying broker spread and contract digits.
- Supported Timeframes: Supports all standard MT4 timeframes; M1 and M5 suit short-term intraday monitoring, M15, M30, and H1 suit session-based intraday workflows, and H4, D1, W1, and MN1 suit swing structure tracking.
- Account and Execution Environment: Works on both Hedging and Netting MT4 accounts across standard and ECN low-spread brokers; as a visual analytical indicator rather than an automated trading robot, it does not place orders automatically, and a stable VPS is recommended for continuous 24/5 push or email alert delivery.
- CPU and Memory Efficiency: Multi-symbol, multi-timeframe scanning recalculates bar arrays on each timer cycle; to preserve terminal responsiveness, keep InpMaxSymbols (default: 10) and InpBarsCopy (default: 150) at moderate values, avoid running multiple heavy scanner dashboards simultaneously on low-spec PCs, and ensure historical data is loaded for target pairs and timeframes.
Input Parameters Documentation
- Scanner Core Settings: InpSecScanner (Default: "=== SCANNER SETTINGS ===") header; InpSymbols (Default: "EURUSD,GBPUSD,USDJPY,AUDUSD,USDCAD,USDCHF,NZDUSD,EURJPY,GBPJPY,XAUUSD") custom symbols when InpUseWatch is false (symbols); InpTimeframes (Default: "M1,M5,M15,M30,H1,H4,D1") scanned timeframes (timeframe codes); InpUseWatch (Default: true) loads symbols from MT4 Market Watch when true (boolean); InpMaxSymbols (Default: 10) max symbols scanned concurrently (symbols); InpScanSec (Default: 7) timer scan interval, min 3s (seconds); InpBarsCopy (Default: 150) historical bars copied per symbol/TF (bars); InpLookback (Default: 100) max closed bars searched backward from bar 1 for latest signal (bars); InpDirection (Default: 0) direction mode: 0 both, 1 BUY only, 2 SELL only (mode).
- NLMS Volatility Trail Entry Settings: InpSecEntry (Default: "=== [ENTRY LOGIC] NLMS SETTINGS ===") header; InpTaps (Default: 2) adaptive filter tap order length, must be >= 2 (taps/bars); InpMu (Default: 0.1) normalized adaptation step-size for weight updates (coefficient); InpEps (Default: 0.5) regularization constant preventing division by zero in energy normalization (constant); InpNlmsAtrPeriod (Default: 7) internal ATR period for NLMS volatility envelope (bars); InpNlmsAtrFactor (Default: 0.5) multiplier for upper and lower NLMS trailing bands (multiplier); InpSource (Default: PRICE_CLOSE) applied price series (Close, Open, High, Low, Median, Typical, or Weighted) used by NLMS (price constant).
- ATR Stop Loss and Take Profit Settings: InpSecAtr (Default: "=== ATR SL & TP SETTINGS ===") header; InpATRPeriod (Default: 14) standard ATR period measured at signal candle (bars); InpATRMultSL (Default: 1.5) ATR multiplier for SL distance from Entry (ATR multiplier); InpTP1_RR (Default: 1.0) Risk-to-Reward multiplier from SL distance for TP1 (R-multiple); InpTP2_RR (Default: 2.0) Risk-to-Reward multiplier from SL distance for TP2 (R-multiple).
- Notification and Alert Settings: InpSecAlerts (Default: "=== ALERTS ===") header; InpAlertPopup (Default: false) enables MT4 pop-up alerts (boolean); InpAlertSound (Default: false) enables WAV sound playback (boolean); InpSoundFile (Default: "alert2.wav") WAV filename in MT4 Sounds folder (filename); InpAlertPush (Default: false) enables mobile push alerts via MetaQuotes ID (boolean); InpAlertEmail (Default: false) enables SMTP email alerts (boolean); InpEmailSubject (Default: "NLMS Trail Scanner Signal") email subject prefix (string); InpAlertOnlyNew (Default: false) alerts only when signal timestamp is newer than previous alert on that slot (boolean).
- Display and User Interface Settings: InpSecDisplay (Default: "=== DISPLAY & UI ===") header; InpX (Default: 12) initial X offset from upper-left chart corner (pixels); InpY (Default: 28) initial Y offset from upper-left chart corner (pixels); InpScale (Default: 100) UI scale factor clamped 70-180 (percentage); InpRowH (Default: 18) base row height (pixels); InpFont (Default: 8) base label font size (font size); InpPadX (Default: 8) horizontal inner panel padding (pixels); InpWPair (Default: 68) PAIR column width (pixels); InpWTF (Default: 34) TF column width (pixels); InpWDir (Default: 44) DIR column width (pixels); InpWTime (Default: 96) TIME column width (pixels); InpWEntry (Default: 64) ENTRY column width (pixels); InpWSL (Default: 64) SL column width (pixels); InpWTP1 (Default: 64) TP 1 column width (pixels); InpWTP2 (Default: 64) TP 2 column width (pixels); InpWTrail (Default: 54) TRAIL column width (pixels); InpWAge (Default: 42) AGE column width (pixels); InpWOpen (Default: 44) OPEN button column width (pixels); InpShowEmpty (Default: false) displays rows without active signals when true (boolean); InpMaxRows (Default: 18) max visible rows in table (rows).
- Sorting Configuration: InpSecSort (Default: "=== SORTING ===") header; InpSortBy (Default: SORT_TIME) default sort field: SORT_TIME (0), SORT_PAIR (1), SORT_TF (2), or SORT_DIR (3) (enum index); InpSortNewest (Default: true) enables descending sort order by default (boolean).
- Chart Visuals Settings: InpSecVisuals (Default: "=== CHART VISUALS ===") header; InpDrawOnChart (Default: true) plots active chart's latest confirmed signal on canvas (boolean); InpShowArrow (Default: true) displays BUY/SELL arrows at signal candle (boolean); InpShowLevels (Default: true) displays horizontal lines and labels for Entry, SL, TP1, and TP2 (boolean); InpExtendBars (Default: 25) bars to extend level lines right of signal bar (bars); InpArrowCodeBuy (Default: 233) Wingdings code for BUY arrows (character code); InpArrowCodeSell (Default: 234) Wingdings code for SELL arrows (character code); InpArrowSize (Default: 2) arrow stroke width 1-5 (size level); InpArrowDistance (Default: 15) vertical arrow offset from signal price (broker points).
- Color Palette Settings: InpSecColors (Default: "=== COLOR PALETTE ===") header; InpColBg (Default: C'18,22,28') main panel background color (RGB); InpColHead (Default: C'32,38,48') header bar background color (RGB); InpColRow (Default: C'24,28,36') even row background color (RGB); InpColRow2 (Default: C'28,33,42') odd row background color (RGB); InpColText (Default: C'220,225,230') primary table text color (RGB); InpColBull (Default: C'0,200,83') BUY direction text color (RGB); InpColBear (Default: C'255,82,82') SELL direction text color (RGB); InpColMute (Default: C'120,128,140') muted status and hint text color (RGB); InpColAccent (Default: C'41,98,255') accent color for title, active sort, and OPEN buttons (RGB); InpColArrowBuy (Default: C'0,230,118') chart BUY arrow color (RGB); InpColArrowSell (Default: C'255,82,82') chart SELL arrow color (RGB); InpColEntry (Default: C'41,98,255') Entry line and label color (RGB); InpColSL (Default: C'255,82,82') SL line and label color (RGB); InpColTP1 (Default: C'0,200,83') TP1 line and label color (RGB); InpColTP2 (Default: C'0,230,118') TP2 line and label color (RGB).
- Filter Groups 1 to 5 (RSI Cross, ADX, Single MA, Ichimoku, RSI 75): InpFilter1 (Default: "=== 1. RSI CROSS FILTER ===") header; Use_RSI_Cross_Filter (Default: false) enables RSI threshold crossover filter (boolean); RSI_Length (Default: 14) RSI crossover period (bars); RSI_Price_Source (Default: PRICE_CLOSE) applied price for RSI filters (price constant); RSI_Oversold (Default: 30.0) oversold level crossed upward for BUY (RSI scale 0-100); RSI_Overbought (Default: 70.0) overbought level crossed downward for SELL (RSI scale 0-100); InpFilter2 (Default: "=== 2. ADX FILTER ===") header; Use_ADX_Filter (Default: false) enables minimum ADX trend strength filter (boolean); ADX_Period (Default: 10) ADX averaging period (bars); ADX_Min_Level (Default: 20.0) min ADX value on signal candle (ADX scale); InpFilter3 (Default: "=== 3. SINGLE MA FILTER ===") header; Use_MA_Filter (Default: false) requires close above MA for BUY and below for SELL (boolean); MA_Period (Default: 50) single MA period (bars); MA_Method (Default: MODE_SMA) smoothing method: SMA, EMA, SMMA, or LWMA (MA method); MA_Shift (Default: 0) horizontal bar offset for single MA (bars); InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ===") header; Use_Ichimoku_Filter (Default: false) requires close above Senkou Span B for BUY and below for SELL (boolean); Ichimoku_Tenkan (Default: 9) Tenkan-sen period (bars); Ichimoku_Kijun (Default: 26) Kijun-sen period (bars); Ichimoku_SenkouB (Default: 52) Senkou Span B period (bars); InpFilter5 (Default: "=== 5. RSI 75 FILTER ===") header; Use_RSI75_Filter (Default: false) requires long-period RSI above 50.0 for BUY and below 50.0 for SELL (boolean); RSI_Filter_Period (Default: 75) lookback period for long-term RSI midpoint filter (bars).
- Filter Groups 6 to 10 (Double MA, Awesome Oscillator, Parabolic SAR, Heiken Ashi, CCI Trend): InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ===") header; Use_DoubleMA_Filter (Default: false) requires fast MA A above slow MA B for BUY and below for SELL (boolean); MA_A_Period (Default: 30) fast MA A period (bars); MA_A_Method (Default: MODE_EMA) fast MA A smoothing method (MA method); MA_A_Applied (Default: PRICE_CLOSE) fast MA A applied price (price constant); MA_A_Shift (Default: 0) fast MA A horizontal shift (bars); MA_B_Period (Default: 140) slow MA B period (bars); MA_B_Method (Default: MODE_EMA) slow MA B smoothing method (MA method); MA_B_Applied (Default: PRICE_CLOSE) slow MA B applied price (price constant); MA_B_Shift (Default: 0) slow MA B horizontal shift (bars); InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ===") header; Use_AO_Filter (Default: false) enables Awesome Oscillator momentum filter (boolean); Use_AO_Volume_Filter (Default: false) enforces min positive AO for BUY and max negative AO for SELL (boolean); AO_Buy_Min (Default: 4.0) min AO histogram value for BUY (AO value); AO_Sell_Max (Default: -4.0) max AO histogram value for SELL (AO value); Use_AO_Color_Filter (Default: false) requires rising AO bar for BUY and falling bar for SELL (boolean); Use_AO_Zero_Filter (Default: false) requires AO rising above zero for BUY and falling below zero for SELL (boolean); InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ===") header; Use_SAR_Filter (Default: false) requires close above Parabolic SAR for BUY and below for SELL (boolean); SAR_Step (Default: 0.02) Parabolic SAR acceleration step (coefficient); SAR_Maximum (Default: 0.2) Parabolic SAR max acceleration cap (coefficient); InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ===") header; Use_HeikenAshi_Filter (Default: false) requires bullish Heiken Ashi candle for BUY and bearish for SELL (boolean); InpFilter10 (Default: "=== 10. CCI TREND FILTER ===") header; Use_CCI_Filter (Default: false) requires CCI above 0.0 for BUY and below 0.0 for SELL (boolean); CCI_Period (Default: 50) CCI zero-line trend period (bars); CCI_Applied (Default: PRICE_CLOSE) applied price for CCI trend filter (price constant).
- Filter Groups 11 to 15 (CCI OB/OS, RVI, MACD, Support/Resistance & Fibonacci, Supertrend): InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ===") header; Use_CCI_OBOS_Filter (Default: false) enables upper and lower CCI threshold filtering (boolean); CCI_OBOS_Period (Default: 14) CCI OB/OS calculation period (bars); CCI_OBOS_Applied (Default: PRICE_CLOSE) applied price for CCI OB/OS filter (price constant); CCI_Overbought (Default: 100.0) upper CCI threshold on signal candle (CCI scale); CCI_Oversold (Default: -100.0) lower CCI threshold on signal candle (CCI scale); InpFilter12 (Default: "=== 12. RVI FILTERS ===") header; Use_RVI_Filter (Default: false) requires RVI main line above 0.0 for BUY and below 0.0 for SELL (boolean); RVI_Period (Default: 75) RVI zero-line trend period (bars); Use_RVI_Signal_Filter (Default: false) requires RVI main line above signal line for BUY and below for SELL (boolean); RVI_Signal_Period (Default: 20) RVI signal crossover period (bars); InpFilter13 (Default: "=== 13. MACD FILTERS ===") header; Use_MACD_Filter (Default: false) requires positive MACD histogram (Main > Signal) for BUY and negative for SELL (boolean); MACD_FastEMA (Default: 12) MACD fast EMA period (bars); MACD_SlowEMA (Default: 26) MACD slow EMA period (bars); MACD_SignalSMA (Default: 9) MACD signal SMA period (bars); MACD_Applied (Default: PRICE_CLOSE) applied price for MACD (price constant); Use_MACD_Zero_Filter (Default: false) requires MACD main line above 0.0 for BUY and below 0.0 for SELL (boolean); InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ===") header; Use_SR_Filter (Default: false) requires signal bar range to touch swing Support for BUY or Resistance for SELL (boolean); SR_Period (Default: 50) lookback window for swing Support/Resistance extremes (bars); SR_Zone_Points (Default: 80) proximity tolerance band around Support/Resistance levels (broker points); Use_Fib_Filter (Default: false) requires signal bar range to touch retracement zone between Fib_Level_1 and Fib_Level_2 (boolean); Fib_Level_1 (Default: 0.382) first Fibonacci retracement ratio boundary (ratio); Fib_Level_2 (Default: 0.618) second Fibonacci retracement ratio boundary (ratio); ZigZag_Depth (Default: 12) min bar depth for ZigZag swing highs and lows (bars); ZigZag_Deviation (Default: 5) min price deviation to update swing pivot (broker points); ZigZag_Backstep (Default: 3) min bar separation between swing pivots (bars); InpFilter15 (Default: "=== 15. SUPERTREND FILTER ===") header; Use_Supertrend_Filter (Default: false) requires integrated Wilder ATR Supertrend direction alignment (uptrend for BUY, downtrend for SELL) (boolean); ST_AtrPeriod (Default: 10) Wilder RMA ATR period for Supertrend (bars); ST_Factor (Default: 3.0) volatility band multiplier for Supertrend (multiplier).
Risk Disclaimer
- Risk Disclosure and Demo Testing Notice: Trading foreign exchange, commodities, indices, and other financial instruments carries substantial risk of capital loss and may not be suitable for all investors. Past performance and historical signal behavior do not guarantee future results. This indicator is an analytical technical tool designed to assist with market monitoring and does not constitute financial or investment advice. Always test the indicator thoroughly on a demo account to verify its operational behavior, broker symbol compatibility, and terminal resource usage before applying it in a live trading environment.
