Relative Vigor Index RVI Cross Signal Multi Filter
- 지표
- 버전: 1.0
- 활성화: 5
Relative Vigor Index RVI Cross Signal Multi Filter
Overview
RVI Multi Filter Indicator is a technical analysis tool developed for MetaTrader 4 (MT4) that combines the Relative Vigor Index (RVI) oscillator with a modular 15-filter confirmation suite and dynamic Average True Range (ATR) target visualization. The primary objective of this indicator is to detect momentum shifts and trend continuations while filtering out false signals during low-volatility or consolidating market conditions. It plots clear directional arrows directly on the main price chart and calculates visual Stop Loss (SL) and multiple Take Profit (TP) reference levels based on current market volatility. Because this software is strictly a technical indicator, it provides visual signals and notifications without executing automated trades. It functions as a rule-based decision-support overlay designed to standardize signal detection, confirmation filtering, and risk-to-reward mapping across different asset classes and timeframes.
Operating Principle and Signal Logic
The indicator relies on the standard Relative Vigor Index (RVI) algorithm, which measures the conviction of recent price action by comparing the closing price to the opening price relative to the high-low trading range. In bullish market phases, prices tend to close near the top of the candle range, causing the RVI value to rise; in bearish phases, prices tend to close near the bottom of the range, causing the RVI value to fall. Users can select between two distinct signal trigger modes via the input menu:
- Line Crossover Mode (ENTRY_RVI_CROSS_SIGNAL): A Buy signal is initiated when the RVI Main line crosses above the RVI Signal line on a closed candle (specifically when the previous closed bar had Main less than or equal to Signal, and the newly closed bar has Main greater than Signal). A Sell signal is initiated when the RVI Main line crosses below the RVI Signal line on a closed candle (previous closed bar Main greater than or equal to Signal, and newly closed bar Main less than Signal). This mode is typically used to capture early momentum shifts and swing turns.
- Zero Level Crossover Mode (ENTRY_RVI_CROSS_ZERO): A Buy signal is initiated when the RVI Main line crosses above the 0.0 equilibrium level from below on a closed candle. A Sell signal is initiated when the RVI Main line crosses below the 0.0 equilibrium level from above on a closed candle. This mode generally produces fewer signals than the line crossover mode and focuses on confirmed directional momentum breakouts across the neutral centerline.
Multi-Filter Confirmation Architecture
Once a primary RVI crossover condition is detected, the signal is passed through an optional 15-module technical filter framework. By default, all filters are set to false so traders can observe raw RVI signals immediately upon attachment or selectively enable specific trend, momentum, volatility, and price-action modules. When multiple filters are enabled simultaneously, the indicator applies strict logical conjunction (AND logic), meaning every active condition must align at the close of the signal candle before an arrow is plotted on the chart:
- Momentum and Oscillator Filters: Relative Strength Index (RSI) threshold crossover for oversold/overbought exhaustion turns, long-period RSI trend bias relative to the 50.0 midline, Commodity Channel Index (CCI) zero-line directional trend, CCI overbought/oversold momentum zone validation, Awesome Oscillator (AO) histogram amplitude and slope confirmation, secondary long-period RVI trend alignment, and MACD histogram polarity or zero-line confirmation.
- Trend-Following Filters: Single Moving Average (MA) price positioning (price above MA for Buy, below MA for Sell), Dual Moving Average fast-versus-slow alignment, Ichimoku Kinko Hyo Senkou Span B cloud boundary validation, Parabolic SAR directional stop-and-reverse tracking, smoothed Heiken Ashi candle polarity confirmation, and ATR-based Supertrend directional band tracking.
- Price Structure Filters: Dynamic historical Support and Resistance zone proximity validation using recent swing extremes, and swing-based Fibonacci retracement zone validation mapped via internal peak-and-trough detection.
Non-Repainting Behavior and Signal Validity
All calculations for signal arrows and filter validations are strictly executed on confirmed, closed candles (Bar 1 and earlier). During initialization, the indicator processes historical closed bars up to the second-to-last bar, and on every subsequent tick, it evaluates newly closed candles. The live, forming candle (Bar 0) is continuously cleared from both display buffers until that bar closes. Consequently, once a Buy or Sell arrow appears after a candle closes, it remains fixed at that exact bar and price offset and does not disappear, shift, or repaint on subsequent ticks, timeframe toggles, or terminal restarts. Note that while signal arrows are strictly fixed on closed bars, the visual ATR target lines (Entry, SL, TP1, TP2, TP3) dynamically update to reflect the single most recent valid signal on the chart so the workspace remains uncluttered.
ATR Risk-to-Reward Visualization Engine
When InpShowSLTP is enabled, the indicator scans backward from Bar 1 to locate the most recent confirmed Buy or Sell arrow. Using the closing price of that signal candle as the Entry reference price, it reads the Average True Range (ATR) value on that exact signal bar and multiplies it by InpATRMultiplier to define one unit of volatility risk (1R):
- For Buy Signals: The Stop Loss level is projected below the Entry price by 1R (Entry minus Risk). Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3) are projected above the Entry price at 1R, 2R, and 3R respectively.
- For Sell Signals: The Stop Loss level is projected above the Entry price by 1R (Entry plus Risk). Take Profit 1 (TP1), Take Profit 2 (TP2), and Take Profit 3 (TP3) are projected below the Entry price at 1R, 2R, and 3R respectively.
This mechanism adapts target distances automatically to changing market volatility without manual measurement, allowing traders to evaluate reward-to-risk ratios objectively before placing orders.
Key Technical Features
- Dual RVI Entry Modes: Switch seamlessly between Main/Signal line crossover and Zero-line momentum breakout logic from a single dropdown menu.
- Modular 15-Filter Engine: Combine up to fifteen independent technical indicators to tailor signal frequency, filter out ranging markets, and enforce multi-factor confluence.
- Automated ATR Risk-to-Reward Levels: Automatically draws horizontal reference lines and price labels for Entry, Stop Loss (1R), TP1 (1R), TP2 (2R), and TP3 (3R) anchored to the latest confirmed signal.
- Clean Visual Interface: Customizable arrow spacing in broker points, line styles, line widths, label font sizes, and color schemes with automatic chart object cleanup upon indicator removal or parameter changes.
- Multi-Channel Alert System: Integrated notification engine supporting MT4 pop-up alerts, custom WAV sound alerts, and mobile push notifications triggered strictly once per closed candle.
- Historical Startup Protection: Built-in alert timestamp tracking prevents stale alerts from firing repeatedly when the indicator is first attached to a chart or when timeframes are switched.
Practical Configuration Workflows
Because every asset and timeframe exhibits distinct volatility and trend behavior, traders can structure the 15-filter suite around specific analytical workflows:
- Trend-Continuation Workflow: Enable a structural trend filter such as Double Moving Average (Use_DoubleMA_Filter), Ichimoku Senkou Span B (Use_Ichimoku_Filter), or Supertrend (Use_Supertrend_Filter) alongside ENTRY_RVI_CROSS_SIGNAL. This ensures RVI crossover signals are only displayed when aligned with the broader directional bias.
- Momentum Breakout Workflow: Select ENTRY_RVI_CROSS_ZERO and pair it with ADX Trend Strength (Use_ADX_Filter) and MACD Histogram confirmation (Use_MACD_Filter). Requiring ADX above a minimum threshold helps suppress signals during low-volume sideways consolidation.
- Pullback-to-Structure Workflow: Combine ENTRY_RVI_CROSS_SIGNAL with Support and Resistance proximity (Use_SR_Filter) or Fibonacci Retracement validation (Use_Fib_Filter). Signals will only trigger when an RVI momentum turn occurs near a measured historical swing level or retracement zone.
Operation and Setup Recommendations
- Financial Instruments: Suitable for major and minor Forex currency pairs (such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD), precious metals (XAUUSD, XAGUSD), stock indices (US30, NAS100, GER40), and liquid cryptocurrencies. Traders should evaluate instrument spread and commission costs relative to the chosen ATR multiplier.
- Timeframes: Compatible with all standard MT4 timeframes from M1 to MN1. M15, M30, and H1 are generally suited for intraday trading, while H4 and D1 are suited for multi-day swing setups. On lower timeframes (M1 and M5), enabling trend and ADX filters is recommended to reduce market noise.
- Broker and Account Conditions: Works on standard, ECN, and raw-spread accounts under both Hedging and Netting accounting systems. Because calculations rely on candle close prices, minor broker feed variations may occasionally shift marginal crossover bars; always verify behavior on your specific broker feed. No specialized low-latency VPS is required unless continuous 24/5 terminal uptime is needed for mobile push notifications.
- Performance Optimization: Enabling numerous computationally intensive historical filters (such as Supertrend, Ichimoku, or Swing Fibonacci) across many simultaneous charts may increase terminal CPU and memory usage. Keep unused filters set to false, reduce the maximum bars in chart history under MT4 Options if needed, and avoid opening excessive chart windows on standard hardware.
Installation and Operational Setup Guide
1. Open your MetaTrader 4 terminal and attach the indicator from the Navigator window under the Indicators list onto your chosen chart.
2. In the Inputs tab, choose your preferred InpEntryMode (Line Crossover or Zero Crossover) and set the RVI_Length period.
3. Configure the ATR risk parameters (InpATRPeriod and InpATRMultiplier) to match your preferred stop distance.
4. Scroll down to Section 4 and enable only the specific confirmation filters required for your analytical strategy.
5. If mobile notifications are desired, open MT4 Tools -> Options -> Notifications, enter your MetaQuotes ID, and verify that Enable_Push is set to true in the indicator inputs.
6. Click OK and inspect historical arrows on the chart to verify signal frequency before monitoring live closed candles.
Visual Elements and Alert System Guide
- Aqua Upward Arrow (Wingdings 233): Plotted below the candle low at a distance defined by Arrow_Distance to indicate a confirmed bullish Buy signal.
- Red Downward Arrow (Wingdings 234): Plotted above the candle high at a distance defined by Arrow_Distance to indicate a confirmed bearish Sell signal.
- Entry Line (Default: Gold): Solid horizontal line extending from the signal candle close to the right edge of the chart, labeled with the exact entry price.
- Stop Loss Line (Default: Red): Dashed horizontal line indicating the volatility-adjusted risk level (1R) calculated via ATR.
- Take Profit Lines (Default: Lime Green, Medium Sea Green, Dodger Blue): Dashed horizontal lines projecting 1:1 (TP1), 1:2 (TP2), and 1:3 (TP3) risk-to-reward target levels.
- Notifications: Alerts fire immediately upon the close of a signal candle, displaying the symbol name, chart timeframe, and signal direction (e.g., "EURUSD [PERIOD_H1] -> RVI BUY Signal").
Input Parameters Documentation
Section 1: Entry Logic and RVI Settings
- InpSection1 (Default: "=== [ENTRY LOGIC] RVI SETTINGS ==="): Visual section separator in the Inputs tab.
- InpEntryMode (Default: ENTRY_RVI_CROSS_SIGNAL): Selects the core RVI trigger condition (ENTRY_RVI_CROSS_SIGNAL for Main/Signal line crossover, or ENTRY_RVI_CROSS_ZERO for 0.0 equilibrium level crossover).
- RVI_Length (Default: 10): Number of bars used to calculate the primary Relative Vigor Index oscillator.
Section 2: Alerts and Notifications
- InpSection2 (Default: "=== [ALERTS & NOTIFICATIONS] ==="): Visual section separator in the Inputs tab.
- Arrow_Distance (Default: 30.0): Vertical offset distance between the candle high/low and the plotted signal arrow, measured in broker points.
- Enable_Alert (Default: true): Enables or disables the standard MT4 desktop pop-up alert dialog.
- Enable_Sound (Default: true): Enables or disables audible WAV sound notifications when a signal closes.
- Sound_File (Default: "alert2.wav"): File name of the audio alert located inside the MT4/Sounds folder.
- Enable_Push (Default: true): Enables or disables push notifications sent to the mobile MetaTrader application.
Section 3: ATR and Target Levels (SL/TP)
- InpSection3 (Default: "=== [ATR & TARGET LEVELS (SL/TP)] ==="): Visual section separator in the Inputs tab.
- InpShowSLTP (Default: true): Toggles the display of Entry, Stop Loss, and Take Profit horizontal lines and price labels on the chart.
- InpATRPeriod (Default: 7): Number of bars used to calculate the Average True Range (ATR) volatility value on the signal bar.
- InpATRMultiplier (Default: 1.5): Multiplier applied to the ATR value to determine the Stop Loss distance and base 1R unit.
- InpLineExtendBars (Default: 1): Number of bars the horizontal target lines extend to the right of the current active candle (Bar 0).
- InpFontSize (Default: 8): Font size in points used for the Entry, SL, and TP text labels.
- InpColorEntry (Default: clrGold): Color of the horizontal Entry reference line and label.
- InpColorSL (Default: clrRed): Color of the Stop Loss line and label.
- InpColorTP1 (Default: clrLimeGreen): Color of the Take Profit 1 (1R) line and label.
- InpColorTP2 (Default: clrMediumSeaGreen): Color of the Take Profit 2 (2R) line and label.
- InpColorTP3 (Default: clrDodgerBlue): Color of the Take Profit 3 (3R) line and label.
- InpTargetLineStyle (Default: STYLE_DASH): Visual line style (solid, dash, dot, dashdot) applied to SL and TP lines.
- InpLineWidth (Default: 1): Line thickness in pixels applied to Entry, SL, and TP lines.
Section 4: Multi-Filter Suite (15 Independent Modules)
- InpSection4 (Default: "=== [MULTI-FILTER SUITE] ==="): Visual section separator for the 15-filter framework.
Filter 1: RSI Cross Filter
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ==="): Sub-section header.
- Use_RSI_Cross_Filter (Default: false): Activates the RSI oversold/overbought threshold crossover filter.
- RSI_Length (Default: 14): Calculation period in bars for the RSI filter.
- RSI_Price_Source (Default: PRICE_CLOSE): Applied price source (Close, Open, High, Low, Median, Typical, Weighted) used for RSI calculation.
- RSI_Oversold (Default: 30.0): Lower threshold level used for Buy signal validation.
- RSI_Overbought (Default: 70.0): Upper threshold level used for Sell signal validation.
Filter 2: ADX Trend Strength Filter
- InpFilter2 (Default: "=== 2. ADX FILTER ==="): Sub-section header.
- Use_ADX_Filter (Default: false): Activates the Average Directional Index (ADX) trend strength filter.
- ADX_Period (Default: 10): Calculation period in bars for the ADX indicator.
- ADX_Min_Level (Default: 20.0): Minimum ADX main-line value required to validate a signal.
Filter 3: Single Moving Average Filter
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ==="): Sub-section header.
- Use_MA_Filter (Default: false): Activates the single Moving Average trend direction filter.
- MA_Period (Default: 50): Averaging period in bars for the Moving Average.
- MA_Method (Default: MODE_SMA): Smoothing method (SMA, EMA, SMMA, LWMA).
- MA_Shift (Default: 0): Horizontal shift of the Moving Average in bars.
Filter 4: Ichimoku Senkou Span B Filter
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ==="): Sub-section header.
- Use_Ichimoku_Filter (Default: false): Activates the Ichimoku Kinko Hyo Senkou Span B cloud boundary filter.
- Ichimoku_Tenkan (Default: 9): Tenkan-sen calculation period in bars.
- Ichimoku_Kijun (Default: 26): Kijun-sen calculation period in bars.
- Ichimoku_SenkouB (Default: 52): Senkou Span B calculation period in bars.
Filter 5: Long-Period RSI Bias Filter
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ==="): Sub-section header.
- Use_RSI75_Filter (Default: false): Activates the secondary long-period RSI equilibrium filter.
- RSI_Filter_Period (Default: 75): Calculation period in bars for the trend-bias RSI.
Filter 6: Double Moving Average Filter
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ==="): Sub-section header.
- Use_DoubleMA_Filter (Default: false): Activates the fast-versus-slow Moving Average alignment filter.
- MA_A_Period (Default: 30): Period in bars for the fast Moving Average (MA A).
- MA_A_Method (Default: MODE_EMA): Smoothing method for MA A.
- MA_A_Applied (Default: PRICE_CLOSE): Applied price type for MA A.
- MA_A_Shift (Default: 0): Horizontal bar shift for MA A.
- MA_B_Period (Default: 140): Period in bars for the slow Moving Average (MA B).
- MA_B_Method (Default: MODE_EMA): Smoothing method for MA B.
- MA_B_Applied (Default: PRICE_CLOSE): Applied price type for MA B.
- MA_B_Shift (Default: 0): Horizontal bar shift for MA B.
Filter 7: Awesome Oscillator Filter
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ==="): Sub-section header.
- Use_AO_Filter (Default: false): Master switch enabling the Awesome Oscillator (AO) module.
- Use_AO_Volume_Filter (Default: false): Requires AO histogram value to exceed specified positive or negative thresholds.
- AO_Buy_Min (Default: 4.0): Minimum AO threshold value required for Buy validation.
- AO_Sell_Max (Default: -4.0): Maximum AO threshold value required for Sell validation.
- Use_AO_Color_Filter (Default: false): Requires AO histogram bar slope to match signal direction.
- Use_AO_Zero_Filter (Default: false): Requires AO histogram to be aligned relative to the 0.0 zero line.
Filter 8: Parabolic SAR Filter
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ==="): Sub-section header.
- Use_SAR_Filter (Default: false): Activates the Parabolic Stop and Reverse trend filter.
- SAR_Step (Default: 0.02): Acceleration factor step increment for Parabolic SAR.
- SAR_Maximum (Default: 0.2): Maximum acceleration factor limit for Parabolic SAR.
Filter 9: Heiken Ashi Filter
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ==="): Sub-section header.
- Use_HeikenAshi_Filter (Default: false): Activates smoothed Heiken Ashi candle polarity confirmation.
Filter 10: CCI Trend Filter
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ==="): Sub-section header.
- Use_CCI_Filter (Default: false): Activates the Commodity Channel Index zero-line directional filter.
- CCI_Period (Default: 50): Calculation period in bars for trend CCI.
- CCI_Applied (Default: PRICE_CLOSE): Applied price source for trend CCI.
Filter 11: CCI Overbought and Oversold Filter
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ==="): Sub-section header.
- Use_CCI_OBOS_Filter (Default: false): Activates the secondary CCI momentum zone filter.
- CCI_OBOS_Period (Default: 14): Calculation period in bars for the OB/OS CCI.
- CCI_OBOS_Applied (Default: PRICE_CLOSE): Applied price source for the OB/OS CCI.
- CCI_Overbought (Default: 100.0): Upper CCI threshold level.
- CCI_Oversold (Default: -100.0): Lower CCI threshold level.
Filter 12: Secondary RVI Confirmation Filters
- InpFilter12 (Default: "=== 12. RVI FILTERS ==="): Sub-section header.
- Use_RVI_Filter (Default: false): Activates the long-period RVI zero-line trend bias filter.
- RVI_Period (Default: 75): Calculation period in bars for the long-period RVI.
- Use_RVI_Signal_Filter (Default: false): Activates the secondary RVI Main-versus-Signal line filter.
- RVI_Signal_Period (Default: 20): Calculation period in bars for the secondary RVI filter.
Filter 13: MACD Filters
- InpFilter13 (Default: "=== 13. MACD FILTERS ==="): Sub-section header.
- Use_MACD_Filter (Default: false): Activates the MACD histogram momentum alignment filter.
- MACD_FastEMA (Default: 12): Fast EMA period in bars for MACD.
- MACD_SlowEMA (Default: 26): Slow EMA period in bars for MACD.
- MACD_SignalSMA (Default: 9): Signal line SMA period in bars for MACD.
- MACD_Applied (Default: PRICE_CLOSE): Applied price source for MACD calculation.
- Use_MACD_Zero_Filter (Default: false): Requires the MACD main line to align with the 0.0 zero level.
Filter 14: Support, Resistance, and Fibonacci Filters
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ==="): Sub-section header.
- Use_SR_Filter (Default: false): Activates historical Support and Resistance zone proximity filtering.
- SR_Period (Default: 50): Lookback window in bars to identify recent swing highs and lows.
- SR_Zone_Points (Default: 80): Tolerance zone buffer around Support/Resistance levels measured in broker points.
- Use_Fib_Filter (Default: false): Activates swing-based Fibonacci retracement zone validation.
- Fib_Level_1 (Default: 0.382): First Fibonacci retracement ratio boundary.
- Fib_Level_2 (Default: 0.618): Second Fibonacci retracement ratio boundary.
- ZigZag_Depth (Default: 12): Minimum bar depth used to detect swing points for Fibonacci mapping.
- ZigZag_Deviation (Default: 5): Minimum price deviation in points for swing detection.
- ZigZag_Backstep (Default: 3): Minimum bar separation between consecutive swing highs or lows.
Filter 15: Supertrend Filter
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ==="): Sub-section header.
- Use_Supertrend_Filter (Default: false): Activates the ATR-based Supertrend directional filter.
- ST_AtrPeriod (Default: 10): ATR lookback period in bars for Supertrend calculation.
- ST_Factor (Default: 3.0): ATR band multiplier factor for Supertrend volatility bands.
Risk Disclaimer
Trading foreign exchange, commodities, indices, and other financial instruments on margin carries a high level of risk and may not be suitable for all investors. Past performance is not indicative of future results. This indicator is an analytical software tool designed solely to assist traders with technical chart analysis and does not constitute financial advice or guarantee trading profits. Always test this product thoroughly on a demo account to understand its operational behavior and parameter sensitivity before applying it to live market analysis.
