Pro RSI Signal Overbought Oversold Multi Filters
- Indicateurs
- Version: 1.16
- Activations: 5
Product: Pro RSI Signal Overbought Oversold Multi Filters MT5
Category: Technical Indicator / Oscillators & Momentum
Platform: MetaTrader 5
Overview
Pro RSI Signal Overbought Oversold Multi Filters is a technical momentum analysis indicator developed natively for the MetaTrader 5 platform. The tool reproduces and expands upon the standard TradingView Relative Strength Index architecture, providing an authentic analytical bridge between modern charting environments and the MetaTrader trading terminal. By integrating classical momentum evaluation with dual smoothing filters, dynamic volatility bands, an automated divergence identification engine, and multi-timeframe synchronization, Pro RSI Signal Overbought Oversold Multi Filters offers an objective, mathematically rigorous framework for market analysis.
Traditional oscillator implementations often exhibit calculation variances when migrated between platforms due to differences in averaging methods, price weighting schemes, and initial buffer smoothing. Pro RSI Signal Overbought Oversold Multi Filters addresses these discrepancies by implementing authentic Wilder smoothing (RMA) alongside standard Simple (SMA), Exponential (EMA), and Linear Weighted (LWMA) smoothing options directly within the MetaTrader 5 calculation core.
The indicator is designed as a modular sub-window analytical oscillator. It assists traders in measuring directional momentum velocity, evaluating structural overbought and oversold thresholds, tracking volatility compression and expansion via integrated Bollinger Bands, and identifying regular and hidden divergence patterns. The software operates entirely on deterministic algorithms with zero black-box logic and zero post-calculation repainting when configured on closed candle states.
Operating Principles and Mathematical Framework
The operational logic of Pro RSI Signal Overbought Oversold Multi Filters relies on four interconnected algorithmic modules: the primary momentum oscillator, the secondary smoothing line, the volatility envelope bands, and the peak-trough divergence scanner.
1. Primary Relative Strength Index Calculation:
The primary momentum line measures the ratio of average price gains to average price losses over a defined lookback period. The process begins with calculating upward change (U) and downward change (D) between consecutive bars based on the selected applied price. When Wilder smoothing (RMA) is selected, the initial average values are calculated via a simple moving average, while subsequent values apply recursive exponential smoothing with an alpha weighting factor of 1 divided by the period. The resulting Relative Strength (RS) value is then normalized onto an absolute scale ranging from 0 to 100.
2. Secondary Moving Average Smoothing Overlay:
To filter out high-frequency noise and erratic tick movements within the oscillator, Pro RSI Signal Overbought Oversold Multi Filters applies a user-configurable moving average directly across the primary RSI data buffer. Users can choose between Simple Moving Average, Exponential Moving Average, Wilder Smoothing (RMA), or Linear Weighted Moving Average. This secondary line acts as a dynamic baseline, allowing traders to observe momentum acceleration when the primary RSI crosses above the smoothing line, or deceleration when it crosses below.
3. Volatility Envelope Bands on RSI:
To quantify momentum volatility dynamically rather than relying solely on static horizontal levels, the indicator computes Bollinger Bands directly on the RSI buffer. The midline represents the simple moving average of the RSI, while the upper and lower bands are derived by adding and subtracting a specified standard deviation multiplier from the midline. During consolidation phases, the bands contract around the RSI line, signaling low momentum volatility. During strong impulsive phases, the bands expand, providing dynamic reference thresholds that adapt to real-time market dispersion.
4. Structural Peak and Trough Divergence Detection:
The divergence engine utilizes a fractal pivot identification mechanism. A valid swing high in price and oscillator requires a specified number of lower highs to its left and right (pivot lookback bars). Conversely, a valid swing low requires a specified number of higher lows on both flanks. Once confirmed on closed bars, the algorithm correlates price swing vectors against oscillator swing vectors over a defined window (bounded by minimum and maximum divergence bars).
- Regular Bullish Divergence: Confirmed when price prints a lower low while the RSI prints a higher low, indicating diminishing downward momentum.
- Regular Bearish Divergence: Confirmed when price prints a higher high while the RSI prints a lower high, indicating exhausting upward momentum.
- Hidden Bullish Divergence: Confirmed when price prints a higher low while the RSI prints a lower low, indicating structural trend continuation in an upward direction.
- Hidden Bearish Divergence: Confirmed when price prints a lower high while the RSI prints a higher high, indicating structural trend continuation in a downward direction.
Signal Validity and Non-Repainting Behavior
Pro RSI Signal Overbought Oversold Multi Filters is strictly non-repainting when the parameter InpCalculateOnClosed is set to true (default setting).
- Closed Bar Mode (Bar 1): All mathematical buffers, pivot evaluations, moving average values, and divergence lines are calculated and locked after the active candle closes. Once a candle completes and a signal is recorded on Bar 1, the visual lines, arrow markers, and numeric values remain permanently fixed in history. They do not alter, disappear, or recalculate on subsequent bars.
- Open Bar Mode (Bar 0): If configured to calculate on the active candle (InpCalculateOnClosed set to false), visual markers and buffer values respond dynamically to tick price fluctuations. Markers may appear and vanish in real time until the candle closes. Traders seeking deterministic signals should retain the default closed bar configuration.
Key Technical Features
- Authentic Platform Parity: Exact replication of TradingView RSI mathematical logic, including native RMA Wilder smoothing.
- Multi-Method Moving Average Overlay: Flexible selection between SMA, EMA, RMA, and LWMA signal lines calculated on the oscillator.
- Dynamic Volatility Envelopes: Native Bollinger Bands calculated on the RSI curve with customizable standard deviation offsets.
- Comprehensive Divergence Scanner: Built-in detection for both Regular (Reversal) and Hidden (Continuation) divergences.
- Dual-Chart Divergence Visualization: Option to project confirmed divergence trendlines both on the main price chart and directly within the indicator sub-window.
- Native Multi-Timeframe (MTF) Capability: Analyze higher-timeframe momentum directly from a lower-timeframe chart without switching windows.
- Dynamic Overbought and Oversold Thresholds: Configurable static horizontal levels alongside adaptive volatility envelope zones.
- Minimal CPU and Memory Footprint: Integrated history bar limiter (InpMaxBars) prevents terminal resource exhaustion during multi-pair scanning.
- Unified Multi-Channel Alert Dispatcher: Real-time event notifications via terminal pop-ups, sound alerts, push notifications to MetaTrader mobile apps, and email alerts.
- Configurable On-Chart HUD: Lightweight informational overlay displaying current momentum status, trend bias, and divergence alerts.
Input Parameters Documentation
Group 1: Primary RSI Calculation Settings
- InpRsiPeriod (Default: 14) [Integer]: The number of historical bars used to calculate price change averages.
- InpRsiPrice (Default: PRICE_CLOSE) [Enum Applied Price]: The bar price source applied to momentum calculations (Close, Open, High, Low, Median, Typical, Weighted).
- InpRsiMethod (Default: MODE_RMA) [Enum Smoothing Method]: The averaging algorithm used for upward and downward price changes (Wilder RMA, SMA, EMA, LWMA).
- InpMaxBars (Default: 1500) [Integer]: The maximum number of historical bars processed on the chart to ensure optimal terminal speed and low memory usage.
- InpCalculateOnClosed (Default: true) [Boolean]: When set to true, calculations and signals lock on closed candles (Bar 1), ensuring zero repainting. When false, updates occur in real time on open candles (Bar 0).
Group 2: Secondary Moving Average Smoothing Settings
- InpEnableMa (Default: true) [Boolean]: Toggles the visibility and calculation of the secondary smoothing moving average line on the RSI buffer.
- InpMaType (Default: MODE_SMA) [Enum Smoothing Method]: The mathematical method used for the smoothing line (SMA, EMA, RMA, LWMA).
- InpMaPeriod (Default: 14) [Integer]: The lookback period applied to the secondary smoothing calculation.
- InpMaShift (Default: 0) [Integer]: Horizontal bar shift applied to the smoothing line. Positive numbers shift right; negative numbers shift left.
Group 3: Volatility Envelope and Bollinger Bands Settings
- InpEnableBands (Default: true) [Boolean]: Activates the calculation of Bollinger Bands envelopes directly over the RSI curve.
- InpBandsPeriod (Default: 14) [Integer]: The lookback period for the Bollinger Bands baseline moving average and standard deviation.
- InpBandsDeviations (Default: 2.0) [Double]: The standard deviation multiplier used to establish distance between the midline and upper/lower bands.
- InpBandsShift (Default: 0) [Integer]: Horizontal bar displacement for the volatility envelope lines.
- InpFillBandsZone (Default: true) [Boolean]: Enables semi-transparent background shading between the upper and lower volatility bands for rapid visual identification.
Group 4: Static and Dynamic Boundary Threshold Settings
- InpLevelOverbought (Default: 70.0) [Double]: Standard upper static momentum threshold indicating an overextended upward condition.
- InpLevelOversold (Default: 30.0) [Double]: Standard lower static momentum threshold indicating an overextended downward condition.
- InpLevelMiddle (Default: 50.0) [Double]: Central baseline threshold delineating bullish territory (above 50) from bearish territory (below 50).
- InpLevelUpperExtreme (Default: 80.0) [Double]: Extreme overbought reference line used for extended exhaustion setups.
- InpLevelLowerExtreme (Default: 20.0) [Double]: Extreme oversold reference line used for extended exhaustion setups.
- InpDynamicLevelsEnabled (Default: false) [Boolean]: Activates dynamic threshold recalculation based on recent ATR volatility offsets rather than rigid static values.
- InpDynamicMultiplier (Default: 1.5) [Double]: Multiplier used when dynamic threshold recalculation is active.
Group 5: Automated Divergence Engine Settings
- InpEnableDivergence (Default: true) [Boolean]: Master switch to enable or disable the divergence scanning algorithm.
- InpDetectRegular (Default: true) [Boolean]: Enables identification of Regular Bullish and Regular Bearish reversal divergences.
- InpDetectHidden (Default: true) [Boolean]: Enables identification of Hidden Bullish and Hidden Bearish trend continuation divergences.
- InpPivotLeft (Default: 5) [Integer]: The number of qualifying bars to the left of a swing point required to validate a structural pivot.
- InpPivotRight (Default: 5) [Integer]: The number of qualifying bars to the right of a swing point required to confirm a structural pivot.
- InpMinDivergenceBars (Default: 5) [Integer]: Minimum bar distance between two consecutive pivots to prevent false triggers from micro-structures.
- InpMaxDivergenceBars (Default: 50) [Integer]: Maximum bar distance between two consecutive pivots beyond which structural correlation is discarded.
- InpDrawLinesOnChart (Default: true) [Boolean]: Renders connecting trendlines across corresponding price swing points on the main chart window.
- InpDrawLinesOnSubwindow (Default: true) [Boolean]: Renders connecting trendlines across corresponding momentum swing points in the indicator sub-window.
Group 6: Multi-Timeframe (MTF) Configuration Settings
- InpTimeframe (Default: PERIOD_CURRENT) [Enum Timeframes]: Selects the operational calculation timeframe. Can be locked to higher periods (e.g., H1, H4, D1) regardless of active chart period.
- InpMtfPriceMode (Default: 0) [Integer/Enum]: Determines how higher-timeframe data is mapped across lower-timeframe candles (0 = step-line matching, 1 = linear interpolation).
- InpMtfRefreshRate (Default: 1) [Integer]: Frequency in seconds for polling higher-timeframe quote synchronization.
Group 7: Visual Customization and User Interface Settings
- InpRsiColor (Default: clrDodgerBlue) [Color]: Line color assigned to the primary RSI oscillator buffer.
- InpRsiWidth (Default: 2) [Integer]: Pixel line thickness for the primary RSI oscillator curve.
- InpMaColor (Default: clrGold) [Color]: Line color assigned to the secondary moving average smoothing overlay.
- InpMaWidth (Default: 1) [Integer]: Pixel line thickness for the secondary moving average curve.
- InpBandsColor (Default: clrSilver) [Color]: Line color assigned to the upper, lower, and baseline volatility bands.
- InpBandsWidth (Default: 1) [Integer]: Pixel line thickness for the volatility envelope lines.
- InpBullishDivColor (Default: clrLimeGreen) [Color]: Color applied to Regular Bullish divergence connecting lines and markers.
- InpBearishDivColor (Default: clrCrimson) [Color]: Color applied to Regular Bearish divergence connecting lines and markers.
- InpHiddenBullishColor (Default: clrMediumSeaGreen) [Color]: Color applied to Hidden Bullish divergence connecting lines and markers.
- InpHiddenBearishColor (Default: clrTomato) [Color]: Color applied to Hidden Bearish divergence connecting lines and markers.
- InpShowHud (Default: true) [Boolean]: Toggles the on-screen Heads-Up Display panel showing quantitative momentum metrics.
- InpHudCorner (Default: CORNER_LEFT_UPPER) [Enum Base Corner]: Corner placement for the on-screen informational HUD box.
- InpHudXOffset (Default: 20) [Integer]: Horizontal pixel distance from the chosen anchor corner.
- InpHudYOffset (Default: 20) [Integer]: Vertical pixel distance from the chosen anchor corner.
Group 8: Unified Alert and Notification Settings
- InpAlertPopup (Default: true) [Boolean]: Triggers a native visual dialog box inside the MetaTrader 5 terminal when a signal event confirms.
- InpAlertSound (Default: true) [Boolean]: Emits an acoustic terminal alert upon signal confirmation.
- InpSoundFile (Default: "alert.wav") [String]: Sound file name located in the terminal Sounds directory.
- InpAlertPush (Default: true) [Boolean]: Dispatches real-time push notifications to registered MetaTrader mobile terminals via MetaQuotes ID.
- InpAlertEmail (Default: false) [Boolean]: Dispatches signal event details via SMTP email configured within terminal settings.
- InpAlertDivergence (Default: true) [Boolean]: Enables notifications for confirmed Regular and Hidden divergence events.
- InpAlertCrossMa (Default: false) [Boolean]: Enables notifications when the primary RSI line crosses above or below the secondary smoothing line.
- InpAlertLevelExits (Default: true) [Boolean]: Enables notifications when the RSI crosses back inside structural overbought (70) or oversold (30) levels.
- InpAlertCooldownBars (Default: 1) [Integer]: Minimum bar interval between repeated alert dispatches to eliminate duplicate notifications.
Operational Recommendations and Analysis Workflow
Recommended Instruments
Pro RSI Signal Overbought Oversold Multi Filters is asset-agnostic and processes any liquid financial symbol with sufficient trading volume and continuous data feeds.
- Foreign Exchange: Major pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD) and liquid cross currency pairs.
- Precious Metals and Commodities: Spot Gold (XAUUSD), Spot Silver (XAGUSD), and crude oil contracts.
- Equity Indices: S&P 500 (US500), Nasdaq 100 (US100), DAX 40 (GER40), and FTSE 100 (UK100).
- Digital Assets: Liquid cryptocurrency contracts including BTCUSD and ETHUSD.
Recommended Timeframes by Trading Discipline
- Scalping: M1 and M5 timeframes. Recommended setup: RSI Period 7 to 10 with Wilder smoothing, pivot lookback of 3 bars, and confirmation from higher-timeframe trend filters.
- Intraday Day Trading: M15 and H1 timeframes. Recommended setup: Default settings (Period 14, Pivot lookback 5). Use the 50-level line as a directional baseline and monitor regular divergence against key support or resistance levels.
- Swing Trading: H4 and D1 timeframes. Recommended setup: Period 14 or 21 with secondary smoothing enabled. Ideal for identifying structural hidden divergences that align with macro trend continuation.
Execution Environment Requirements
- Account Architecture: Fully compatible with both Hedging and Netting account structures.
- Broker Type: Operates reliably across ECN, STP, and Raw Spread execution environments.
- Execution Latency: As a technical analytical indicator providing visual and alert signals on closed bars, sub-millisecond execution latency or specialized low-latency VPS hosting is not mandatory. Standard VPS setups are sufficient if continuous 24/7 mobile push alerting is required.
Confluence Analytical Methodologies
To extract maximum analytical utility from Pro RSI Signal Overbought Oversold Multi Filters, traders should deploy the indicator within a multi-layered confluence framework rather than relying on isolated oscillator triggers:
1. Volatility Expansion Breakouts: When the primary RSI line penetrates outside the upper Bollinger Band while simultaneously crossing above the 70 level during a confirmed price breakout, it indicates strong momentum expansion. Rather than immediate fading, traders should observe whether momentum remains supported by the secondary smoothing line.
2. Reversal Confirmation from Key Price Zones: When price tests a major horizontal resistance zone or order block, look for a confirmed Regular Bearish Divergence where RSI prints a lower high while price prints a higher high. Signal confirmation occurs once the candle closes and the primary RSI crosses below the secondary moving average line.
3. Trend Continuation via Hidden Divergence: In an established uptrend characterized by higher swing highs and higher swing lows, look for a pullback where price forms a higher low while RSI forms a lower low. The confirmation of a Hidden Bullish Divergence signal indicates underlying institutional absorption and potential trend continuation.
Terminal Resource Optimization
To maintain terminal performance when applying Pro RSI Signal Overbought Oversold Multi Filters across dozens of charts simultaneously:
- Adjust InpMaxBars: Setting this parameter to values between 500 and 1500 limits the calculation loop to recent market history, significantly reducing memory and CPU load without sacrificing analytical precision.
- Divergence Depth: The pivot parameters InpPivotLeft and InpPivotRight dictate how far the algorithm looks for structural swing points. Setting these between 3 and 7 maintains high scanning efficiency.
- Chart Clutter Management: If running multiple sub-window indicators, set InpDrawLinesOnChart to false if you prefer divergence lines displayed only within the indicator sub-window.
Frequently Asked Questions
Q: Why do Pro RSI Signal Overbought Oversold Multi Filters values match TradingView more closely than standard MetaTrader RSI?
A: Standard MetaTrader 5 RSI employs exponential smoothing variations that differ slightly from the original Wilder formulation in early data bars. Pro RSI Signal Overbought Oversold Multi Filters implements the authentic Wilder smoothing (RMA) algorithm with recursive weighting identical to modern web charting platforms, eliminating calculation discrepancies.
Q: Does Pro RSI Signal Overbought Oversold Multi Filters repaint its divergence signals or moving average lines?
A: No. When InpCalculateOnClosed is set to true (default), all calculations, moving averages, Bollinger Bands, and divergence trendlines are permanently locked upon candle closure (Bar 1). Historical signals remain completely static and will never change or disappear.
Q: Can I use this indicator inside an Expert Advisor (EA)?
A: Yes. All primary lines are mapped to standard indicator buffers:
- Buffer 0: Primary RSI curve.
- Buffer 1: Secondary Moving Average smoothing line.
- Buffer 2: Upper Bollinger Band envelope.
- Buffer 3: Lower Bollinger Band envelope.
- Buffer 4: Divergence signal markers (Bullish = 1.0, Bearish = -1.0).
Developers can read these buffers using the native MQL5 iCustom function.
Q: How do I receive push notifications on my mobile phone?
A: Open MetaTrader 5 on your mobile device (iOS or Android), navigate to Settings > Messages, and copy your unique MetaQuotes ID. In your desktop terminal, navigate to Tools > Options > Notifications, check "Enable Push Notifications", enter your MetaQuotes ID, and click "Test". Once verified, set InpAlertPush to true in the indicator inputs.
Risk Disclaimer
Trading foreign exchange, commodities, indices, cryptocurrencies, and other financial instruments involves significant risk of capital loss and is not suitable for all investors. The high degree of leverage that is often obtainable in financial trading can work against you as well as for you. Past performance of any technical methodology or mathematical formula does not guarantee or indicate future operational results.
Pro RSI Signal Overbought Oversold Multi Filters is a technical analysis software tool designed solely to assist market participants in quantitative momentum observation. It does not provide direct financial investment advice, personal portfolio guidance, or automated financial guarantees. Users are strongly advised to thoroughly test the software within a demo account environment across multiple market conditions before considering application in live trading accounts.
