Pro Heiken Ashi Momentum Trend Signal MultiFilter
- インディケータ
- バージョン: 1.0
- アクティベーション: 5
Pro Heiken Ashi Momentum Trend Signal MultiFilter
1. Technical Overview
This product is a custom technical analysis indicator for MetaTrader 4 (MT4) that combines smoothed Heiken Ashi price-action rendering, dual selectable closed-bar entry signal modes, a 15-module multi-indicator confluence engine, and automated Average True Range (ATR) Risk-to-Reward level projection. Its primary engineering objective is to filter short-term candlestick noise, validate directional momentum transitions against user-configured technical conditions, and display objective reference levels for Entry, Stop Loss (SL), and three progressive Take Profit targets (TP1, TP2, TP3) directly on the main price chart. Rather than relying on isolated candlestick color flips that frequently trigger during low-momentum consolidations, the indicator allows traders to combine multiple independent confirmation layers inside one unified MT4 tool. All calculations execute locally within the terminal environment without external DLL dependencies or third-party data feeds.
2. Operating Principle and Signal Logic
The indicator processes standard broker OHLC price series through four sequential computational stages on every chart update:
- Smoothed Heiken Ashi Price Modeling: The indicator computes synthetic Heiken Ashi open, high, low, and close arrays from underlying bar data to smooth intraday volatility spikes and highlight sustained directional waves. Users can display these smoothed candles directly over the chart or hide them while retaining full background signal processing.
- Closed-Bar Signal Evaluation and Repainting Behavior: All Buy and Sell signal evaluations run strictly on completed, closed candlesticks (Bar 1 and historical closed bars) rather than the active, unclosed bar (Bar 0). Because signals are evaluated only after bar closure, plotted signal arrows remain fixed on the chart and do not repaint or disappear as subsequent bars form. Transparency note: when the optional Fibonacci retracement filter is activated, underlying swing anchors are detected via ZigZag pivot logic, which naturally updates its reference swing points if price establishes a new market extreme; all other oscillators, moving averages, and Heiken Ashi filters operate strictly on fixed closed-bar values.
- Selectable Entry Detection Modes:
- Mode 1 (ENTRY_COLOR_CHANGE): Evaluates completed Heiken Ashi candle transitions from bearish polarity to bullish polarity for Buy candidates, or from bullish polarity to bearish polarity for Sell candidates. A signal arrow is plotted only when the directional color transition is simultaneously validated by every active filter in the confluence suite.
- Mode 2 (ENTRY_COLOR_NO_WICK): Applies a stricter two-stage price-action confirmation workflow. Following a Heiken Ashi directional color reversal, the algorithm monitors subsequent candles in the new direction and requires a qualifying momentum bar exhibiting a clean flat open-to-extreme wick profile (no lower shadow on a bullish candle for Buy signals; no upper shadow on a bearish candle for Sell signals) alongside full alignment from all enabled confirmation filters.
- Multi-Filter Confluence Gating: Each of the 15 integrated filter modules operates independently. Any filter left disabled is bypassed during bar evaluation, whereas every enabled filter acts as a mandatory logical AND condition that must agree with the Buy or Sell direction before an arrow is drawn.
- Dynamic ATR Risk-to-Reward Level Projection: Whenever a confirmed signal exists on the chart, the indicator locates the most recent closed signal bar, samples the local ATR volatility value over InpATRPeriod, and multiplies it by InpATRMultiplier to define the baseline 1R risk distance from the signal bar close price. From that Entry reference, horizontal lines and price labels are automatically projected for SL (1R), TP1 (1R), TP2 (2R), and TP3 (3R).
3. Key Technical Features and Graphical Interface
- Optional Heiken Ashi Chart Overlay: Renders customizable bullish and bearish Heiken Ashi candle bodies and wicks on the primary chart window, with instant visibility toggling via InpShowHA.
- Customizable Wingdings Signal Arrows: Plots upward Buy arrows below candle lows and downward Sell arrows above candle highs using configurable Wingdings symbol codes, colors, and point-based vertical spacing offsets.
- 15-Module Technical Confluence Framework: Integrates momentum oscillators (RSI, Awesome Oscillator, CCI, RVI, MACD), trend-following baselines (Single MA, Double MA, Ichimoku Senkou Span B, Parabolic SAR, Secondary Heiken Ashi), volatility trend bands (ATR-based Supertrend), and structural price levels (Support/Resistance zones and Fibonacci retracements).
- Automated Risk-to-Reward Graphical Lines: Draws non-selectable, clean horizontal projection lines and right-aligned Segoe UI text labels for Entry, SL, TP1, TP2, and TP3 on the latest confirmed signal, automatically removing all graphical objects when the indicator is detached or disabled.
- Multi-Channel Closed-Bar Alert System: Supports native MT4 pop-up alert windows, custom WAV audio alerts, mobile push notifications via MetaQuotes ID, and SMTP email notifications, governed by a bar-timestamp lock so each confirmed signal bar triggers at most one alert cycle.
- Computational Efficiency and Terminal Performance: Because inactive filter modules are skipped during buffer iteration and signal checks focus on closed bars, CPU and RAM overhead remains low during standard single-chart or multi-chart operation. When enabling multiple complex filters (such as Support/Resistance lookbacks, Fibonacci swing detection, and Supertrend simultaneously) across numerous open charts, traders are advised to maintain a moderate history bar limit in MT4 (Tools -> Options -> Charts -> Max bars in chart) to preserve responsive terminal performance.
4. Operation and Setup Recommendations
- Supported Instruments: Suitable for major and minor Forex currency pairs (such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCAD), precious metals (such as XAUUSD), and liquid index CFDs. Traders should verify symbol point digit conventions and typical spread conditions on their specific broker feed before configuring point-based inputs.
- Recommended Timeframes: Designed for intraday and swing trading workflows across M15, M30, H1, and H4 timeframes. The indicator can also be attached to M1 or M5 charts for short-term momentum monitoring, provided InpATRMultiplier and InpArrowOffset are calibrated to account for spread-to-ATR ratios.
- Broker and Account Environment: Compatible with standard MT4 execution environments (both Hedging and Netting account structures). Low-spread or ECN broker accounts are recommended when operating on lower timeframes so that ATR-derived Stop Loss and 1R-to-3R Take Profit projections remain proportional to actual execution costs.
- Practical Configuration Workflow:
- Step 1: Attach the indicator with default filter settings (all 15 confluence filters off) to observe baseline Heiken Ashi signal frequency under Mode 1 or Mode 2.
- Step 2: Activate 1 to 3 complementary, non-redundant filters—for example, pairing a macro trend filter (Double MA or Supertrend) with a momentum filter (MACD or ADX) and a structural boundary filter (Support/Resistance)—to align signals with your analytical methodology.
- Step 3: Adjust InpATRPeriod, InpATRMultiplier, and InpArrowOffset to match the volatility scale and digit precision (4-digit vs 5-digit quotes) of the selected instrument.
5. Input Parameters Documentation
Every parameter available in the MT4 Inputs tab is documented below with its exact identifier, default setting, technical function, and unit of measurement.
5.1 Core Display and Entry Mode Parameters
- InpGroupCore (Default: "=== HEIKEN ASHI DISPLAY & CORE SETTINGS ==="): Text header label organizing the core Heiken Ashi display and entry mode parameters in the MT4 Inputs window.
- InpEntryMode (Default: ENTRY_COLOR_NO_WICK): Selects the signal generation mode between Mode 1 (ENTRY_COLOR_CHANGE: standard Heiken Ashi directional color reversal) and Mode 2 (ENTRY_COLOR_NO_WICK: directional color reversal followed by a wickless open-to-extreme continuation candle).
- InpShowHA (Default: true): Boolean toggle enabling (true) or disabling (false) the visual drawing of smoothed Heiken Ashi candlesticks over the main price chart.
- InpBullColor (Default: clrDodgerBlue): Color setting applied to bullish Heiken Ashi candle bodies and wicks when InpShowHA is enabled.
- InpBearColor (Default: clrRed): Color setting applied to bearish Heiken Ashi candle bodies and wicks when InpShowHA is enabled.
5.2 Signal Arrow Visual Parameters
- InpGroupArrows (Default: "=== SIGNAL ARROWS SETTINGS ==="): Text header label organizing signal arrow appearance and placement parameters in the MT4 Inputs window.
- InpBuyArrowColor (Default: clrAqua): Color setting applied to upward Buy signal arrows plotted below qualifying bullish bars.
- InpSellArrowColor (Default: clrRed): Color setting applied to downward Sell signal arrows plotted above qualifying bearish bars.
- InpArrowCodeBuy (Default: 233): Wingdings character code used to render Buy signal arrows (code 233 displays a standard upward arrow).
- InpArrowCodeSell (Default: 234): Wingdings character code used to render Sell signal arrows (code 234 displays a standard downward arrow).
- InpArrowOffset (Default: 600): Vertical distance offset separating signal arrows from the candle low (for Buy) or candle high (for Sell), measured in broker points.
5.3 ATR Volatility and Target Level Parameters
- InpGroupTargets (Default: "=== ATR & TARGET LEVELS (SL/TP) ==="): Text header label organizing ATR volatility calculation and SL/TP graphical projection parameters.
- InpShowTargets (Default: true): Boolean toggle enabling (true) or disabling (false) automatic chart drawing of Entry, SL, TP1, TP2, and TP3 lines and price labels for the most recent confirmed signal.
- InpATRPeriod (Default: 7): Lookback period used to compute the Average True Range (ATR) volatility baseline at the signal bar, measured in bars.
- InpATRMultiplier (Default: 1.5): Multiplier factor applied to the signal bar ATR value to calculate the 1R Stop Loss risk distance in price units.
- InpLineExtension (Default: 1): Horizontal projection distance extending Entry, SL, and TP lines to the right of the current active candle (Bar 0), measured in bars.
- InpFontSize (Default: 8): Typographic font size used for the Entry, SL, TP1, TP2, and TP3 price labels on the chart, measured in typographic points.
- InpEntryColor (Default: clrGold): Color setting for the solid Entry price reference line and its text label.
- InpSLColor (Default: clrRed): Color setting for the Stop Loss (1R) projection line and its text label.
- InpTP1Color (Default: clrLimeGreen): Color setting for the first Take Profit (1R / 1:1 Risk-to-Reward) projection line and its text label.
- InpTP2Color (Default: clrMediumSeaGreen): Color setting for the second Take Profit (2R / 1:2 Risk-to-Reward) projection line and its text label.
- InpTP3Color (Default: clrDodgerBlue): Color setting for the third Take Profit (3R / 1:3 Risk-to-Reward) projection line and its text label.
- InpTargetLineStyle (Default: STYLE_DASH): Graphical line pattern (such as solid, dashed, or dotted) applied to the SL, TP1, TP2, and TP3 projection lines.
- InpLineWidth (Default: 1): Line thickness applied to the Entry, SL, and TP horizontal projection lines, measured in pixels.
5.4 Alert and Notification Parameters
- InpGroupAlerts (Default: "=== ALERTS & NOTIFICATIONS ==="): Text header label organizing terminal alert, audio, push, and email notification parameters.
- InpShowAlert (Default: false): Boolean toggle enabling (true) or disabling (false) native MT4 pop-up alert dialog messages upon closed-bar signal confirmation.
- InpPlaySound (Default: false): Boolean toggle enabling (true) or disabling (false) local sound playback when a new signal is confirmed on a closed bar.
- InpAlertSound (Default: "alert.wav"): File name of the audio file located inside the MT4 Sounds folder played when InpPlaySound is active.
- InpPushNotify (Default: false): Boolean toggle enabling (true) or disabling (false) mobile push notifications sent via MetaQuotes ID when a signal triggers.
- InpSendEmail (Default: false): Boolean toggle enabling (true) or disabling (false) email notifications dispatched through the terminal SMTP settings when a signal triggers.
5.5 Confluence Suite: Momentum and Oscillator Filters
- InpFilter1 (Default: "=== 1. RSI CROSS FILTER ==="): Text header label for Module 1 (Relative Strength Index threshold crossover filter).
- Use_RSI_Cross_Filter (Default: false): Boolean switch enabling (true) or disabling (false) RSI threshold crossover validation (requiring RSI to cross above RSI_Oversold for Buy, or cross below RSI_Overbought for Sell).
- RSI_Length (Default: 14): Averaging lookback period for the RSI crossover filter, measured in bars.
- RSI_Price_Source (Default: PRICE_CLOSE): Applied candle price type (Close, Open, High, Low, Median, Typical, or Weighted) used in RSI calculations.
- RSI_Oversold (Default: 30.0): Lower RSI boundary level (0 to 100 oscillator scale) that must be crossed upward to validate a Buy signal.
- RSI_Overbought (Default: 70.0): Upper RSI boundary level (0 to 100 oscillator scale) that must be crossed downward to validate a Sell signal.
- InpFilter5 (Default: "=== 5. RSI 75 FILTER ==="): Text header label for Module 5 (macro-period RSI midline polarity filter).
- Use_RSI75_Filter (Default: false): Boolean switch enabling (true) or disabling (false) long-period RSI 50.0 midline confirmation (requiring RSI above 50.0 for Buy and below 50.0 for Sell).
- RSI_Filter_Period (Default: 75): Lookback period for the macro RSI midline trend filter, measured in bars.
- InpFilter7 (Default: "=== 7. AWESOME OSCILLATOR FILTER ==="): Text header label for Module 7 (Bill Williams Awesome Oscillator multi-mode filter).
- Use_AO_Filter (Default: false): Master boolean switch enabling (true) or disabling (false) Awesome Oscillator (AO) confirmation checks.
- Use_AO_Volume_Filter (Default: false): Boolean switch requiring AO histogram values to reach minimum positive or negative expansion levels when Use_AO_Filter is active.
- AO_Buy_Min (Default: 4.0): Minimum positive AO histogram value required to permit Buy signals when Use_AO_Volume_Filter is enabled, measured in oscillator units.
- AO_Sell_Max (Default: -4.0): Maximum negative AO histogram value required to permit Sell signals when Use_AO_Volume_Filter is enabled, measured in oscillator units.
- Use_AO_Color_Filter (Default: false): Boolean switch requiring bar-over-bar AO histogram slope alignment (current AO greater than previous AO for Buy; lower for Sell).
- Use_AO_Zero_Filter (Default: false): Boolean switch requiring combined AO zero-line polarity and slope confirmation (AO above 0.0 and rising for Buy; below 0.0 and falling for Sell).
- InpFilter10 (Default: "=== 10. CCI TREND FILTER ==="): Text header label for Module 10 (Commodity Channel Index zero-axis trend filter).
- Use_CCI_Filter (Default: false): Boolean switch enabling (true) or disabling (false) CCI zero-line directional filtering (requiring CCI above 0.0 for Buy and below 0.0 for Sell).
- CCI_Period (Default: 50): Lookback averaging period for the CCI zero-line trend filter, measured in bars.
- CCI_Applied (Default: PRICE_CLOSE): Applied candle price source used for the CCI trend calculation.
- InpFilter11 (Default: "=== 11. CCI OB & OS FILTER ==="): Text header label for Module 11 (Commodity Channel Index extreme threshold momentum filter).
- Use_CCI_OBOS_Filter (Default: false): Boolean switch enabling (true) or disabling (false) short-period CCI extreme breakout validation.
- CCI_OBOS_Period (Default: 14): Lookback averaging period for the CCI extreme threshold filter, measured in bars.
- CCI_OBOS_Applied (Default: PRICE_CLOSE): Applied candle price source used for the CCI extreme threshold calculation.
- CCI_Overbought (Default: 100.0): Upper CCI threshold value (oscillator index units) required to confirm bullish momentum expansion for Buy signals.
- CCI_Oversold (Default: -100.0): Lower CCI threshold value (oscillator index units) required to confirm bearish momentum expansion for Sell signals.
- InpFilter12 (Default: "=== 12. RVI FILTERS ==="): Text header label for Module 12 (Relative Vigor Index zero-line and signal-line filters).
- Use_RVI_Filter (Default: false): Boolean switch enabling (true) or disabling (false) RVI main-line zero-axis filtering (above 0.0 for Buy; below 0.0 for Sell).
- RVI_Period (Default: 75): Lookback period for the RVI zero-axis trend filter, measured in bars.
- Use_RVI_Signal_Filter (Default: false): Boolean switch enabling (true) or disabling (false) RVI main-line versus signal-line directional alignment (main above signal for Buy; main below signal for Sell).
- RVI_Signal_Period (Default: 20): Lookback period for the RVI main-line versus signal-line filter, measured in bars.
- InpFilter13 (Default: "=== 13. MACD FILTERS ==="): Text header label for Module 13 (Moving Average Convergence Divergence histogram and zero-line filters).
- Use_MACD_Filter (Default: false): Boolean switch enabling (true) or disabling (false) MACD histogram polarity validation (MACD main line above signal line for Buy; below for Sell).
- MACD_FastEMA (Default: 12): Fast Exponential Moving Average averaging period for MACD calculation, measured in bars.
- MACD_SlowEMA (Default: 26): Slow Exponential Moving Average averaging period for MACD calculation, measured in bars.
- MACD_SignalSMA (Default: 9): Signal line Simple Moving Average period for MACD calculation, measured in bars.
- MACD_Applied (Default: PRICE_CLOSE): Applied candle price source used for the MACD calculation.
- Use_MACD_Zero_Filter (Default: false): Boolean switch enabling (true) or disabling (false) MACD main-line zero-axis validation (MACD main line above 0.0 for Buy; below 0.0 for Sell).
5.6 Confluence Suite: Trend and Moving Average Filters
- InpFilter2 (Default: "=== 2. ADX FILTER ==="): Text header label for Module 2 (Average Directional Index trend strength filter).
- Use_ADX_Filter (Default: false): Boolean switch enabling (true) or disabling (false) minimum trend intensity filtering via the ADX main line.
- ADX_Period (Default: 10): Lookback smoothing period for the ADX calculation, measured in bars.
- ADX_Min_Level (Default: 20.0): Minimum ADX main-line value (0 to 100 scale) required to confirm active trend strength before permitting Buy or Sell signals.
- InpFilter3 (Default: "=== 3. SINGLE MA FILTER ==="): Text header label for Module 3 (Single Moving Average price-position trend filter).
- Use_MA_Filter (Default: false): Boolean switch enabling (true) or disabling (false) directional price filtering relative to a single Moving Average (close above MA for Buy; close below MA for Sell).
- MA_Period (Default: 50): Averaging period for the single Moving Average baseline, measured in bars.
- MA_Method (Default: MODE_SMA): Smoothing algorithm (MODE_SMA, MODE_EMA, MODE_SMMA, or MODE_LWMA) applied to the single Moving Average.
- MA_Shift (Default: 0): Horizontal displacement offset applied to the single Moving Average line, measured in bars.
- InpFilter4 (Default: "=== 4. ICHIMOKU SENKOU SPAN B FILTER ==="): Text header label for Module 4 (Ichimoku Kinko Hyo Senkou Span B equilibrium filter).
- Use_Ichimoku_Filter (Default: false): Boolean switch enabling (true) or disabling (false) directional filtering against Ichimoku Senkou Span B (close above Span B for Buy; close below Span B for Sell).
- Ichimoku_Tenkan (Default: 9): Tenkan-sen (Conversion Line) calculation period, measured in bars.
- Ichimoku_Kijun (Default: 26): Kijun-sen (Base Line) calculation period, measured in bars.
- Ichimoku_SenkouB (Default: 52): Senkou Span B (Leading Span B) calculation period defining the long-term cloud equilibrium barrier, measured in bars.
- InpFilter6 (Default: "=== 6. DOUBLE MA FILTER ==="): Text header label for Module 6 (Dual Moving Average trend alignment filter).
- Use_DoubleMA_Filter (Default: false): Boolean switch enabling (true) or disabling (false) fast-versus-slow Moving Average alignment (MA_A above MA_B for Buy; MA_A below MA_B for Sell).
- MA_A_Period (Default: 30): Averaging period for the fast Moving Average (MA_A), measured in bars.
- MA_A_Method (Default: MODE_EMA): Smoothing method (MODE_SMA, MODE_EMA, MODE_SMMA, or MODE_LWMA) applied to MA_A.
- MA_A_Applied (Default: PRICE_CLOSE): Applied candle price source used for MA_A.
- MA_A_Shift (Default: 0): Horizontal shift offset applied to MA_A, measured in bars.
- MA_B_Period (Default: 140): Averaging period for the slow Moving Average (MA_B), measured in bars.
- MA_B_Method (Default: MODE_EMA): Smoothing method (MODE_SMA, MODE_EMA, MODE_SMMA, or MODE_LWMA) applied to MA_B.
- MA_B_Applied (Default: PRICE_CLOSE): Applied candle price source used for MA_B.
- MA_B_Shift (Default: 0): Horizontal shift offset applied to MA_B, measured in bars.
- InpFilter8 (Default: "=== 8. PARABOLIC SAR FILTER ==="): Text header label for Module 8 (Parabolic Stop and Reverse trailing dot filter).
- Use_SAR_Filter (Default: false): Boolean switch enabling (true) or disabling (false) Parabolic SAR trend direction validation (close above SAR dot for Buy; close below SAR dot for Sell).
- SAR_Step (Default: 0.02): Acceleration factor step increment used in Parabolic SAR progression, expressed as a decimal factor.
- SAR_Maximum (Default: 0.2): Maximum acceleration factor ceiling for Parabolic SAR progression, expressed as a decimal factor.
- InpFilter9 (Default: "=== 9. HEIKEN ASHI FILTER ==="): Text header label for Module 9 (Secondary Heiken Ashi candle body polarity filter).
- Use_HeikenAshi_Filter (Default: false): Boolean switch enabling (true) or disabling (false) an independent Heiken Ashi close-versus-open polarity check inside the filter framework.
- InpFilter15 (Default: "=== 15. SUPERTREND FILTER ==="): Text header label for Module 15 (ATR-based Supertrend volatility regime filter).
- Use_Supertrend_Filter (Default: false): Boolean switch enabling (true) or disabling (false) Supertrend directional regime confirmation (requiring bullish Supertrend state for Buy and bearish Supertrend state for Sell).
- ST_AtrPeriod (Default: 10): Wilder ATR smoothing period used to compute Supertrend volatility bands, measured in bars.
- ST_Factor (Default: 3.0): Multiplier factor applied to ATR to establish upper and lower Supertrend reversal band distances.
5.7 Confluence Suite: Support, Resistance, and Fibonacci Structure Filters
- InpFilter14 (Default: "=== 14. SR & FIBONACCI FILTERS ==="): Text header label for Module 14 (historical Support/Resistance zone and Fibonacci retracement zone filters).
- Use_SR_Filter (Default: false): Boolean switch enabling (true) or disabling (false) Support and Resistance proximity validation (requiring Buy bars to interact with recent Support and Sell bars to interact with recent Resistance).
- SR_Period (Default: 50): Historical lookback window used to detect local Support lows and Resistance highs, measured in bars.
- SR_Zone_Points (Default: 80): Proximity buffer distance above and below detected Support and Resistance levels, measured in broker points.
- Use_Fib_Filter (Default: false): Boolean switch enabling (true) or disabling (false) swing-anchored Fibonacci retracement zone validation (requiring candle price range to intersect the zone between Fib_Level_1 and Fib_Level_2).
- Fib_Level_1 (Default: 0.382): First Fibonacci retracement boundary ratio (0.382 represents the 38.2% retracement level), expressed as a decimal ratio.
- Fib_Level_2 (Default: 0.618): Second Fibonacci retracement boundary ratio (0.618 represents the 61.8% retracement level), expressed as a decimal ratio.
- ZigZag_Depth (Default: 12): Minimum lookback and lookforward bar depth required to identify swing high and swing low pivots for Fibonacci calculation, measured in bars.
- ZigZag_Deviation (Default: 5): Minimum price movement threshold required to validate a new swing pivot point, measured in broker points.
- ZigZag_Backstep (Default: 3): Minimum bar separation required between consecutive swing pivots, measured in bars.
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 chart signals, or simulated backtest observations do not guarantee future trading results. This software is an analytical and visual charting utility designed strictly to assist traders in technical market evaluation; it does not constitute financial advice and does not guarantee trading profits. Always test and evaluate the indicator thoroughly on a demo account to understand its operational behavior and parameter sensitivity before applying it to a live trading environment.
