RSI Overbought Oversold Trend Multi Filter Signal
- 지표
- 버전: 1.0
- 활성화: 5
RSI Overbought Oversold Trend Multi Filter Signal
1. Product Overview
RSI TVKU v1.00 is a technical analysis custom indicator for MetaTrader 4 (MT4) that detects momentum reversal setups via Relative Strength Index (RSI) threshold crossovers, validates candidate signals through a modular 15-filter confirmation suite, and projects volatility-based Stop Loss (SL) and Take Profit (TP) reference levels on the chart.
- Tool Classification: Custom Chart-Window Technical Indicator (analytical and visual notification tool only; does not execute or manage trades).
- Core Purpose: Identifies closed-bar BUY and SELL momentum shifts while allowing traders to combine trend, volatility, oscillator, and market-structure confirmation filters before plotting arrows or sending alerts.
- Volatility Risk-Reward Overlay: Samples Average True Range (ATR) on the signal bar to draw horizontal lines and price labels for Entry, SL, TP1 (1R), TP2 (2R), and TP3 (3R) on the most recent confirmed signal.
- Multi-Channel Notifications: Supports MT4 pop-up alerts, WAV audio playback, MetaQuotes ID mobile push notifications, and SMTP email alerts with full price level coordinates.
2. Technical Operating Principle
To maintain full analytical transparency without exposing proprietary internal calculation routines, RSI TVKU v1.00 operates across four sequential stages:
2.1. Closed-Bar Evaluation and Non-Repainting Behavior
- Closed-Candle Calculation (Bar 1): All primary entry conditions, confirmation filters, arrows, and alerts are evaluated strictly on completed bars (Bar 1 and older). The active candle (Bar 0) is excluded to prevent unstable intra-bar triggers.
- Non-Repainting Signal Buffers: Once a bar closes and passes the primary RSI rule plus all enabled filters, its BUY or SELL arrow buffer is permanently fixed at that bar index and never shifts or disappears on subsequent ticks.
- Structural Filter Transparency: When Filter 14 (Fibonacci Retracement) is enabled, swing high and low points are evaluated strictly from bars preceding the closed signal candle so plotted historical signals remain stationary.
2.2. Primary Entry Signal Logic (RSI Threshold Crossover)
- Bullish Entry Trigger (BUY): Generated when the primary RSI on the newly closed candle (Bar 1) crosses strictly above `Entry_Oversold` (default 30.0) from a prior closed candle (Bar 2) reading at or below `Entry_Oversold`.
- Bearish Entry Trigger (SELL): Generated when the primary RSI on the newly closed candle (Bar 1) crosses strictly below `Entry_Overbought` (default 70.0) from a prior closed candle (Bar 2) reading at or above `Entry_Overbought`.
- Confirmation Gate: A candidate signal plots an arrow and triggers alerts only when every enabled module in the 15-filter suite confirms the same direction on that closed bar; any conflicting active filter suppresses the signal.
2.3. Modular 15-Filter Confirmation Suite
All 15 filters default to `false` so users can activate individual rules or stack multiple filters simultaneously using logical AND rules:
- Filter 1 (Secondary RSI Cross): Evaluates an independent RSI period and thresholds to confirm oversold cross-up for BUY or overbought cross-down for SELL.
- Filter 2 (ADX Trend Strength): Requires the Average Directional Movement Index (ADX) main line to equal or exceed `ADX_Min_Level` before permitting BUY or SELL signals.
- Filter 3 (Single Moving Average): Requires closed price above the configured Moving Average for BUY and below it for SELL.
- Filter 4 (Ichimoku Senkou Span B): Compares closed price against Ichimoku Senkou Span B, allowing BUY above the baseline and SELL below it.
- Filter 5 (Long-Period RSI 75 Bias): Evaluates macro momentum around the 50.0 midpoint using `RSI_Filter_Period` (default 75), requiring readings above 50.0 for BUY and below 50.0 for SELL.
- Filter 6 (Double Moving Average Alignment): Requires fast Moving Average (`MA_A`) above slow Moving Average (`MA_B`) for BUY, and `MA_A` below `MA_B` for SELL.
- Filter 7 (Awesome Oscillator Multi-Mode): Supports three sub-filters on Bill Williams Awesome Oscillator (AO): minimum/maximum amplitude thresholds (`AO_Buy_Min` / `AO_Sell_Max`), bar-over-bar histogram slope direction, and zero-line momentum alignment.
- Filter 8 (Parabolic SAR): Requires Wilder's Parabolic SAR dots below closed price for BUY and above closed price for SELL.
- Filter 9 (Heiken Ashi Polarity): Computes synthetic Heiken Ashi candles, permitting BUY only on bullish bodies (`HA Close > HA Open`) and SELL only on bearish bodies (`HA Close < HA Open`).
- Filter 10 (CCI Zero-Line Trend): Uses a trend Commodity Channel Index (`CCI_Period`, default 50), requiring values above 0.0 for BUY and below 0.0 for SELL.
- Filter 11 (CCI Overbought/Oversold): Uses a short-period CCI (`CCI_OBOS_Period`, default 14) to confirm momentum beyond `CCI_Overbought` for BUY or below `CCI_Oversold` for SELL.
- Filter 12 (Relative Vigor Index): Provides macro RVI zero-line polarity (`RVI_Period`, default 75) and tactical RVI main-versus-signal alignment (`RVI_Signal_Period`, default 20).
- Filter 13 (MACD Histogram and Zero-Line): Checks MACD histogram polarity (`Main - Signal > 0` for BUY, `< 0` for SELL) and zero-line regime (`MACD_Main > 0` for BUY, `< 0` for SELL).
- Filter 14 (Support/Resistance and Fibonacci Retracement): Checks price proximity within `SR_Zone_Points` of rolling swing highs/lows (`SR_Period`) and validates whether price interacts with the retracement zone between `Fib_Level_1` and `Fib_Level_2` derived from internal swing detection.
- Filter 15 (ATR-Based Supertrend): Uses an internal Wilder-smoothed ATR volatility band structure (`ST_AtrPeriod`, `ST_Factor`) to permit BUY only in bullish regime states and SELL only in bearish regime states.
2.4. ATR Risk and Target Projection Logic
- Volatility Risk Unit (1R): On each confirmed signal bar, `1R` equals `ATR(ATR_Period) * ATR_Multiplier`.
- BUY Levels: Entry is anchored at `Close[signal_bar]`; SL is `Entry - 1R`; TP1 is `Entry + 1R`; TP2 is `Entry + 2R`; TP3 is `Entry + 3R`.
- SELL Levels: Entry is anchored at `Close[signal_bar]`; SL is `Entry + 1R`; TP1 is `Entry - 1R`; TP2 is `Entry - 2R`; TP3 is `Entry - 3R`.
3. Key Features and Graphical Interface Specifications
- Dual-Buffer Signal Arrows: Plots non-repainting Wingdings arrows on the main chart using code 233 (Aqua upward arrow below candle low) for BUY and code 234 (Red downward arrow above candle high) for SELL, spaced by `Arrow_Distance` points.
- Single-Setup Target Overlay: Renders horizontal trendlines and right-aligned price labels exclusively for the most recent valid signal, automatically extending lines as new bars open.
- Default Color Coding: Entry uses a solid Gold line (`clrGold`), SL uses dashed Red (`clrRed`), TP1 (1R) uses dashed Lime Green (`clrLimeGreen`), TP2 (2R) uses dashed Medium Sea Green (`clrMediumSeaGreen`), and TP3 (3R) uses dashed Dodger Blue (`clrDodgerBlue`).
- Automatic Object Cleanup: Removes all indicator-created chart lines and labels automatically when detached, recompiled, or when `Show_Target_Lines` is disabled.
- Single-Trigger Alert Delivery: Fires once per closed bar (`Bar 1`) to prevent alert spam, including symbol, timeframe, direction, and Entry/SL/TP1/TP2/TP3 coordinates when target lines are active.
- Resource Efficiency: Requires at least 100 bars (`rates_total >= 100`), updates only newly closed bars on incremental ticks, and frees internal arrays in `OnDeinit`. Note: Activating multiple heavy structural filters simultaneously (Heiken Ashi, Supertrend, ZigZag Fibonacci) across many open charts increases CPU load; limit simultaneous charts on modest PCs.
4. Operation and Setup Recommendations
- Supported Instruments: Compatible with liquid Forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD), metals (XAUUSD), indices, and CFDs on MT4. Adjust point-based inputs (`Arrow_Distance`, `SR_Zone_Points`) proportionally for 3-digit, 5-digit, or index tick sizes.
- Supported Timeframes: Operates on all MT4 timeframes (M1 to MN1). M15, M30, and H1 suit intraday analysis, while H4 and D1 suit swing-trading workflows.
- Broker and Execution Setup: Works on both Hedging and Netting MT4 accounts (Standard or ECN). Low-spread ECN feeds provide cleaner candle closes. A VPS is optional and needed only for continuous 24/5 push or email notifications while your local PC is off.
- Setup Steps: Attach the indicator to a chart, adjust RSI entry and ATR target settings, enable desired confirmation filters, and configure `Tools -> Options -> Notifications` (MetaQuotes ID) or `Tools -> Options -> Email` (SMTP) in MT4 if external alerts are used.
5. Input Parameters Documentation
Complete list of all 108 input parameters in the MT4 `Inputs` tab:
5.1. Primary RSI Entry Signal Settings
- `InpGroup1` (Default: `"=== RSI ENTRY SIGNAL SETTINGS ==="`) -> Visual section header in Inputs tab (text label).
- `Entry_RSI_Length` (Default: `8`) -> Lookback period for the primary entry RSI (bars).
- `Entry_RSI_Price_Source` (Default: `PRICE_CLOSE`) -> Applied price series for the primary entry RSI (price enum).
- `Entry_Oversold` (Default: `30.0`) -> Lower RSI threshold crossed upward to trigger candidate BUY signals (RSI units, 0 to 100).
- `Entry_Overbought` (Default: `70.0`) -> Upper RSI threshold crossed downward to trigger candidate SELL signals (RSI units, 0 to 100).
5.2. Arrow and Alert Settings
- `InpGroup2` (Default: `"=== ARROW & ALERT SETTINGS ==="`) -> Visual section header for arrow and alert settings (text label).
- `Arrow_Distance` (Default: `80.0`) -> Vertical offset between candle high/low and plotted signal arrow (broker points).
- `Enable_Alert` (Default: `true`) -> Enables or disables MT4 pop-up alert windows on confirmed Bar 1 signals (boolean).
- `Enable_Sound` (Default: `true`) -> Enables or disables WAV sound playback on signal confirmation (boolean).
- `Sound_File` (Default: `"alert2.wav"`) -> Audio file name inside the MT4 `Sounds` folder (string).
- `Enable_Push` (Default: `true`) -> Enables or disables mobile push alerts to MetaQuotes ID (boolean).
- `Enable_Email` (Default: `false`) -> Enables or disables SMTP email notifications from MT4 (boolean).
- `Email_Subject` (Default: `"RSI TVKU Signal"`) -> Email subject prefix combined with signal direction (string).
5.3. ATR and Target Levels (SL/TP) Settings
- `InpGroup3` (Default: `"=== ATR & TARGET LEVELS (SL/TP) ==="`) -> Visual section header for ATR target levels (text label).
- `Show_Target_Lines` (Default: `true`) -> Enables or disables drawing Entry, SL, TP1, TP2, and TP3 lines on the chart (boolean).
- `ATR_Period` (Default: `7`) -> Lookback period for the ATR volatility calculation (bars).
- `ATR_Multiplier` (Default: `1.5`) -> Multiplier applied to ATR to define the 1R Stop Loss distance (multiplier factor).
- `Line_Extension_Bars` (Default: `1`) -> Number of bar widths to extend target lines right of the current bar (bars, minimum 1).
- `Label_Font_Size` (Default: `8`) -> Font size for Entry, SL, and TP chart labels (font points).
- `Color_Entry` (Default: `clrGold`) -> Color of the solid Entry reference line and label (color).
- `Color_SL` (Default: `clrRed`) -> Color of the Stop Loss line and label (color).
- `Color_TP1` (Default: `clrLimeGreen`) -> Color of the TP1 (1R) line and label (color).
- `Color_TP2` (Default: `clrMediumSeaGreen`) -> Color of the TP2 (2R) line and label (color).
- `Color_TP3` (Default: `clrDodgerBlue`) -> Color of the TP3 (3R) line and label (color).
- `Target_Line_Style` (Default: `STYLE_DASH`) -> Line style for SL and TP lines (line style enum).
- `Line_Width` (Default: `1`) -> Stroke width of Entry, SL, and TP lines (pixels).
5.4. Filter 1: RSI Cross Filter
- `InpFilter1` (Default: `"=== 1. RSI CROSS FILTER ==="`) -> Visual section header for Filter 1 (text label).
- `Use_RSI_Cross_Filter` (Default: `false`) -> Enables or disables secondary RSI crossover confirmation (boolean).
- `RSI_Length` (Default: `14`) -> Lookback period for the secondary confirmation RSI (bars).
- `RSI_Price_Source` (Default: `PRICE_CLOSE`) -> Applied price series for the secondary RSI (price enum).
- `RSI_Oversold` (Default: `30.0`) -> Oversold cross-up threshold required for BUY confirmation (RSI units).
- `RSI_Overbought` (Default: `70.0`) -> Overbought cross-down threshold required for SELL confirmation (RSI units).
5.5. Filter 2: ADX Trend Strength Filter
- `InpFilter2` (Default: `"=== 2. ADX FILTER ==="`) -> Visual section header for Filter 2 (text label).
- `Use_ADX_Filter` (Default: `false`) -> Enables or disables ADX trend strength filtering (boolean).
- `ADX_Period` (Default: `10`) -> Calculation period for the ADX indicator (bars).
- `ADX_Min_Level` (Default: `20.0`) -> Minimum ADX main line level required to validate signals (ADX units).
5.6. Filter 3: Single Moving Average Filter
- `InpFilter3` (Default: `"=== 3. SINGLE MA FILTER ==="`) -> Visual section header for Filter 3 (text label).
- `Use_MA_Filter` (Default: `false`) -> Enables or disables single Moving Average trend filtering (boolean).
- `MA_Period` (Default: `50`) -> Averaging period for the single Moving Average (bars).
- `MA_Method` (Default: `MODE_SMA`) -> Smoothing method (`SMA`, `EMA`, `SMMA`, `LWMA`) for the single MA (MA method enum).
- `MA_Shift` (Default: `0`) -> Horizontal bar shift for the single MA (bars).
5.7. Filter 4: Ichimoku Senkou Span B Filter
- `InpFilter4` (Default: `"=== 4. ICHIMOKU SENKOU SPAN B FILTER ==="`) -> Visual section header for Filter 4 (text label).
- `Use_Ichimoku_Filter` (Default: `false`) -> Enables or disables Ichimoku Senkou Span B baseline filtering (boolean).
- `Ichimoku_Tenkan` (Default: `9`) -> Tenkan-sen calculation period (bars).
- `Ichimoku_Kijun` (Default: `26`) -> Kijun-sen calculation period (bars).
- `Ichimoku_SenkouB` (Default: `52`) -> Senkou Span B calculation period used as trend baseline (bars).
5.8. Filter 5: Long-Period RSI 75 Filter
- `InpFilter5` (Default: `"=== 5. RSI 75 FILTER ==="`) -> Visual section header for Filter 5 (text label).
- `Use_RSI75_Filter` (Default: `false`) -> Enables or disables long-period RSI 50.0 midpoint filtering (boolean).
- `RSI_Filter_Period` (Default: `75`) -> Lookback period for the macro RSI trend filter (bars).
5.9. Filter 6: Double Moving Average Alignment Filter
- `InpFilter6` (Default: `"=== 6. DOUBLE MA FILTER ==="`) -> Visual section header for Filter 6 (text label).
- `Use_DoubleMA_Filter` (Default: `false`) -> Enables or disables fast-versus-slow Moving Average alignment filtering (boolean).
- `MA_A_Period` (Default: `30`) -> Averaging period for fast Moving Average `MA_A` (bars).
- `MA_A_Method` (Default: `MODE_EMA`) -> Smoothing method for fast `MA_A` (MA method enum).
- `MA_A_Applied` (Default: `PRICE_CLOSE`) -> Applied price series for fast `MA_A` (price enum).
- `MA_A_Shift` (Default: `0`) -> Horizontal bar shift for fast `MA_A` (bars).
- `MA_B_Period` (Default: `140`) -> Averaging period for slow Moving Average `MA_B` (bars).
- `MA_B_Method` (Default: `MODE_EMA`) -> Smoothing method for slow `MA_B` (MA method enum).
- `MA_B_Applied` (Default: `PRICE_CLOSE`) -> Applied price series for slow `MA_B` (price enum).
- `MA_B_Shift` (Default: `0`) -> Horizontal bar shift for slow `MA_B` (bars).
5.10. Filter 7: Awesome Oscillator Filter
- `InpFilter7` (Default: `"=== 7. AWESOME OSCILLATOR FILTER ==="`) -> Visual section header for Filter 7 (text label).
- `Use_AO_Filter` (Default: `false`) -> Master switch for Awesome Oscillator confirmation checks (boolean).
- `Use_AO_Volume_Filter` (Default: `false`) -> Enables minimum/maximum AO amplitude threshold filtering (boolean).
- `AO_Buy_Min` (Default: `4.0`) -> Minimum positive AO value required for BUY confirmation (oscillator units).
- `AO_Sell_Max` (Default: `-4.0`) -> Maximum negative AO value required for SELL confirmation (oscillator units).
- `Use_AO_Color_Filter` (Default: `false`) -> Requires rising AO (`AO[1] > AO[2]`) for BUY and falling AO (`AO[1] < AO[2]`) for SELL (boolean).
- `Use_AO_Zero_Filter` (Default: `false`) -> Requires rising AO above 0.0 for BUY and falling AO below 0.0 for SELL (boolean).
5.11. Filter 8: Parabolic SAR Filter
- `InpFilter8` (Default: `"=== 8. PARABOLIC SAR FILTER ==="`) -> Visual section header for Filter 8 (text label).
- `Use_SAR_Filter` (Default: `false`) -> Enables or disables Parabolic SAR trend-dot filtering (boolean).
- `SAR_Step` (Default: `0.02`) -> Acceleration factor step increment for Parabolic SAR (step increment).
- `SAR_Maximum` (Default: `0.2`) -> Maximum acceleration factor cap for Parabolic SAR (maximum limit).
5.12. Filter 9: Heiken Ashi Filter
- `InpFilter9` (Default: `"=== 9. HEIKEN ASHI FILTER ==="`) -> Visual section header for Filter 9 (text label).
- `Use_HeikenAshi_Filter` (Default: `false`) -> Enables or disables synthetic Heiken Ashi candle body polarity filtering (boolean).
5.13. Filter 10: CCI Trend Filter
- `InpFilter10` (Default: `"=== 10. CCI TREND FILTER ==="`) -> Visual section header for Filter 10 (text label).
- `Use_CCI_Filter` (Default: `false`) -> Enables or disables Commodity Channel Index zero-line trend filtering (boolean).
- `CCI_Period` (Default: `50`) -> Lookback period for the trend CCI calculation (bars).
- `CCI_Applied` (Default: `PRICE_CLOSE`) -> Applied price series for the trend CCI (price enum).
5.14. Filter 11: CCI Overbought and Oversold Filter
- `InpFilter11` (Default: `"=== 11. CCI OB & OS FILTER ==="`) -> Visual section header for Filter 11 (text label).
- `Use_CCI_OBOS_Filter` (Default: `false`) -> Enables or disables short-period CCI threshold filtering (boolean).
- `CCI_OBOS_Period` (Default: `14`) -> Lookback period for the short-period CCI check (bars).
- `CCI_OBOS_Applied` (Default: `PRICE_CLOSE`) -> Applied price series for the short-period CCI (price enum).
- `CCI_Overbought` (Default: `100.0`) -> Upper CCI threshold required to be exceeded (`CCI > CCI_Overbought`) for BUY (CCI units).
- `CCI_Oversold` (Default: `-100.0`) -> Lower CCI threshold required to be breached (`CCI < CCI_Oversold`) for SELL (CCI units).
5.15. Filter 12: RVI Trend and Signal Filters
- `InpFilter12` (Default: `"=== 12. RVI FILTERS ==="`) -> Visual section header for Filter 12 (text label).
- `Use_RVI_Filter` (Default: `false`) -> Enables or disables Relative Vigor Index zero-line polarity filtering (boolean).
- `RVI_Period` (Default: `75`) -> Averaging period for the macro RVI zero-line trend check (bars).
- `Use_RVI_Signal_Filter` (Default: `false`) -> Enables or disables RVI main-versus-signal line alignment filtering (boolean).
- `RVI_Signal_Period` (Default: `20`) -> Averaging period for the tactical RVI signal-line check (bars).
5.16. Filter 13: MACD Histogram and Zero-Line Filters
- `InpFilter13` (Default: `"=== 13. MACD FILTERS ==="`) -> Visual section header for Filter 13 (text label).
- `Use_MACD_Filter` (Default: `false`) -> Enables or disables MACD histogram polarity filtering (`Main - Signal > 0` for BUY, `< 0` for SELL) (boolean).
- `MACD_FastEMA` (Default: `12`) -> Fast EMA period for MACD (bars).
- `MACD_SlowEMA` (Default: `26`) -> Slow EMA period for MACD (bars).
- `MACD_SignalSMA` (Default: `9`) -> Signal SMA period for MACD (bars).
- `MACD_Applied` (Default: `PRICE_CLOSE`) -> Applied price series for MACD (price enum).
- `Use_MACD_Zero_Filter` (Default: `false`) -> Enables or disables MACD main-line zero-level filtering (`Main > 0` for BUY, `< 0` for SELL) (boolean).
5.17. Filter 14: Support/Resistance and Fibonacci Retracement Filters
- `InpFilter14` (Default: `"=== 14. SR & FIBONACCI FILTERS ==="`) -> Visual section header for Filter 14 (text label).
- `Use_SR_Filter` (Default: `false`) -> Enables or disables rolling Support and Resistance zone proximity filtering (boolean).
- `SR_Period` (Default: `50`) -> Lookback bars scanned to find rolling Support low and Resistance high (bars).
- `SR_Zone_Points` (Default: `80`) -> Allowed price buffer around Support or Resistance levels to qualify as a touch (broker points).
- `Use_Fib_Filter` (Default: `false`) -> Enables or disables Fibonacci retracement zone validation between two swing ratios (boolean).
- `Fib_Level_1` (Default: `0.382`) -> First Fibonacci retracement boundary ratio (decimal ratio).
- `Fib_Level_2` (Default: `0.618`) -> Second Fibonacci retracement boundary ratio (decimal ratio).
- `ZigZag_Depth` (Default: `12`) -> Minimum bar span on each side of a candidate peak or trough for swing detection (bars).
- `ZigZag_Deviation` (Default: `5`) -> Minimum price displacement required to register a new swing high or low (broker points).
- `ZigZag_Backstep` (Default: `3`) -> Minimum bar separation between consecutive swing points of the same type (bars).
5.18. Filter 15: Supertrend Filter
- `InpFilter15` (Default: `"=== 15. SUPERTREND FILTER ==="`) -> Visual section header for Filter 15 (text label).
- `Use_Supertrend_Filter` (Default: `false`) -> Enables or disables the internal ATR-based Supertrend regime filter (boolean).
- `ST_AtrPeriod` (Default: `10`) -> Wilder-smoothed ATR period used to compute Supertrend bands (bars).
- `ST_Factor` (Default: `3.0`) -> Volatility multiplier applied to ATR for Supertrend upper and lower bands (multiplier factor).
6. Risk Disclaimer
Trading foreign exchange, commodities, indices, and other leveraged financial instruments involves substantial risk of capital loss and may not be suitable for all investors. Past performance, historical chart signals, or risk-reward projections do not guarantee future results. RSI TVKU v1.00 is an analytical technical indicator intended solely to assist traders in chart evaluation and signal notification; it does not provide financial advice or guarantee profits. Always test the indicator thoroughly on a demo account before applying it to live market decisions.
