CCI Momentum Trend Oversold Overbought MultiFilter
- インディケータ
- バージョン: 1.0
- アクティベーション: 5
CCI Momentum Trend Oversold Overbought MultiFilter
CCI Multi Strategy Signal with ATR Targets and Multi Filter
1. Product Overview
- Product Type: Technical Analysis Custom Indicator for MetaTrader 4 (MT4) featuring a separate oscillator sub-window, main-chart directional signal arrows, dynamic ATR-based risk projection lines, and a modular 15-filter confirmation suite.
- Core Objective: Designed to identify momentum shifts, overbought/oversold reversals, and trend-aligned continuation setups using the Commodity Channel Index (CCI) combined with optional multi-indicator confluence filtering and structured Reward-to-Risk (RR) reference levels.
- Target Workflow: Built for discretionary and semi-automated technical traders who require objective signal filtering, visual Stop Loss (SL) and Take Profit (TP) planning directly on the price chart, and multi-channel alert notifications upon bar close.
2. Technical Operating Principle
- Base Oscillator Calculation: Evaluates price deviation from its statistical mean using the standard Commodity Channel Index (CCI) across a user-defined lookback period and applied price source.
- Selectable Entry Modes: Offers three distinct operational frameworks selectable via dropdown menu without requiring separate indicator files:
* Mode 0 (ENTRY_OB_OS - Overbought/Oversold Reversal): Identifies exhaustion recovery setups when the primary CCI line exits extreme upper or lower threshold zones back toward equilibrium.
* Mode 1 (ENTRY_ZERO_CROSS - Zero-Line Momentum Cross): Captures directional momentum shifts when the primary CCI oscillator crosses above or below the neutral 0.0 baseline.
* Mode 2 (ENTRY_TREND_FILTER - Dual CCI Alignment): Combines a long-period macro Trend CCI filter with a short-period Entry CCI trigger so signals occur only in the prevailing broader trend direction.
- Modular 15-Filter Confluence Gate: Raw CCI triggers pass through a sequential validation pipeline where any enabled filters from the 15 built-in technical modules must agree directionally before a signal arrow is plotted.
- Dynamic ATR Risk Projection: Upon signal confirmation, the indicator samples the Average True Range (ATR) on the signal candle to calculate an initial volatility-adjusted risk unit (1R), projecting horizontal Entry, Stop Loss (1R), Take Profit 1 (1R), Take Profit 2 (2R), and Take Profit 3 (3R) lines for the latest active setup.
- Signal Timing and Non-Repainting Behavior: All historical and real-time signal evaluations are executed strictly on closed candles (Bar 1) after bar completion. Once a signal arrow is confirmed and drawn on a closed candle, it does not repaint, recalculate, shift position, or disappear on subsequent market ticks.
3. Key Technical Features
- Three-in-One CCI Architecture: Switch seamlessly between Reversal, Zero-Cross, and Dual-CCI Trend modes within a single lightweight indicator instance.
- 15 Independent Confirmation Filters: Includes optional confluence gates for RSI Cross, ADX Trend Strength, Single Moving Average, Ichimoku Senkou Span B, Long-Period RSI, Double Moving Average, Awesome Oscillator, Parabolic SAR, Heiken Ashi, Secondary CCI Trend, Secondary CCI OB/OS, Relative Vigor Index (RVI), MACD Histogram/Zero, Support/Resistance & Fibonacci Zones, and Supertrend.
- Automated Volatility Target Mapping: Draws clean horizontal reference lines and price labels for Entry, SL, TP1 (1R), TP2 (2R), and TP3 (3R) based on customizable ATR multipliers, updating automatically when a newer confirmed signal occurs.
- Configurable Sub-Window Display: Option to display the primary CCI oscillator line with dynamic horizontal reference levels or hide the oscillator curve for minimalist chart layouts.
- Multi-Channel Alert Engine: Supports terminal pop-up windows, custom Buy/Sell WAV audio files, mobile push notifications via MetaQuotes ID, and SMTP email alerts triggered strictly on closed bars.
- History Scan Limiter: Includes a user-defined historical bar cap to maintain fast chart initialization and low CPU/RAM consumption across multiple open charts.
4. Operational Specifications and Setup Recommendations
- Supported Instruments: Compatible with major and minor Forex currency pairs (such as EURUSD, GBPUSD, USDJPY, AUDUSD), metals (XAUUSD), indices, and liquid CFD symbols.
- Recommended Timeframes: Operates across all standard MT4 timeframes; M15 and M30 are suited for intraday momentum setups, while H1 and H4 provide cleaner structural signals with lower market noise.
- Account and Broker Environment: Works on both Hedging and Netting account structures across Standard and ECN brokers; symbols with tight spreads allow cleaner alignment with ATR-based 1R, 2R, and 3R projection levels.
- Computational Efficiency: When activating multiple advanced filters simultaneously (such as Support/Resistance lookbacks, Fibonacci swing detection, or Supertrend), keep MaxHistoryBars within reasonable limits (e.g., 5,000 to 10,000 bars) if running numerous charts concurrently on modest hardware.
- Graphical User Interface (GUI) Elements:
* Sub-Window Yellow Line: Displays the primary Entry CCI value alongside dotted silver reference levels (0.0 line, plus Overbought/Oversold levels when Mode 0 is active).
* Main Chart Arrows: Upward arrows (default Aqua) below candle lows indicate confirmed bullish Buy setups; downward arrows (default Red) above candle highs indicate confirmed bearish Sell setups.
* Target Projection Lines: Solid line marks the signal close Entry reference price, while dashed lines mark Stop Loss (Red) and progressive Take Profit tiers (TP1, TP2, TP3) extending to the right of the live candle.
- Alert Behavior: Notifications fire once per closed candle upon confirmed signal validation and are automatically suppressed during Strategy Tester or optimization runs to avoid log clutter.
5. Complete Input Parameters Documentation
- Core Strategy Selection (Section 1.1):
* EntryMode (Default: ENTRY_OB_OS): Selects the primary CCI signal generation mode (ENTRY_OB_OS = 0 for Overbought/Oversold reversal, ENTRY_ZERO_CROSS = 1 for Zero-Line momentum cross, ENTRY_TREND_FILTER = 2 for Dual CCI trend-filtered cross; enumerated mode).
- Core CCI Entry Parameters (Section 1.2):
* CCI_Entry_Period (Default: 14): Lookback calculation period for the primary Entry CCI oscillator (unit: bars).
* CCI_Source (Default: PRICE_CLOSE): Applied candle price type used to compute the primary Entry CCI (enumerated price constant).
* OverboughtLevel (Default: 100.0): Upper threshold boundary defining overbought conditions in Mode 0 (unit: CCI index points).
* OversoldLevel (Default: -100.0): Lower threshold boundary defining oversold conditions in Mode 0 (unit: CCI index points).
* Trend_CCI_Period (Default: 170): Lookback calculation period for the macro Trend CCI filter used exclusively in Mode 2 (unit: bars).
* Trend_CCI_Source (Default: PRICE_TYPICAL): Applied candle price type used to compute the macro Trend CCI in Mode 2 (enumerated price constant).
* ShowCCI (Default: true): Toggles visibility of the primary CCI oscillator line inside the indicator sub-window (boolean: true/false).
- Arrow Visual Settings (Section 1.3):
* ShowArrows (Default: true): Toggles display of Buy and Sell directional arrows on the main price chart (boolean: true/false).
* BuyArrowColor (Default: clrAqua): Color applied to confirmed bullish Buy signal arrows on the chart (color value).
* SellArrowColor (Default: clrRed): Color applied to confirmed bearish Sell signal arrows on the chart (color value).
* ArrowSize (Default: 15): Display size of plotted Wingdings signal arrows on the chart (unit: font points).
* ArrowDistance (Default: 30): Vertical spacing offset between the signal candle extreme and the plotted arrow (unit: chart points).
* MaxHistoryBars (Default: 10000): Maximum number of historical bars scanned during initial indicator load (unit: bars).
- Alert and Notification Settings (Section 1.4):
* EnableAlerts (Default: true): Global switch enabling or disabling all indicator notification channels (boolean: true/false).
* EnablePopupAlert (Default: true): Enables standard MetaTrader terminal pop-up alert dialog boxes on new signals (boolean: true/false).
* EnableSoundAlert (Default: true): Enables playback of local audio files when a signal is confirmed (boolean: true/false).
* BuySoundFile (Default: "alert.wav"): Filename of the WAV audio alert stored in the terminal Sounds folder for Buy signals (string filename).
* SellSoundFile (Default: "alert2.wav"): Filename of the WAV audio alert stored in the terminal Sounds folder for Sell signals (string filename).
* EnablePushNotify (Default: true): Sends real-time signal notifications to the MetaTrader mobile app via MetaQuotes ID (boolean: true/false).
* EnableEmailAlert (Default: false): Dispatches signal alert messages via the terminal configured SMTP email server (boolean: true/false).
* AlertOnClosedBarOnly (Default: true): Restricts signal alert dispatch strictly to confirmed closed candles on Bar 1 (boolean: true/false).
- ATR and Target Level Settings (Section 1.5):
* Show_SLTP_Lines (Default: true): Toggles display of Entry, Stop Loss, and Take Profit horizontal lines for the latest signal (boolean: true/false).
* ATR_Period (Default: 7): Lookback period used to calculate the Average True Range volatility value (unit: bars).
* ATR_Multiplier (Default: 1.5): Multiplication factor applied to ATR to determine initial Stop Loss distance equal to 1R (unit: multiplier).
* Line_Extend_Bars (Default: 1): Distance that target lines project horizontally to the right beyond the current Bar 0 (unit: bars).
* Label_FontSize (Default: 8): Text size of the price labels rendered at the right end of Entry, SL, and TP lines (unit: font points).
* Entry_Line_Color (Default: clrGold): Color applied to the horizontal Entry reference line (color value).
* SL_Line_Color (Default: clrRed): Color applied to the horizontal Stop Loss reference line (color value).
* TP1_Line_Color (Default: clrLimeGreen): Color applied to the Take Profit 1 (1R) target line (color value).
* TP2_Line_Color (Default: clrMediumSeaGreen): Color applied to the Take Profit 2 (2R) target line (color value).
* TP3_Line_Color (Default: clrDodgerBlue): Color applied to the Take Profit 3 (3R) target line (color value).
* Target_Line_Style (Default: STYLE_DASH): Line drawing style applied to SL and TP1-TP3 levels (enumerated line style).
* Line_Thickness (Default: 1): Line width for SL and TP lines; the Entry line renders one unit thicker (unit: pixels).
- Filter Module 1 - RSI Cross Filter:
* Use_RSI_Cross_Filter (Default: false): Enables confirmation requiring Relative Strength Index (RSI) recovery from oversold/overbought zones (boolean: true/false).
* RSI_Length (Default: 14): Calculation period for the RSI Cross confirmation filter (unit: bars).
* RSI_Price_Source (Default: PRICE_CLOSE): Applied candle price series used in RSI Cross calculations (enumerated price constant).
* RSI_Oversold (Default: 30.0): Lower RSI threshold level required for bullish reversal confirmation (unit: RSI index points).
* RSI_Overbought (Default: 70.0): Upper RSI threshold level required for bearish reversal confirmation (unit: RSI index points).
- Filter Module 2 - ADX Trend Strength Filter:
* Use_ADX_Filter (Default: false): Enables trend-strength filtering using the Average Directional Index (ADX) main line (boolean: true/false).
* ADX_Period (Default: 10): Lookback calculation period for the ADX trend strength filter (unit: bars).
* ADX_Min_Level (Default: 20.0): Minimum ADX main-line value required to validate sufficient market trend strength (unit: ADX index points).
- Filter Module 3 - Single Moving Average Filter:
* Use_MA_Filter (Default: false): Enables directional price-versus-Moving-Average trend filtering (boolean: true/false).
* MA_Period (Default: 50): Averaging period for the Single Moving Average baseline (unit: bars).
* MA_Method (Default: MODE_SMA): Smoothing algorithm used for the Single Moving Average such as SMA, EMA, SMMA, or LWMA (enumerated MA method).
* MA_Shift (Default: 0): Horizontal bar displacement applied to the Single Moving Average curve (unit: bars).
- Filter Module 4 - Ichimoku Senkou Span B Filter:
* Use_Ichimoku_Filter (Default: false): Enables macro trend filtering relative to the Ichimoku Kinko Hyo Senkou Span B cloud boundary (boolean: true/false).
* Ichimoku_Tenkan (Default: 9): Calculation period for the Ichimoku Tenkan-sen conversion line (unit: bars).
* Ichimoku_Kijun (Default: 26): Calculation period for the Ichimoku Kijun-sen base line (unit: bars).
* Ichimoku_SenkouB (Default: 52): Calculation period for the Ichimoku Senkou Span B leading cloud boundary (unit: bars).
- Filter Module 5 - Long-Period RSI Filter:
* Use_RSI75_Filter (Default: false): Enables macro momentum bias filtering relative to the 50.0 midpoint of a slow RSI (boolean: true/false).
* RSI_Filter_Period (Default: 75): Lookback period for the slow macro RSI momentum filter (unit: bars).
- Filter Module 6 - Double Moving Average Filter:
* Use_DoubleMA_Filter (Default: false): Enables trend alignment filtering based on fast Moving Average A versus slow Moving Average B (boolean: true/false).
* MA_A_Period (Default: 30): Averaging period for the fast Moving Average A (unit: bars).
* MA_A_Method (Default: MODE_EMA): Smoothing method applied to fast Moving Average A (enumerated MA method).
* MA_A_Applied (Default: PRICE_CLOSE): Applied candle price type for fast Moving Average A (enumerated price constant).
* MA_A_Shift (Default: 0): Horizontal bar shift applied to fast Moving Average A (unit: bars).
* MA_B_Period (Default: 140): Averaging period for the slow Moving Average B (unit: bars).
* MA_B_Method (Default: MODE_EMA): Smoothing method applied to slow Moving Average B (enumerated MA method).
* MA_B_Applied (Default: PRICE_CLOSE): Applied candle price type for slow Moving Average B (enumerated price constant).
* MA_B_Shift (Default: 0): Horizontal bar shift applied to slow Moving Average B (unit: bars).
- Filter Module 7 - Awesome Oscillator (AO) Filter:
* Use_AO_Filter (Default: false): Enables Bill Williams Awesome Oscillator sub-filters when turned on (boolean: true/false).
* Use_AO_Volume_Filter (Default: false): Requires AO histogram amplitude to exceed minimum bullish/bearish threshold levels (boolean: true/false).
* AO_Buy_Min (Default: 4.0): Minimum positive AO value required for Buy validation when AO Volume Filter is active (unit: oscillator points).
* AO_Sell_Max (Default: -4.0): Maximum negative AO value required for Sell validation when AO Volume Filter is active (unit: oscillator points).
* Use_AO_Color_Filter (Default: false): Requires AO histogram bar slope to rise for Buy or fall for Sell relative to the prior bar (boolean: true/false).
* Use_AO_Zero_Filter (Default: false): Requires AO histogram to be on the matching side of zero while accelerating in signal direction (boolean: true/false).
- Filter Module 8 - Parabolic SAR Filter:
* Use_SAR_Filter (Default: false): Enables directional stop-and-reverse trend filtering using Parabolic SAR dot placement (boolean: true/false).
* SAR_Step (Default: 0.02): Acceleration factor increment step used in Parabolic SAR calculations (unit: step factor).
* SAR_Maximum (Default: 0.2): Maximum acceleration cap for the Parabolic SAR curve (unit: maximum factor).
- Filter Module 9 - Heiken Ashi Candle Filter:
* Use_HeikenAshi_Filter (Default: false): Enables synthetic Heiken Ashi candle body polarity confirmation matching signal direction (boolean: true/false).
- Filter Module 10 - Secondary CCI Trend Filter:
* Use_CCI_Filter (Default: false): Enables an additional zero-line directional bias check using an independent CCI period (boolean: true/false).
* CCI_Period (Default: 50): Lookback calculation period for the secondary CCI Trend filter (unit: bars).
* CCI_Applied (Default: PRICE_CLOSE): Applied candle price source for the secondary CCI Trend filter (enumerated price constant).
- Filter Module 11 - Secondary CCI OB/OS Filter:
* Use_CCI_OBOS_Filter (Default: false): Enables extreme momentum threshold confirmation using an independent CCI oscillator (boolean: true/false).
* CCI_OBOS_Period (Default: 14): Lookback period for the secondary CCI OB/OS filter (unit: bars).
* CCI_OBOS_Applied (Default: PRICE_CLOSE): Applied candle price source for the secondary CCI OB/OS filter (enumerated price constant).
* CCI_Overbought (Default: 100.0): Upper CCI threshold level evaluated by the secondary OB/OS filter (unit: CCI index points).
* CCI_Oversold (Default: -100.0): Lower CCI threshold level evaluated by the secondary OB/OS filter (unit: CCI index points).
- Filter Module 12 - Relative Vigor Index (RVI) Filters:
* Use_RVI_Filter (Default: false): Enables zero-line momentum bias filtering using the RVI main line (boolean: true/false).
* RVI_Period (Default: 75): Calculation period for the RVI zero-line trend filter (unit: bars).
* Use_RVI_Signal_Filter (Default: false): Enables RVI main-line versus signal-line directional alignment filtering (boolean: true/false).
* RVI_Signal_Period (Default: 20): Calculation period for the RVI main/signal crossover filter (unit: bars).
- Filter Module 13 - MACD Histogram and Zero-Line Filters:
* Use_MACD_Filter (Default: false): Enables MACD histogram polarity confirmation (main line relative to signal line) (boolean: true/false).
* MACD_FastEMA (Default: 12): Fast Exponential Moving Average period for MACD calculation (unit: bars).
* MACD_SlowEMA (Default: 26): Slow Exponential Moving Average period for MACD calculation (unit: bars).
* MACD_SignalSMA (Default: 9): Signal line Simple Moving Average period for MACD calculation (unit: bars).
* MACD_Applied (Default: PRICE_CLOSE): Applied candle price series used for MACD computation (enumerated price constant).
* Use_MACD_Zero_Filter (Default: false): Requires the MACD main line to reside above zero for Buy or below zero for Sell (boolean: true/false).
- Filter Module 14 - Support/Resistance and Fibonacci Retracement Filters:
* Use_SR_Filter (Default: false): Enables proximity filtering near recent rolling swing Support (for Buy) or Resistance (for Sell) levels (boolean: true/false).
* SR_Period (Default: 50): Historical lookback window used to identify recent Support and Resistance price extremes (unit: bars).
* SR_Zone_Points (Default: 80): Tolerance buffer radius around identified Support or Resistance levels (unit: chart points).
* Use_Fib_Filter (Default: false): Enables price-zone confirmation within a Fibonacci retracement band derived from recent swing points (boolean: true/false).
* Fib_Level_1 (Default: 0.382): First Fibonacci retracement ratio boundary defining the active pullback zone (unit: ratio).
* Fib_Level_2 (Default: 0.618): Second Fibonacci retracement ratio boundary defining the active pullback zone (unit: ratio).
* ZigZag_Depth (Default: 12): Minimum bar depth required to detect structural swing highs and swing lows (unit: bars).
* ZigZag_Deviation (Default: 5): Minimum price deviation required to validate a new swing extreme (unit: chart points).
* ZigZag_Backstep (Default: 3): Minimum bar separation between consecutive swing highs or swing lows (unit: bars).
- Filter Module 15 - Supertrend Filter:
* Use_Supertrend_Filter (Default: false): Enables ATR-based Supertrend directional regime confirmation (boolean: true/false).
* ST_AtrPeriod (Default: 10): ATR lookback period used to compute Supertrend volatility bands (unit: bars).
* ST_Factor (Default: 3.0): Volatility band multiplier factor controlling Supertrend sensitivity (unit: multiplier).
6. Risk Disclaimer
- Trading foreign exchange, commodities, indices, and other leveraged financial instruments carries a high level of risk and may not be suitable for all investors. Past performance, historical signal visualization, or simulated results do not guarantee future trading outcomes. This indicator is an analytical software tool intended solely to assist with technical chart analysis and does not constitute financial or investment advice. Always test the indicator thoroughly on a demo account to understand its behavior across different market conditions before applying it to live trading.
