Ichimoku Senkou Span B Breakout Multi Filter Trend
- Göstergeler
- Sürüm: 1.0
- Etkinleştirmeler: 5
Ichimoku Senkou Span B Breakout Multi Filter Trend
Overview
- Senkou Span B Signal is a technical analysis indicator for MetaTrader 4 designed to identify directional price reactions, breakouts, and retests around the Ichimoku Kinko Hyo Senkou Span B baseline.
- The indicator plots the Senkou Span B equilibrium line directly on the main price chart, evaluates price interaction on completed candlesticks, and displays directional BUY and SELL signal arrows when market conditions align.
- To reduce false signals during sideways or low-momentum phases, the software integrates a modular 15-Filter Confluence Framework covering trend direction, momentum oscillators, volatility, market structure, and Fibonacci retracement zones.
- Alongside directional arrows, the indicator automatically calculates and renders dynamic Entry, Stop Loss (SL), and three Risk-Reward Take Profit (TP1, TP2, TP3) projection lines derived from the Average True Range (ATR).
- All visual elements, filter thresholds, ATR risk multipliers, and multi-channel notifications (terminal pop-up alerts, mobile push notifications, and audio alerts) are configurable from the MetaTrader 4 Inputs tab.
Operating Principle and Signal Logic
- Baseline Calculation: The indicator computes the Senkou Span B component of the Ichimoku Cloud using configurable Tenkan-sen, Kijun-sen, Senkou Span B, and cloud shift offset periods, rendering a continuous reference line across the chart.
- Price Interaction Detection: On each closed candlestick, the algorithm checks whether price has physically interacted with or retested the active Senkou Span B level within a calibrated price tolerance.
- BUY Signal Conditions: A bullish signal arrow is generated when a completed candle interacts with the Senkou Span B baseline and closes firmly above it, optionally confirmed by a bullish candle body (close greater than open) and validated by all enabled modules in the 15-Filter Suite.
- SELL Signal Conditions: A bearish signal arrow is generated when a completed candle interacts with the Senkou Span B baseline and closes firmly below it, optionally confirmed by a bearish candle body (close less than open) and validated by all enabled modules in the 15-Filter Suite.
- Multi-Filter Confluence Gate: Every enabled filter acts as a strict logical condition; a BUY or SELL arrow is plotted only when the primary Senkou Span B price-action trigger and all active confluence filters agree simultaneously.
- ATR Risk-Reward Projection: Upon confirming a valid signal, the indicator samples the current ATR value multiplied by the user-defined risk factor to establish the Stop Loss distance, then projects Entry, SL, TP1 (1:1 RR), TP2 (2:1 RR), and TP3 (3:1 RR) levels on the chart.
- Signal Validity and Repainting Behavior: All core Senkou Span B signal calculations are executed strictly on closed candlesticks (Bar 1). Once a bar closes and an arrow is printed, the signal does not repaint, shift, or disappear on subsequent ticks. Please note that if the optional Fibonacci Retracement filter (Use_Fib_Filter) is enabled, it evaluates historical swing highs and lows using ZigZag-based pivot detection prior to the evaluated bar.
- Exit and Trade Management Guidance: Because this tool is an analytical chart indicator rather than an automated execution robot, trade exits can be managed using the plotted TP1, TP2, and TP3 Risk-Reward levels, trailing stops below or above the Senkou Span B line, or an opposing confirmed signal arrow.
Key Technical Features
- Direct Main-Chart Visualization: Displays the Senkou Span B equilibrium curve cleanly on the price chart without cluttering the workspace with separate sub-windows.
- Flexible Ichimoku Periodicity: Supports both the responsive 30-period Senkou Span B configuration and the traditional 52-period Ichimoku setting, plus custom horizontal shift offsets.
- Modular 15-Filter Confluence Engine: Allows traders to combine up to 15 independent technical confirmation layers—including RSI Cross, ADX Trend Strength, Single Moving Average, Secondary Ichimoku Senkou Span B, Long-Period RSI, Double Moving Average, Awesome Oscillator, Parabolic SAR, Heiken Ashi, CCI Trend, CCI Overbought/Oversold, RVI Trend and Signal, MACD Histogram and Zero-Line, Support/Resistance Zones, Fibonacci Retracements, and Supertrend.
- Automated ATR Stop Loss and Take Profit Levels: Dynamically adapts SL and TP1/TP2/TP3 projections to current market volatility so risk parameters adjust naturally across different instruments and timeframes.
- Clean Right-Side Level Rendering: Draws compact, non-intrusive horizontal level segments with exact price labels on the right edge of the chart for the most recent signal, keeping historical chart areas uncluttered.
- Multi-Channel Real-Time Alert System: Dispatches instant notifications upon candle close containing the symbol, timeframe, signal direction, Entry price, SL price, and TP1/TP2/TP3 targets.
Graphical User Interface (GUI) and Alert System
- Senkou Span B Line (Default: DeepSkyBlue solid line): Represents the dynamic equilibrium, support, and resistance baseline calculated from the Ichimoku Span B formula.
- BUY Signal Arrow (Default: Aqua upward arrow below the candle): Indicates a confirmed bullish touch-and-close above the Senkou Span B line that has passed all enabled filters.
- SELL Signal Arrow (Default: Red downward arrow above the candle): Indicates a confirmed bearish touch-and-close below the Senkou Span B line that has passed all enabled filters.
- Entry Level Line (Default: Gold dashed line): Marks the closing price of the confirmed signal candle where the setup was triggered.
- Stop Loss Line (Default: Red dashed line): Marks the volatility-adjusted invalidation level calculated from the ATR multiplier.
- Take Profit Lines (Default: LimeGreen for TP1, MediumSeaGreen for TP2, DodgerBlue for TP3): Displays 1:1, 2:1, and 3:1 Risk-Reward target levels with exact numeric price tags.
- Terminal Pop-Up Alerts: Opens a MetaTrader 4 alert dialog box with audible chime and full signal coordinates when a new closed-bar signal occurs.
- Mobile Push Notifications: Sends real-time signal alerts directly to the MetaTrader 4 mobile application via your configured MetaQuotes ID.
- Custom Audio Alerts: Plays a user-specified WAV sound file from the terminal Sounds directory upon signal confirmation.
Operation Recommendations and Terminal Performance
- Supported Instruments: Suitable for major and minor Forex currency pairs (such as EURUSD, GBPUSD, USDJPY, AUDUSD), precious metals (such as XAUUSD), indices, and liquid CFDs. Traders should verify broker spread and tick-size specifications on each symbol before live deployment.
- Recommended Timeframes: Designed for intraday and swing trading across M15, M30, H1, and H4 timeframes. It can also be applied on M1 and M5 charts for short-term momentum setups when paired with trend and volatility filters such as ADX, Double MA, or Supertrend.
- Account Type and Broker Environment: Compatible with both Hedging and Netting MetaTrader 4 account types. Standard, ECN, and Raw Spread accounts are supported; low-spread environments are recommended when trading lower timeframes so ATR-based SL and TP levels remain proportionate to transaction costs.
- Terminal CPU and Memory Efficiency: The indicator uses incremental bar calculation during live market ticks to minimize processor load and cleans up all graphical chart objects automatically upon removal or timeframe switching. When enabling multiple filters simultaneously (especially historical lookback filters such as Heiken Ashi, Supertrend, Support/Resistance, or Fibonacci ZigZag), avoid running excessive charts simultaneously on lower-specification terminals.
Input Parameters Documentation
Group 1: Ichimoku Core Settings
- InpSection1 (Default: Section Header Text) - Visual separator label in the MetaTrader 4 Inputs window dividing the Ichimoku Core Settings group.
- InpTenkan (Default: 9) - Lookback period in bars for the Tenkan-sen (Conversion Line) component used inside the native Ichimoku calculation.
- InpKijun (Default: 26) - Lookback period in bars for the Kijun-sen (Base Line) and standard cloud shift reference.
- InpSenkou (Default: 30) - Lookback period in bars for calculating the Senkou Span B baseline (use 30 for responsive chart templates or 52 for classic Ichimoku settings).
- InpCloudShift (Default: 0) - Additional horizontal bar offset applied when reading the Senkou Span B buffer relative to the current bar.
Group 2: Candle Entry Filters
- InpSection2 (Default: Section Header Text) - Visual separator label dividing the Candle Entry Filters group.
- InpFilterCandleType (Default: true) - Enables directional candlestick body confirmation; when set to true, BUY signals require a bullish candle (close above open) and SELL signals require a bearish candle (close below open).
Group 3: Signal Arrow and Line Visual Settings
- InpSection3 (Default: Section Header Text) - Visual separator label dividing the Signal Arrow Settings group.
- InpSpanBColor (Default: clrDeepSkyBlue) - Line color used to plot the Senkou Span B curve on the main chart.
- InpSpanBWidth (Default: 2) - Line thickness in pixels for the plotted Senkou Span B curve.
- InpSpanBStyle (Default: STYLE_SOLID) - Line style (solid, dash, dot, dash-dot) for the Senkou Span B curve when width is set to 1.
- InpBuyArrowColor (Default: clrAqua) - Color of the upward arrow plotted beneath confirmed bullish signal candles.
- InpSellArrowColor (Default: clrRed) - Color of the downward arrow plotted above confirmed bearish signal candles.
- InpArrowWidth (Default: 2) - Display size/thickness scale of the BUY and SELL signal arrows.
- InpArrowDistance (Default: 50) - Vertical spacing offset in broker points between the candle high/low and the plotted signal arrow.
Group 4: ATR and Risk-Reward (SL/TP) Settings
- InpSection4 (Default: Section Header Text) - Visual separator label dividing the ATR and Risk-Reward settings group.
- InpShowLevels (Default: true) - Enables or disables the rendering of Entry, SL, TP1, TP2, and TP3 horizontal lines and price labels for the latest signal.
- InpATRPeriod (Default: 14) - Averaging period in bars used to compute the Average True Range (ATR) volatility metric.
- InpATRMultiplier (Default: 1.5) - Multiplier applied to the ATR value to determine the Stop Loss distance and unit Risk (1R) for Take Profit targets.
- InpLineFromCurrent (Default: true) - When true, draws compact level lines starting from the current active bar to the right; when false, extends lines from the historical signal bar.
- InpLineLengthBars (Default: 5) - Horizontal projection length in bars to the right of the current candle for active SL/TP level lines.
- InpEntryColor (Default: clrGold) - Line and text color for the Entry price level of the latest signal.
- InpSLColor (Default: clrRed) - Line and text color for the Stop Loss (SL) price level.
- InpTP1Color (Default: clrLimeGreen) - Line and text color for the first Take Profit target (1:1 Risk-Reward ratio).
- InpTP2Color (Default: clrMediumSeaGreen) - Line and text color for the second Take Profit target (2:1 Risk-Reward ratio).
- InpTP3Color (Default: clrDodgerBlue) - Line and text color for the third Take Profit target (3:1 Risk-Reward ratio).
- InpLevelsWidth (Default: 1) - Line thickness in pixels for the Entry, SL, and TP projection lines.
- InpLevelsStyle (Default: STYLE_DASH) - Line style applied to the Entry, SL, and TP horizontal projection lines.
Group 5: Alert and Notification Settings
- InpSection5 (Default: Section Header Text) - Visual separator label dividing the Alert and Notification settings group.
- InpEnableAlert (Default: true) - Enables or disables MetaTrader 4 desktop terminal pop-up alert windows upon new closed-bar signals.
- InpEnablePush (Default: true) - Enables or disables push notifications sent to the mobile MetaTrader 4 app via MetaQuotes ID.
- InpEnableSound (Default: true) - Enables or disables local WAV audio playback when a signal alert triggers.
- InpSoundFile (Default: "alert.wav") - Filename of the WAV audio file located in the MetaTrader 4 Sounds folder.
Group 6: Universal 15-Filter Confluence Framework
Filter 1: RSI Cross Filter
- InpFilter1 (Default: Section Header Text) - Visual separator label for the RSI Cross Filter module.
- Use_RSI_Cross_Filter (Default: false) - Enables momentum reversal filtering requiring RSI to exit oversold territory for BUY or overbought territory for SELL.
- RSI_Length (Default: 14) - Calculation period in bars for the Relative Strength Index (RSI).
- RSI_Price_Source (Default: PRICE_CLOSE) - Applied price constant (Close, Open, High, Low, Median, Typical, Weighted) used in RSI calculation.
- RSI_Oversold (Default: 30.0) - Lower RSI threshold level that price momentum must cross upward to validate a BUY signal.
- RSI_Overbought (Default: 70.0) - Upper RSI threshold level that price momentum must cross downward to validate a SELL signal.
Filter 2: ADX Trend Strength Filter
- InpFilter2 (Default: Section Header Text) - Visual separator label for the ADX Trend Strength Filter module.
- Use_ADX_Filter (Default: false) - Enables trend strength filtering based on the Average Directional Movement Index (ADX).
- ADX_Period (Default: 10) - Averaging period in bars for the ADX main line calculation.
- ADX_Min_Level (Default: 20.0) - Minimum required ADX value to confirm sufficient directional trend strength before allowing signals.
Filter 3: Single Moving Average Filter
- InpFilter3 (Default: Section Header Text) - Visual separator label for the Single Moving Average Filter module.
- Use_MA_Filter (Default: false) - Enables trend alignment filtering requiring close price above the MA for BUY and below the MA for SELL.
- MA_Period (Default: 50) - Averaging period in bars for the Single Moving Average filter.
- MA_Method (Default: MODE_SMA) - Smoothing method (SMA, EMA, SMMA, LWMA) applied to the Single Moving Average.
- MA_Shift (Default: 0) - Horizontal shift in bars applied to the Single Moving Average values.
Filter 4: Secondary Ichimoku Senkou Span B Filter
- InpFilter4 (Default: Section Header Text) - Visual separator label for the Secondary Ichimoku Senkou Span B Filter module.
- Use_Ichimoku_Filter (Default: false) - Enables an independent higher-timeframe or custom-period Senkou Span B trend position filter.
- Ichimoku_Tenkan (Default: 9) - Tenkan-sen period in bars for the secondary Ichimoku filter calculation.
- Ichimoku_Kijun (Default: 26) - Kijun-sen period in bars for the secondary Ichimoku filter calculation.
- Ichimoku_SenkouB (Default: 30) - Senkou Span B period in bars used to confirm whether price closes above (BUY) or below (SELL) the baseline.
Filter 5: Long-Period RSI Trend Filter
- InpFilter5 (Default: Section Header Text) - Visual separator label for the Long-Period RSI 75 Filter module.
- Use_RSI75_Filter (Default: false) - Enables macro momentum filtering requiring long-period RSI above 50.0 for BUY and below 50.0 for SELL.
- RSI_Filter_Period (Default: 75) - Lookback period in bars for the macro RSI trend filter.
Filter 6: Double Moving Average Filter
- InpFilter6 (Default: Section Header Text) - Visual separator label for the Double Moving Average Filter module.
- Use_DoubleMA_Filter (Default: false) - Enables dual moving average trend alignment requiring Fast MA above Slow MA for BUY and below Slow MA for SELL.
- MA_A_Period (Default: 30) - Period in bars for the fast Moving Average (MA A).
- MA_A_Method (Default: MODE_EMA) - Smoothing method (SMA, EMA, SMMA, LWMA) for the fast Moving Average (MA A).
- MA_A_Applied (Default: PRICE_CLOSE) - Applied price type for the fast Moving Average (MA A).
- MA_A_Shift (Default: 0) - Horizontal shift in bars for the fast Moving Average (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 (SMA, EMA, SMMA, LWMA) for the slow Moving Average (MA B).
- MA_B_Applied (Default: PRICE_CLOSE) - Applied price type for the slow Moving Average (MA B).
- MA_B_Shift (Default: 0) - Horizontal shift in bars for the slow Moving Average (MA B).
Filter 7: Awesome Oscillator (AO) Filter
- InpFilter7 (Default: Section Header Text) - Visual separator label for the Awesome Oscillator Filter module.
- Use_AO_Filter (Default: false) - Master switch enabling Awesome Oscillator momentum validation.
- Use_AO_Volume_Filter (Default: false) - Requires AO histogram magnitude to exceed minimum threshold levels when enabled.
- AO_Buy_Min (Default: 4.0) - Minimum positive Awesome Oscillator value required to validate a BUY signal.
- AO_Sell_Max (Default: -4.0) - Maximum negative Awesome Oscillator value required to validate a SELL signal.
- Use_AO_Color_Filter (Default: false) - Requires increasing AO histogram slope (green bar) for BUY and decreasing slope (red bar) for SELL.
- Use_AO_Zero_Filter (Default: false) - Requires AO histogram to be above 0.0 and rising for BUY, or below 0.0 and falling for SELL.
Filter 8: Parabolic SAR Filter
- InpFilter8 (Default: Section Header Text) - Visual separator label for the Parabolic SAR Filter module.
- Use_SAR_Filter (Default: false) - Enables trailing stop-and-reverse trend confirmation requiring price above SAR dots for BUY and below SAR dots for SELL.
- SAR_Step (Default: 0.02) - Acceleration factor step increment for the Parabolic SAR calculation.
- SAR_Maximum (Default: 0.2) - Maximum acceleration factor cap for the Parabolic SAR calculation.
Filter 9: Heiken Ashi Filter
- InpFilter9 (Default: Section Header Text) - Visual separator label for the Heiken Ashi Filter module.
- Use_HeikenAshi_Filter (Default: false) - Enables smoothed candlestick trend confirmation requiring a bullish Heiken Ashi candle (HA Close above HA Open) for BUY and bearish for SELL.
Filter 10: CCI Trend Filter
- InpFilter10 (Default: Section Header Text) - Visual separator label for the CCI Trend Filter module.
- Use_CCI_Filter (Default: false) - Enables Commodity Channel Index zero-line trend filtering (CCI above 0.0 for BUY, below 0.0 for SELL).
- CCI_Period (Default: 50) - Lookback period in bars for the CCI Trend calculation.
- CCI_Applied (Default: PRICE_CLOSE) - Applied price source for the CCI Trend calculation.
Filter 11: CCI Overbought and Oversold Filter
- InpFilter11 (Default: Section Header Text) - Visual separator label for the CCI Overbought and Oversold Filter module.
- Use_CCI_OBOS_Filter (Default: false) - Enables extreme momentum breakout confirmation using short-period Commodity Channel Index thresholds.
- CCI_OBOS_Period (Default: 14) - Lookback period in bars for the CCI Overbought/Oversold filter.
- CCI_OBOS_Applied (Default: PRICE_CLOSE) - Applied price source for the CCI Overbought/Oversold filter.
- CCI_Overbought (Default: 100.0) - Upper CCI threshold level required to confirm upward momentum expansion for BUY signals.
- CCI_Oversold (Default: -100.0) - Lower CCI threshold level required to confirm downward momentum expansion for SELL signals.
Filter 12: Relative Vigor Index (RVI) Filters
- InpFilter12 (Default: Section Header Text) - Visual separator label for the RVI Filter module.
- Use_RVI_Filter (Default: false) - Enables RVI zero-line trend confirmation requiring the RVI main line above 0.0 for BUY and below 0.0 for SELL.
- RVI_Period (Default: 75) - Averaging period in bars for the RVI zero-line trend filter.
- Use_RVI_Signal_Filter (Default: false) - Enables RVI crossover alignment requiring the RVI main line above its signal line for BUY and below for SELL.
- RVI_Signal_Period (Default: 20) - Averaging period in bars for the RVI main-versus-signal crossover filter.
Filter 13: MACD Histogram and Zero-Line Filters
- InpFilter13 (Default: Section Header Text) - Visual separator label for the MACD Filter module.
- Use_MACD_Filter (Default: false) - Enables MACD histogram momentum filtering requiring positive histogram (main above signal) for BUY and negative histogram for SELL.
- MACD_FastEMA (Default: 12) - Fast Exponential Moving Average period in bars for MACD calculation.
- MACD_SlowEMA (Default: 26) - Slow Exponential Moving Average period in bars for MACD calculation.
- MACD_SignalSMA (Default: 9) - Signal Simple Moving Average period in bars for MACD calculation.
- MACD_Applied (Default: PRICE_CLOSE) - Applied price source for the MACD calculation.
- Use_MACD_Zero_Filter (Default: false) - Enables MACD zero-line regime filtering requiring the MACD main line above 0.0 for BUY and below 0.0 for SELL.
Filter 14: Support/Resistance and Fibonacci Retracement Filters
- InpFilter14 (Default: Section Header Text) - Visual separator label for the Support/Resistance and Fibonacci Filter module.
- Use_SR_Filter (Default: false) - Enables structural zone validation requiring BUY signals to form near recent swing support and SELL signals near recent swing resistance.
- SR_Period (Default: 50) - Lookback window in bars used to identify recent highest resistance and lowest support levels.
- SR_Zone_Points (Default: 80) - Proximity tolerance band in broker points around detected support and resistance levels.
- Use_Fib_Filter (Default: false) - Enables Fibonacci retracement zone filtering requiring price interaction within the configured retracement band between recent ZigZag swing points.
- Fib_Level_1 (Default: 0.382) - First Fibonacci retracement ratio boundary (default 38.2% retracement).
- Fib_Level_2 (Default: 0.618) - Second Fibonacci retracement ratio boundary (default 61.8% retracement).
- ZigZag_Depth (Default: 12) - Minimum bar distance parameter used to identify local swing highs and swing lows.
- ZigZag_Deviation (Default: 5) - Minimum price movement threshold in points required to validate a new swing pivot.
- ZigZag_Backstep (Default: 3) - Minimum number of bars separating consecutive swing high or swing low pivots.
Filter 15: Supertrend Filter
- InpFilter15 (Default: Section Header Text) - Visual separator label for the Supertrend Filter module.
- Use_Supertrend_Filter (Default: false) - Enables ATR-based Supertrend directional filtering requiring an active bullish regime for BUY signals and a bearish regime for SELL signals.
- ST_AtrPeriod (Default: 10) - Wilder ATR lookback period in bars used to calculate the Supertrend volatility bands.
- ST_Factor (Default: 3.0) - Volatility band multiplier controlling the sensitivity and trailing distance of the Supertrend filter.
Risk Disclaimer
- Trading foreign exchange, commodities, indices, and other financial instruments carries a high level of risk and may not be suitable for all investors. Past performance or historical chart signals do not guarantee future trading results. This indicator is an analytical software tool designed to assist with technical chart analysis and does not constitute financial advice or a guarantee of profit. Always test the indicator thoroughly on a MetaTrader 4 demo account to understand its behavior and filter interactions before applying it in a live trading environment.
