Stochastic Oscillator Cross OB OS Multi Filter Pro
- 지표
- 버전: 1.0
- 활성화: 5
Stochastic Oscillator Cross OB OS Multi Filter Pro
1. Overview
Stochastic Oscillator Arrows Alerts Multi Filter ATR Targets is a MetaTrader 4 (MT4) technical analysis indicator combining a sub-window Stochastic Oscillator with main-chart directional signal arrows, a modular 15-filter confirmation suite, and dynamic Average True Range (ATR) Stop Loss (SL) and Take Profit (TP) reference levels. Built for discretionary and rule-based traders, it identifies momentum shifts and trend continuations while filtering low-probability fluctuations in ranging or counter-trend markets. It evaluates completed price bars and projects structured risk-reward levels directly onto the chart as a visual decision-support utility without executing automated orders.
2. Technical Operating Principle
- Oscillator Foundation: Computes the standard Stochastic Oscillator (%K main line and %D signal line) in a separate indicator sub-window using user-defined %K period, %D period, slowing factor, moving average smoothing method, and price field basis (Low/High or Close/Close).
- Selectable Entry Modes (InpEntryMode):
- MODE_STOCH_CROSS (0): Evaluates momentum shifts when the %K line crosses above the %D line (bullish) or crosses below the %D line (bearish) across consecutive closed candles.
- MODE_LEVEL_CROSS (1): Evaluates momentum exhaustion exits when the %K line crosses upward out of the Oversold zone (default 20.0) or crosses downward out of the Overbought zone (default 80.0).
- MODE_CROSS_IN_LEVEL (2): Combines both rules by requiring a %K and %D crossover to occur strictly within the Oversold threshold zone for Buy candidates or within the Overbought threshold zone for Sell candidates.
- Closed-Bar Evaluation and Non-Repainting Behavior: All oscillator comparisons, entry mode triggers, and active filter validations run exclusively on completed, closed candlesticks (bar index 1 and older). The live forming candle (bar index 0) is excluded from signal generation and never triggers arrows or alerts. Once a candle closes and an arrow is plotted, the signal remains fixed at that bar and does not repaint, shift, or disappear on subsequent ticks.
- Buy Signal Logic: A bullish arrow is plotted below the closed signal candle when the selected InpEntryMode detects a valid bullish Stochastic condition AND every enabled module in the 15-filter suite simultaneously confirms bullish alignment on that same closed bar.
- Sell Signal Logic: A bearish arrow is plotted above the closed signal candle when the selected InpEntryMode detects a valid bearish Stochastic condition AND every enabled module in the 15-filter suite simultaneously confirms bearish alignment on that same closed bar.
- Modular 15-Filter Confirmation Suite (All Disabled by Default):
- Filter 1 (RSI Cross): Confirms RSI exit from Oversold or Overbought levels aligned with the signal direction.
- Filter 2 (ADX): Requires ADX main trend strength to meet or exceed a minimum threshold level.
- Filter 3 (Single MA): Confirms trend bias with closed price above (Buy) or below (Sell) a reference Moving Average.
- Filter 4 (Ichimoku Senkou Span B): Filters signals against the Ichimoku Senkou Span B cloud baseline.
- Filter 5 (RSI 75): Evaluates long-period RSI directional polarity relative to the 50.0 midpoint.
- Filter 6 (Double MA): Confirms directional alignment between a fast Moving Average and a slow Moving Average.
- Filter 7 (Awesome Oscillator): Checks Awesome Oscillator momentum amplitude, bar-to-bar slope direction, and zero-line polarity.
- Filter 8 (Parabolic SAR): Requires closed price above Parabolic SAR dots for Buy and below dots for Sell.
- Filter 9 (Heiken Ashi): Confirms bullish or bearish smoothed Heiken Ashi candle body polarity.
- Filter 10 (CCI Trend): Uses medium-period CCI relative to the zero line to confirm broader trend bias.
- Filter 11 (CCI OB/OS): Evaluates short-period CCI levels against upper and lower threshold levels.
- Filter 12 (RVI Trend and Signal): Combines long-period RVI zero-line polarity with short-period RVI main/signal alignment.
- Filter 13 (MACD Histogram and Zero): Validates MACD histogram polarity and optional MACD main line position relative to zero.
- Filter 14 (Support/Resistance and Fibonacci): Checks price interaction with recent swing Support/Resistance zones or active swing Fibonacci retracement bands.
- Filter 15 (Supertrend): Evaluates directional trend state via ATR-based volatility bands to allow only trend-aligned signals.
- ATR Risk-Reward Target Levels: For the most recent confirmed signal on the chart, the indicator computes the base 1R risk distance from the signal bar ATR multiplied by InpATRMultiplier, plotting horizontal Entry, SL (1R), TP1 (1R), TP2 (2R), and TP3 (3R) segments with right-aligned price labels. Whenever a newer signal is confirmed, the target lines automatically reposition to the latest signal bar.
3. Key Features
- Three switchable Stochastic entry modes (Crossover, OB/OS Level Exit, and Crossover Inside OB/OS Zone) unified in one indicator.
- Strict closed-bar signal evaluation that prevents repainting after candle close.
- Built-in 15-module multi-confirmation filter framework covering trend, momentum, volatility, oscillators, and price structure without external indicator clutter.
- Automated on-chart risk-reward visualization displaying Entry, SL, TP1 (1R), TP2 (2R), and TP3 (3R) levels derived from ATR.
- Customizable Wingdings arrow symbols, colors, widths, and vertical point spacing from candle highs and lows.
- Multi-channel alert dispatcher supporting MT4 terminal pop-up windows, distinct Buy/Sell WAV audio files, mobile push notifications, and once-per-bar alert throttling.
- Automatic removal of drawn arrows and target lines when inputs change, timeframes switch, or the indicator is detached from the chart.
4. Trading and Setup Recommendations
- Supported Instruments: Suitable for major and cross Forex pairs (EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD), spot metals (XAUUSD), indices, and liquid CFDs. Verify broker spread sensitivity and tick precision before applying to exotic pairs.
- Recommended Timeframes: Compatible with all standard MT4 timeframes. M5 and M15 fit intraday momentum setups; M30 and H1 offer balanced signal frequency with reduced market noise; H4 and D1 suit multi-day swing analysis.
- Account and Execution Environment: Operates on both Hedging and Netting MT4 account types with standard or ECN/low-spread brokers. Because this tool is a visual analytical indicator rather than an automated order-executing robot, low-latency VPS hosting is optional and needed only if continuous 24-hour mobile push alerts are desired.
- Practical Filter Configuration Workflow: Start with default Stochastic settings and enable one to three complementary filters rather than activating all 15 filters simultaneously, which can overly restrict signal frequency. For pullback trend-following setups, combine MODE_LEVEL_CROSS or MODE_CROSS_IN_LEVEL with a trend baseline (such as Single MA, Double MA, Ichimoku Senkou Span B, or Supertrend) and a strength check (such as ADX). For range-reversal setups, pair MODE_LEVEL_CROSS with Support/Resistance or Fibonacci zone filtering.
5. Graphical Interface and Notification System
- Sub-Window Elements:
- %K Line (Default: DodgerBlue, Solid, Width 2): Primary Stochastic oscillator curve.
- %D Line (Default: OrangeRed, Solid, Width 1): Smoothed Stochastic signal curve.
- Oversold and Overbought Lines (Default: 20.0 Green and 80.0 Red, Dotted): Horizontal threshold zone boundaries.
- Main Chart Elements:
- Buy Arrow (Default: Aqua, Wingdings 233): Plotted below the low of a confirmed bullish closed candle at a user-defined point offset.
- Sell Arrow (Default: Red, Wingdings 234): Plotted above the high of a confirmed bearish closed candle at a user-defined point offset.
- Active Signal Target Lines: Solid Gold Entry line paired with dashed SL (Red), TP1 1R (LimeGreen), TP2 2R (MediumSeaGreen), and TP3 3R (DodgerBlue) lines and right-side price text labels for the most recent signal.
- Oscillator-Only View Option: Setting InpShowSignal to false hides main-chart arrows and target lines so the tool can be used purely as a sub-window Stochastic Oscillator.
- Alert and Notification Channels:
- Terminal Pop-Up Alert: Displays signal direction (BUY or SELL), instrument symbol, chart timeframe, and signal candle close price.
- Sound Alert: Plays configurable WAV audio files located in the MT4 Sounds directory for Buy and Sell triggers.
- Mobile Push Notification: Delivers real-time text alerts to MetaTrader iOS or Android mobile apps once MetaQuotes ID is configured under MT4 Tools -> Options -> Notifications.
- Once-Per-Bar Limiter: Prevents duplicate alerts from firing multiple times within the same bar timestamp.
6. Computational Efficiency and Terminal Performance
- Incremental Recalculation: Requires at least 150 historical bars on initial load and updates only newly arrived or recalculated bars via prev_calculated indexing on subsequent ticks to keep CPU usage low.
- Conditional Filter Execution: Built-in indicator queries and internal series buffers (such as Heiken Ashi and Supertrend arrays) run only when their corresponding boolean switches are set to true.
- Resource Guidance: Keep unused filter modules disabled, ensure sufficient chart history bars are loaded in MT4 terminal settings, and avoid running an excessive number of heavy multi-filter charts simultaneously on low-specification PCs.
7. Input Parameters Documentation
Visual section headers in the MT4 Inputs tab (InpGroupEntry, InpGroupStoch, InpGroupLevels, InpGroupArrows, InpGroupNotif, InpGroupTargets, and InpFilter1 through InpFilter15) organize parameters into logical groups and have no calculation effect on signal generation.
7.1 Entry Signal Method and Stochastic Settings
- InpEntryMode (Default: MODE_LEVEL_CROSS) -> Selects signal mode: MODE_STOCH_CROSS (0 = %K/%D cross), MODE_LEVEL_CROSS (1 = OB/OS exit), or MODE_CROSS_IN_LEVEL (2 = %K/%D cross in OB/OS zone) (unit: mode enum).
- InpKPeriod (Default: 14) -> Lookback period for raw %K Stochastic calculation (unit: bars).
- InpDPeriod (Default: 3) -> Smoothing period applied to %K for %D signal line (unit: bars).
- InpSlowing (Default: 3) -> Internal smoothing factor for Stochastic calculation (unit: bars).
- InpMethod (Default: MODE_SMA) -> Moving average method for Stochastic smoothing (unit: MA enum).
- InpPrice (Default: STO_CLOSECLOSE) -> Price field basis for Stochastic range, Low/High or Close/Close (unit: price enum).
- LevelOversold (Default: 20.0) -> Lower threshold defining Oversold zone (unit: scale 0-100).
- LevelOverbought (Default: 80.0) -> Upper threshold defining Overbought zone (unit: scale 0-100).
7.2 Signal Arrows and Notification Settings
- InpShowSignal (Default: true) -> Enables or disables signal detection, arrow plotting, and target rendering (unit: boolean).
- BuyArrowColor (Default: clrAqua) -> Color of bullish Buy arrows on main chart (unit: color).
- SellArrowColor (Default: clrRed) -> Color of bearish Sell arrows on main chart (unit: color).
- ArrowWidth (Default: 2) -> Thickness and visual size of plotted signal arrows (unit: size 1-5).
- CandleDistance (Default: 30) -> Vertical gap between candle high or low and plotted signal arrow (unit: points).
- BuyArrowCode (Default: 233) -> Wingdings symbol code rendered for Buy arrows (unit: Wingdings code).
- SellArrowCode (Default: 234) -> Wingdings symbol code rendered for Sell arrows (unit: Wingdings code).
- NotifAlert (Default: true) -> Enables or disables MT4 terminal pop-up alert dialogs (unit: boolean).
- NotifSound (Default: true) -> Enables or disables WAV sound playback on confirmed signals (unit: boolean).
- NotifPush (Default: false) -> Enables or disables mobile push notifications via MetaQuotes ID (unit: boolean).
- SoundBuy (Default: "alert.wav") -> WAV audio filename played on Buy signals (unit: string filename).
- SoundSell (Default: "alert2.wav") -> WAV audio filename played on Sell signals (unit: string filename).
- InpAlertOncePerBar (Default: true) -> Limits alerts to once per direction per bar timestamp (unit: boolean).
7.3 ATR and Risk-Reward Target Levels (SL/TP)
- InpShowTargets (Default: true) -> Enables or disables Entry, SL, TP1, TP2, and TP3 lines for the latest signal (unit: boolean).
- InpATRPeriod (Default: 7) -> Lookback period for ATR volatility calculation used in SL/TP sizing (unit: bars).
- InpATRMultiplier (Default: 1.5) -> Multiplier applied to ATR to define the 1R Stop Loss risk distance (unit: multiplier).
- InpLineExtensionBars (Default: 1) -> Number of bar intervals target lines extend right past candle 0 (unit: bars).
- InpTargetFontSize (Default: 8) -> Font size of right-aligned Entry, SL, and TP price labels (unit: font points).
- InpColorEntry (Default: clrGold) -> Line and label color for the Entry reference price (unit: color).
- InpColorSL (Default: clrRed) -> Line and label color for the Stop Loss (1R) level (unit: color).
- InpColorTP1 (Default: clrLimeGreen) -> Line and label color for Take Profit 1 (1R) level (unit: color).
- InpColorTP2 (Default: clrMediumSeaGreen) -> Line and label color for Take Profit 2 (2R) level (unit: color).
- InpColorTP3 (Default: clrDodgerBlue) -> Line and label color for Take Profit 3 (3R) level (unit: color).
- InpTargetLineStyle (Default: STYLE_DASH) -> Line style applied to SL, TP1, TP2, and TP3 segments (unit: line enum).
- InpTargetLineWidth (Default: 1) -> Line thickness applied to Entry, SL, and TP segments (unit: pixels).
7.4 Universal 15-Filter Suite Parameters (FAZAXPRO Filter Framework)
- Filter 1 (RSI Cross Filter):
- Use_RSI_Cross_Filter (Default: false) -> Enables or disables RSI zone-exit confirmation filter (unit: boolean).
- RSI_Length (Default: 14) -> Lookback period for RSI cross calculation (unit: bars).
- RSI_Price_Source (Default: PRICE_CLOSE) -> Applied price series used for RSI calculation (unit: price enum).
- RSI_Oversold (Default: 30.0) -> Oversold threshold level RSI must cross above for Buy confirmation (unit: scale 0-100).
- RSI_Overbought (Default: 70.0) -> Overbought threshold level RSI must cross below for Sell confirmation (unit: scale 0-100).
- Filter 2 (ADX Trend Strength Filter):
- Use_ADX_Filter (Default: false) -> Enables or disables ADX minimum trend strength filter (unit: boolean).
- ADX_Period (Default: 10) -> Lookback period for ADX trend strength calculation (unit: bars).
- ADX_Min_Level (Default: 20.0) -> Minimum ADX main line value required to pass filter (unit: ADX scale).
- Filter 3 (Single Moving Average Filter):
- Use_MA_Filter (Default: false) -> Enables or disables single Moving Average trend filter (unit: boolean).
- MA_Period (Default: 50) -> Averaging period for the trend Moving Average (unit: bars).
- MA_Method (Default: MODE_SMA) -> Smoothing method for the trend Moving Average (unit: MA enum).
- MA_Shift (Default: 0) -> Horizontal bar shift applied to the trend Moving Average (unit: bars).
- Filter 4 (Ichimoku Senkou Span B Filter):
- Use_Ichimoku_Filter (Default: false) -> Enables or disables Ichimoku Senkou Span B baseline filter (unit: boolean).
- Ichimoku_Tenkan (Default: 9) -> Tenkan-sen period in Ichimoku calculation (unit: bars).
- Ichimoku_Kijun (Default: 26) -> Kijun-sen period in Ichimoku calculation (unit: bars).
- Ichimoku_SenkouB (Default: 52) -> Senkou Span B period used as cloud baseline threshold (unit: bars).
- Filter 5 (Long-Period RSI 75 Filter):
- Use_RSI75_Filter (Default: false) -> Enables or disables long-period RSI 50-level trend polarity filter (unit: boolean).
- RSI_Filter_Period (Default: 75) -> Lookback period for the long-period RSI trend filter (unit: bars).
- Filter 6 (Double Moving Average Filter):
- Use_DoubleMA_Filter (Default: false) -> Enables or disables dual Moving Average alignment filter (unit: boolean).
- MA_A_Period (Default: 30) -> Averaging period for fast Moving Average A (unit: bars).
- MA_A_Method (Default: MODE_EMA) -> Smoothing method for Moving Average A (unit: MA enum).
- MA_A_Applied (Default: PRICE_CLOSE) -> Applied price series for Moving Average A (unit: price enum).
- MA_A_Shift (Default: 0) -> Horizontal bar shift for Moving Average A (unit: bars).
- MA_B_Period (Default: 140) -> Averaging period for slow Moving Average B (unit: bars).
- MA_B_Method (Default: MODE_EMA) -> Smoothing method for Moving Average B (unit: MA enum).
- MA_B_Applied (Default: PRICE_CLOSE) -> Applied price series for Moving Average B (unit: price enum).
- MA_B_Shift (Default: 0) -> Horizontal bar shift for Moving Average B (unit: bars).
- Filter 7 (Awesome Oscillator Filter):
- Use_AO_Filter (Default: false) -> Primary switch enabling Awesome Oscillator filter rules (unit: boolean).
- Use_AO_Volume_Filter (Default: false) -> Enables minimum Awesome Oscillator amplitude thresholds (unit: boolean).
- AO_Buy_Min (Default: 4.0) -> Minimum Awesome Oscillator reading required for Buy signals (unit: AO value).
- AO_Sell_Max (Default: -4.0) -> Maximum Awesome Oscillator reading allowed for Sell signals (unit: AO value).
- Use_AO_Color_Filter (Default: false) -> Requires Awesome Oscillator slope rising for Buy or falling for Sell (unit: boolean).
- Use_AO_Zero_Filter (Default: false) -> Requires Awesome Oscillator above zero and rising for Buy, or below zero and falling for Sell (unit: boolean).
- Filter 8 (Parabolic SAR Filter):
- Use_SAR_Filter (Default: false) -> Enables or disables Parabolic SAR directional filter (unit: boolean).
- SAR_Step (Default: 0.02) -> Acceleration step increment for Parabolic SAR (unit: step factor).
- SAR_Maximum (Default: 0.2) -> Maximum acceleration limit for Parabolic SAR (unit: factor).
- Filter 9 (Heiken Ashi Filter):
- Use_HeikenAshi_Filter (Default: false) -> Enables or disables smoothed Heiken Ashi candle body polarity filter (unit: boolean).
- Filter 10 (CCI Trend Filter):
- Use_CCI_Filter (Default: false) -> Enables or disables zero-line CCI trend bias filter (unit: boolean).
- CCI_Period (Default: 50) -> Lookback period for CCI trend calculation (unit: bars).
- CCI_Applied (Default: PRICE_CLOSE) -> Applied price series for CCI trend calculation (unit: price enum).
- Filter 11 (CCI Overbought/Oversold Filter):
- Use_CCI_OBOS_Filter (Default: false) -> Enables or disables CCI threshold zone confirmation filter (unit: boolean).
- CCI_OBOS_Period (Default: 14) -> Lookback period for short-period CCI threshold filter (unit: bars).
- CCI_OBOS_Applied (Default: PRICE_CLOSE) -> Applied price series for CCI OB/OS filter (unit: price enum).
- CCI_Overbought (Default: 100.0) -> Upper CCI threshold for bullish momentum confirmation (unit: CCI scale).
- CCI_Oversold (Default: -100.0) -> Lower CCI threshold for bearish momentum confirmation (unit: CCI scale).
- Filter 12 (RVI Trend and Signal Filters):
- Use_RVI_Filter (Default: false) -> Enables or disables long-period RVI zero-line trend filter (unit: boolean).
- RVI_Period (Default: 75) -> Lookback period for long-period RVI trend filter (unit: bars).
- Use_RVI_Signal_Filter (Default: false) -> Enables or disables RVI main-versus-signal alignment filter (unit: boolean).
- RVI_Signal_Period (Default: 20) -> Lookback period for RVI main/signal alignment filter (unit: bars).
- Filter 13 (MACD Histogram and Zero Filters):
- Use_MACD_Filter (Default: false) -> Enables or disables MACD histogram polarity filter (unit: boolean).
- MACD_FastEMA (Default: 12) -> Fast EMA period for MACD calculation (unit: bars).
- MACD_SlowEMA (Default: 26) -> Slow EMA period for MACD calculation (unit: bars).
- MACD_SignalSMA (Default: 9) -> Signal SMA period for MACD calculation (unit: bars).
- MACD_Applied (Default: PRICE_CLOSE) -> Applied price series for MACD calculation (unit: price enum).
- Use_MACD_Zero_Filter (Default: false) -> Enables or disables MACD main line zero-level filter (unit: boolean).
- Filter 14 (Support/Resistance and Fibonacci Filters):
- Use_SR_Filter (Default: false) -> Enables or disables recent high/low Support and Resistance zone filter (unit: boolean).
- SR_Period (Default: 50) -> Closed-bar lookback window for Support and Resistance levels (unit: bars).
- SR_Zone_Points (Default: 80) -> Price tolerance band around Support and Resistance levels (unit: points).
- Use_Fib_Filter (Default: false) -> Enables or disables swing Fibonacci retracement zone filter (unit: boolean).
- Fib_Level_1 (Default: 0.382) -> First Fibonacci retracement ratio boundary (unit: ratio).
- Fib_Level_2 (Default: 0.618) -> Second Fibonacci retracement ratio boundary (unit: ratio).
- ZigZag_Depth (Default: 12) -> Minimum bar depth for swing pivot detection (unit: bars).
- ZigZag_Deviation (Default: 5) -> Minimum price deviation for swing pivot validation (unit: points).
- ZigZag_Backstep (Default: 3) -> Minimum bar spacing between consecutive swing pivots (unit: bars).
- Filter 15 (Supertrend Filter):
- Use_Supertrend_Filter (Default: false) -> Enables or disables ATR-based Supertrend directional filter (unit: boolean).
- ST_AtrPeriod (Default: 10) -> ATR lookback period for Supertrend volatility bands (unit: bars).
- ST_Factor (Default: 3.0) -> Volatility band multiplier applied to ATR in Supertrend (unit: multiplier).
8. Risk Disclaimer
Trading foreign exchange, commodities, indices, and other financial instruments carries substantial risk and may not be suitable for all investors. Past performance and historical chart signals do not ensure future results. This software is an analytical and visual decision-support indicator designed to assist traders in technical analysis; it does not execute orders or promise financial profit. Always test the product thoroughly on a demo account to understand its behavior before using it to inform live trading decisions.
