Ichimoku Tenkan Kijun Cross Signal Multi Filter
- Indicadores
- Versão: 1.0
- Ativações: 5
Ichimoku Tenkan Kijun Cross Signal Multi Filter
Overview
TK Cross Multi Filters is a custom technical analysis indicator developed for MetaTrader 4 (MT4) that integrates classic Ichimoku Kinko Hyo Tenkan-sen and Kijun-sen (TK) crossover detection with a modular 15-filter confluence framework and automated Average True Range (ATR) target level projection. The primary purpose of this software is to identify directional momentum shifts at candle close, validate candidate setups against user-selected trend, momentum, volatility, and structural price confirmation modules, plot clear Buy and Sell markers on the main chart, and calculate structured Stop Loss (SL) and Take Profit (TP1, TP2, TP3) reference zones. Rather than relying on an unfiltered crossover trigger that may generate frequent signals during sideways consolidation, the indicator allows traders to tailor confirmation strictness by operating the baseline crossover standalone or combining multiple independent technical filters within a single chart window.
Operating Principle
- Core Crossover Engine: Continuously tracks the relationship between the fast conversion line (Tenkan-sen) and the slower baseline (Kijun-sen), both derived from rolling high-low price equilibrium midpoints over user-defined lookback periods.
- Bullish Signal Condition (Buy): Generated when the Tenkan-sen line crosses upward above the Kijun-sen line upon the completion of a closed candle, provided that every enabled filter module simultaneously confirms bullish alignment on that same closed bar.
- Bearish Signal Condition (Sell): Generated when the Tenkan-sen line crosses downward below the Kijun-sen line upon the completion of a closed candle, provided that every enabled filter module simultaneously confirms bearish alignment on that same closed bar.
- Strict AND-Gate Confluence Logic: All 15 integrated filter modules operate on an opt-in basis. Any filter set to false is bypassed completely, whereas every filter set to true must agree directionally on the signal bar before an arrow or notification is issued.
- Trend-Following Filter Group Behavior: Modules including Single MA, Double MA, Ichimoku Senkou Span B, Parabolic SAR, Heiken Ashi, and ATR-based Supertrend verify that price action or moving average hierarchy aligns with the direction of the crossover before permitting a signal.
- Momentum and Oscillator Filter Group Behavior: Modules including RSI Cross, RSI 75, Awesome Oscillator, CCI Trend, CCI Overbought/Oversold, RVI Trend and Signal, and MACD Histogram and Zero Line evaluate directional momentum bias, zero-line positioning, or threshold transitions at candle close.
- Volatility and Structural Price Filter Group Behavior: The ADX filter checks whether directional trend strength exceeds a minimum activity threshold, while the Support/Resistance and Fibonacci retracement modules check whether price interacts with recent swing boundaries or retracement zones.
- Closed-Bar Evaluation and Repaint Status: Signal evaluation is performed strictly on completed historical bars (Bar 1) rather than the actively forming candle (Bar 0). Under standard oscillator, moving average, volatility, and trend filter configurations, confirmed Buy and Sell arrows remain fixed at their plotted coordinates after bar closure and do not recalculate retroactively.
- Transparency Note on Optional Fibonacci Filtering: While the core TK crossover and standard indicator filters do not repaint after bar close, enabling the optional Fibonacci retracement filter introduces ZigZag-based swing high and swing low evaluation governed by depth, deviation, and backstep settings, which inherently depends on swing confirmation behavior.
- Dynamic ATR Risk-Reward Target Mapping: Whenever a valid signal is confirmed, the indicator measures prevailing market volatility via ATR, multiplies it by the configured risk factor to establish an initial Stop Loss distance (1R), and projects horizontal Entry, SL, TP1 (1R), TP2 (2R), and TP3 (3R) reference lines exclusively for the most recent confirmed signal, automatically updating those lines when a newer signal occurs.
Key Features
- Unified Ichimoku TK Crossover Core: Plots Tenkan-sen, Kijun-sen, and optional forward-shifted Senkou Span B lines directly on the main price chart with customizable periods, line widths, styles, and colors.
- 15-Filter Universal Confluence Suite: Provides 15 independent confirmation modules spanning momentum oscillators (RSI Cross, RSI 75, CCI Trend, CCI OB/OS, RVI Trend and Signal, MACD Histogram and Zero Line, Awesome Oscillator), trend direction (Single MA, Double MA, Ichimoku Senkou Span B, Parabolic SAR, Heiken Ashi, Supertrend), trend strength (ADX), and structural price levels (Support/Resistance zones and Fibonacci retracement swings).
- Automated ATR Target Projection: Computes volatility-adjusted Entry, Stop Loss, and three tiered Take Profit levels (1:1, 1:2, and 1:3 risk-to-reward ratios) and renders clean, non-cluttering horizontal lines and right-aligned price labels for the latest active signal.
- Four-Channel Notification System: Supports MetaTrader 4 terminal pop-up alerts, customizable .wav audio alerts separately for Buy and Sell directions, mobile push notifications via MetaQuotes ID, and SMTP email alerts containing full symbol, timeframe, Entry, SL, TP1, TP2, and TP3 price values.
- Configurable Visual Layout: Offers complete control over signal arrow visibility, vertical pip spacing from candle highs and lows, target line projection length in future bars, label font sizing, line styles, line widths, and individual color assignments.
- Automatic Chart Object Cleanup: Removes all indicator-created trend lines and price text labels automatically upon indicator removal, chart closing, or whenever target level display is disabled.
Operation and Setup Recommendations
- Supported Instruments: Suitable for major and minor Forex currency pairs (such as EURUSD, GBPUSD, GBPJPY, USDJPY, AUDUSD, USDCAD), precious metals (XAUUSD), equity indices, and liquid CFD instruments. Always inspect broker spread, contract digits, and point size characteristics before applying fixed point or pip offsets.
- Recommended Timeframes: Operates across all standard MT4 timeframes from M1 to MN1. For intraday trading, M15, M30, and H1 offer balanced signal frequency and structural clarity; for swing trading, H4 and D1 help filter intraday noise and align with wider ATR risk distances.
- Broker and Account Environment: Compatible with both Hedging and Netting account structures across Standard, ECN, and Raw Spread execution models. Low-spread accounts are recommended when operating on lower timeframes (M5 to M15) so that ATR-based Stop Loss and Take Profit distances remain practical relative to spread costs.
- Practical Filter Combination Examples:
- Trend-Continuation Setup: Combine the baseline TK Cross with Ichimoku Senkou Span B or Double MA to define broader directional bias, plus ADX to filter out low-momentum sideways ranges.
- Momentum-Alignment Setup: Combine the baseline TK Cross with Supertrend or Parabolic SAR for directional trend confirmation alongside MACD Histogram or RSI 75 to confirm sustained momentum polarity.
- Structural-Pullback Setup: Combine the baseline TK Cross with Support/Resistance zone filtering on H1 or H4 charts to focus on crossovers occurring near established swing boundaries.
- Calibration Guidelines Across Asset Classes: Avoid enabling all 15 filters simultaneously, as stacking excessive conditions restricts signal frequency. Note that amplitude-based filters such as Awesome Oscillator minimum volume thresholds or point-based Support/Resistance zones depend on each instrument's price scale and tick value, and should be calibrated specifically for Forex pairs versus metals or indices.
- Terminal Performance and Resource Management: The indicator is engineered for single-chart execution and processes historical bars during initialization before updating incrementally on new ticks. When running multiple charts concurrently with multi-bar stateful modules enabled (such as Supertrend, Heiken Ashi, or ZigZag-based Fibonacci swing detection), avoid opening excessive simultaneous chart windows or reduce Max bars in chart within MT4 terminal options on modest hardware.
- Chart Visual Elements and Color Guide:
- Tenkan-sen Line (Default: Dodger Blue solid line): Fast conversion line tracking short-term price equilibrium.
- Kijun-sen Line (Default: Crimson solid line): Slower baseline tracking medium-term price equilibrium.
- Ichimoku Senkou Span B Line (Default: Magenta solid line, shifted forward by Kijun periods): Optional long-term directional trend boundary line.
- Buy Signal Arrow (Default: Aqua upward arrow plotted below candle low): Marks a confirmed bullish TK crossover passing all active filters.
- Sell Signal Arrow (Default: Red downward arrow above candle high): Marks a confirmed bearish TK crossover passing all active filters.
- Entry Reference Line (Default: Gold solid line): Marks the closing price of the signal candle where the setup was confirmed.
- Stop Loss Line (Default: Red dashed line): Marks the ATR-multiplied risk invalidation distance away from the entry price.
- Take Profit 1, 2, and 3 Lines (Default: Lime Green, Medium Sea Green, and Dodger Blue dashed lines): Mark 1R, 2R, and 3R reward targets projected from the entry price.
- Alert System Configuration:
- Pop-Up Alert: Displays an immediate message box inside the MT4 terminal with symbol, timeframe, direction, Entry, SL, and TP1-TP3 levels.
- Sound Alert: Plays custom .wav files located in the MT4 Sounds directory separately for Buy and Sell events.
- Push Notification: Delivers instant signal summaries to the MetaTrader 4 mobile app once your MetaQuotes ID is configured under Tools -> Options -> Notifications.
- Email Notification: Sends formatted trade setup details via SMTP once email server credentials are configured under Tools -> Options -> Email.
Input Parameters
Group A: TK Cross Entry Settings
- InpGroupA (Default: "=== [A] TK CROSS ENTRY SETTINGS ===") -> Visual section header string in the MT4 Inputs tab separating baseline crossover parameters (text label).
- InpTenkan (Default: 9) -> Lookback period for calculating the Tenkan-sen conversion line from rolling high-low price midpoints (bars).
- InpKijun (Default: 26) -> Lookback period for calculating the Kijun-sen baseline from rolling high-low price midpoints (bars).
- InpShowArrows (Default: true) -> Enables or disables plotting Buy and Sell signal arrows on the main price chart (boolean).
- InpArrowOffsetPips (Default: 5.0) -> Vertical spacing distance between the signal candle low or high and the plotted Buy or Sell arrow marker, automatically scaled for 3-digit and 5-digit brokers (pips).
Group B: Alert and Notification Settings
- InpGroupB (Default: "=== [B] ALERT & NOTIFICATION SETTINGS ===") -> Visual section header string separating alert and notification controls (text label).
- Use_Alert (Default: true) -> Enables or disables pop-up alert windows inside the MetaTrader 4 terminal upon signal confirmation at candle close (boolean).
- Use_Sound (Default: true) -> Enables or disables audible .wav sound playback when a confirmed Buy or Sell signal occurs (boolean).
- Use_Notification (Default: true) -> Enables or disables push notifications sent to the MetaTrader mobile application via MetaQuotes ID (boolean).
- Use_Mail (Default: false) -> Enables or disables email notifications dispatched through the terminal SMTP mail configuration (boolean).
- SoundFile_Buy (Default: "alert.wav") -> File name of the audio clip inside the MT4 Sounds folder played on confirmed Buy signals (file name string).
- SoundFile_Sell (Default: "alert2.wav") -> File name of the audio clip inside the MT4 Sounds folder played on confirmed Sell signals (file name string).
Group C: ATR and Target Levels Settings
- InpGroupC (Default: "=== [C] ATR & TARGET LEVELS (SL/TP) ===") -> Visual section header string separating ATR volatility and target level parameters (text label).
- InpShowLevels (Default: true) -> Enables or disables drawing horizontal Entry, Stop Loss, and Take Profit lines for the latest confirmed signal (boolean).
- InpAtrPeriod (Default: 14) -> Averaging lookback period used to compute the Average True Range volatility value at signal close (bars).
- InpAtrMultiplier (Default: 1.5) -> Multiplier applied to the ATR value to define the initial Stop Loss risk distance and 1R reward unit (multiplier).
- InpLineBars (Default: 2) -> Forward horizontal projection length of target lines extending beyond the current bar time (bars).
- InpFontSize (Default: 8) -> Font size applied to the right-aligned price labels attached to Entry, SL, and TP lines (points).
- InpColorEntry (Default: clrGold) -> Line and text label color used for the Entry reference price level (color).
- InpColorSL (Default: clrRed) -> Line and text label color used for the Stop Loss level (color).
- InpColorTP1 (Default: clrLimeGreen) -> Line and text label color used for Take Profit 1 at 1.0x risk distance (color).
- InpColorTP2 (Default: clrMediumSeaGreen) -> Line and text label color used for Take Profit 2 at 2.0x risk distance (color).
- InpColorTP3 (Default: clrDodgerBlue) -> Line and text label color used for Take Profit 3 at 3.0x risk distance (color).
- InpLineStyle (Default: STYLE_DASH) -> Visual line style such as solid, dash, or dot applied to SL, TP1, TP2, and TP3 horizontal lines (line style enum).
- InpLineWidth (Default: 1) -> Pixel thickness of the SL and TP projection lines, with the Entry line drawn one unit thicker for visual clarity (pixels).
Group D: 15-Filter Universal Framework Parameters
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ===") -> Visual section header string for Filter 1 RSI crossover settings (text label).
- Use_RSI_Cross_Filter (Default: false) -> Enables or disables the Relative Strength Index threshold crossover confirmation filter (boolean).
- RSI_Length (Default: 14) -> Calculation lookback period for the RSI Cross momentum oscillator (bars).
- RSI_Price_Source (Default: PRICE_CLOSE) -> Applied candle price series such as close, open, high, low, median, typical, or weighted used in RSI calculations (applied price enum).
- RSI_Oversold (Default: 30.0) -> Lower RSI threshold level used to confirm bullish recovery crossover momentum (oscillator level).
- RSI_Overbought (Default: 70.0) -> Upper RSI threshold level used to confirm bearish rejection crossover momentum (oscillator level).
- InpFilter2 (Default: "=== 2. ADX FILTER ===") -> Visual section header string for Filter 2 ADX trend strength settings (text label).
- Use_ADX_Filter (Default: false) -> Enables or disables the Average Directional Index minimum trend strength filter (boolean).
- ADX_Period (Default: 10) -> Calculation lookback period for the ADX main directional strength line (bars).
- ADX_Min_Level (Default: 20.0) -> Minimum ADX value required to validate directional trend activity and pass signals (index level).
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ===") -> Visual section header string for Filter 3 Single Moving Average trend settings (text label).
- Use_MA_Filter (Default: false) -> Enables or disables candle close price versus Moving Average directional trend filtering (boolean).
- MA_Period (Default: 50) -> Averaging lookback period for the single trend Moving Average (bars).
- MA_Method (Default: MODE_SMA) -> Smoothing algorithm applied to the single Moving Average such as SMA, EMA, SMMA, or LWMA (MA method enum).
- MA_Shift (Default: 0) -> Horizontal bar shift offset applied when reading the single Moving Average value (bars).
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ===") -> Visual section header string for Filter 4 Ichimoku Senkou Span B settings (text label).
- Use_Ichimoku_Filter (Default: false) -> Enables or disables directional trend filtering relative to the Ichimoku Senkou Span B boundary (boolean).
- Show_Ichimoku_SpanB (Default: true) -> Controls whether the forward-displaced Ichimoku Senkou Span B line is rendered on the chart (boolean).
- Ichimoku_Tenkan (Default: 9) -> Tenkan-sen period parameter associated with the Ichimoku filter module (bars).
- Ichimoku_Kijun (Default: 26) -> Kijun-sen and forward displacement period used for aligning Senkou Span B on the chart (bars).
- Ichimoku_SenkouB (Default: 52) -> High-low midpoint lookback period used to compute the Senkou Span B trend boundary (bars).
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ===") -> Visual section header string for Filter 5 long-period RSI equilibrium settings (text label).
- Use_RSI75_Filter (Default: false) -> Enables or disables mid-level 50 directional bias filtering using a long-period RSI oscillator (boolean).
- RSI_Filter_Period (Default: 75) -> Lookback period for the long-horizon RSI trend bias filter (bars).
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ===") -> Visual section header string for Filter 6 Dual Moving Average alignment settings (text label).
- Use_DoubleMA_Filter (Default: false) -> Enables or disables trend alignment filtering between fast Moving Average A and slow Moving Average B (boolean).
- MA_A_Period (Default: 30) -> Lookback period for the faster Moving Average A (bars).
- MA_A_Method (Default: MODE_EMA) -> Smoothing method such as SMA, EMA, SMMA, or LWMA for Moving Average A (MA method enum).
- MA_A_Applied (Default: PRICE_CLOSE) -> Applied candle price source for Moving Average A (applied price enum).
- MA_A_Shift (Default: 0) -> Horizontal bar shift offset for Moving Average A (bars).
- MA_B_Period (Default: 140) -> Lookback period for the slower baseline Moving Average B (bars).
- MA_B_Method (Default: MODE_EMA) -> Smoothing method such as SMA, EMA, SMMA, or LWMA for Moving Average B (MA method enum).
- MA_B_Applied (Default: PRICE_CLOSE) -> Applied candle price source for Moving Average B (applied price enum).
- MA_B_Shift (Default: 0) -> Horizontal bar shift offset for Moving Average B (bars).
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ===") -> Visual section header string for Filter 7 Awesome Oscillator settings (text label).
- Use_AO_Filter (Default: false) -> Primary switch enabling or disabling Awesome Oscillator momentum validation (boolean).
- Use_AO_Volume_Filter (Default: false) -> Enables minimum positive or negative Awesome Oscillator amplitude threshold checks (boolean).
- AO_Buy_Min (Default: 4.0) -> Minimum Awesome Oscillator histogram threshold required for Buy signals when amplitude filtering is active (oscillator units).
- AO_Sell_Max (Default: -4.0) -> Maximum Awesome Oscillator histogram threshold required for Sell signals when amplitude filtering is active (oscillator units).
- Use_AO_Color_Filter (Default: false) -> Requires rising histogram momentum for Buy and falling histogram momentum for Sell signals (boolean).
- Use_AO_Zero_Filter (Default: false) -> Requires Awesome Oscillator values above zero for Buy and below zero for Sell signals (boolean).
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ===") -> Visual section header string for Filter 8 Parabolic SAR trend settings (text label).
- Use_SAR_Filter (Default: false) -> Enables or disables Parabolic Stop and Reverse directional position filtering relative to candle close (boolean).
- SAR_Step (Default: 0.02) -> Acceleration factor increment step used in the Parabolic SAR calculation (step value).
- SAR_Maximum (Default: 0.2) -> Maximum acceleration factor cap for the Parabolic SAR calculation (maximum value).
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ===") -> Visual section header string for Filter 9 Heiken Ashi candle polarity settings (text label).
- Use_HeikenAshi_Filter (Default: false) -> Enables or disables synthetic Heiken Ashi bullish or bearish candle body polarity confirmation (boolean).
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ===") -> Visual section header string for Filter 10 Commodity Channel Index zero-line trend settings (text label).
- Use_CCI_Filter (Default: false) -> Enables or disables CCI zero-level directional regime confirmation (boolean).
- CCI_Period (Default: 50) -> Lookback period for the CCI trend regime oscillator (bars).
- CCI_Applied (Default: PRICE_CLOSE) -> Applied candle price series for the CCI trend calculation (applied price enum).
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ===") -> Visual section header string for Filter 11 CCI extreme momentum zone settings (text label).
- Use_CCI_OBOS_Filter (Default: false) -> Enables or disables CCI momentum threshold breakout confirmation in extreme zones (boolean).
- CCI_OBOS_Period (Default: 14) -> Lookback period for the short-term CCI momentum oscillator (bars).
- CCI_OBOS_Applied (Default: PRICE_CLOSE) -> Applied candle price series for the CCI OB/OS filter (applied price enum).
- CCI_Overbought (Default: 100.0) -> Upper CCI boundary level checked during bullish momentum validation (index level).
- CCI_Oversold (Default: -100.0) -> Lower CCI boundary level checked during bearish momentum validation (index level).
- InpFilter12 (Default: "=== 12. RVI FILTERS ===") -> Visual section header string for Filter 12 Relative Vigor Index settings (text label).
- Use_RVI_Filter (Default: false) -> Enables or disables RVI main line zero-level directional confirmation (boolean).
- RVI_Period (Default: 75) -> Lookback period for the RVI zero-line trend filter (bars).
- Use_RVI_Signal_Filter (Default: false) -> Enables or disables RVI main line versus signal line crossover alignment filtering (boolean).
- RVI_Signal_Period (Default: 20) -> Lookback period for the RVI main and signal line comparison filter (bars).
- InpFilter13 (Default: "=== 13. MACD FILTERS ===") -> Visual section header string for Filter 13 MACD histogram and zero-line settings (text label).
- Use_MACD_Filter (Default: false) -> Enables or disables MACD histogram directional polarity confirmation between main and signal lines (boolean).
- MACD_FastEMA (Default: 12) -> Fast Exponential Moving Average period for MACD calculation (bars).
- MACD_SlowEMA (Default: 26) -> Slow Exponential Moving Average period for MACD calculation (bars).
- MACD_SignalSMA (Default: 9) -> Signal line Simple Moving Average smoothing period for MACD (bars).
- MACD_Applied (Default: PRICE_CLOSE) -> Applied candle price series used in MACD computation (applied price enum).
- Use_MACD_Zero_Filter (Default: false) -> Enables or disables MACD main line positioning above or below the zero equilibrium level (boolean).
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ===") -> Visual section header string for Filter 14 Support/Resistance and Fibonacci settings (text label).
- Use_SR_Filter (Default: false) -> Enables or disables price proximity validation near recent rolling Support or Resistance levels (boolean).
- SR_Period (Default: 50) -> Historical lookback window scanned to identify recent swing Support and Resistance price extremes (bars).
- SR_Zone_Points (Default: 80) -> Tolerance buffer around Support or Resistance boundaries for valid price interaction (points).
- Use_Fib_Filter (Default: false) -> Enables or disables Fibonacci retracement zone validation between detected swing high and low points (boolean).
- Fib_Level_1 (Default: 0.382) -> First Fibonacci retracement ratio boundary defining the pullback validation zone (ratio).
- Fib_Level_2 (Default: 0.618) -> Second Fibonacci retracement ratio boundary defining the pullback validation zone (ratio).
- ZigZag_Depth (Default: 12) -> Minimum bar span required for identifying local swing highs and lows in Fibonacci mode (bars).
- ZigZag_Deviation (Default: 5) -> Minimum price movement threshold required to register a new swing extreme (points).
- ZigZag_Backstep (Default: 3) -> Minimum bar separation enforced between consecutive swing points (bars).
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ===") -> Visual section header string for Filter 15 ATR-based Supertrend settings (text label).
- Use_Supertrend_Filter (Default: false) -> Enables or disables ATR-band Supertrend directional trend confirmation (boolean).
- ST_AtrPeriod (Default: 10) -> Wilder ATR lookback length used to compute Supertrend volatility bands (bars).
- ST_Factor (Default: 3.0) -> Volatility multiplier applied to ATR for upper and lower Supertrend band offsets (multiplier).
Risk Disclaimer
Trading foreign exchange, commodities, indices, and other leveraged financial instruments carries significant risk and may not be suitable for all investors. Past performance and historical chart simulations do not guarantee future results. This software is an analytical and visual tool designed to assist traders in technical analysis and risk-reward level calculation; it does not provide financial advice and does not guarantee financial profit. Always test the product thoroughly on a demo account under realistic market conditions to understand its operational behavior before considering deployment in live trading environments.
