MACD Histogram Signal Multi Filter Arrows Alerts
- 指标
- 版本: 1.42
- 激活: 5
MACD Histogram Signal Multi Filter with Arrows and Alerts
════════════════ PRODUCT TYPE ════════════════
Product type : Technical Indicator Platform : MetaTrader 5 Category : Oscillators / Signal Indicators Display : Separate MACD window + buy/sell arrows on the price chart Markets : Forex, Gold, Indices, Crypto, Stocks, Commodities Timeframes : All (M1 to MN1) Does it trade: No. This indicator does not open, close, or manage orders.
This MetaTrader 5 indicator turns a MACD line crossover into a clear buy or sell signal. It plots a four-color histogram, the MACD Line, and the Signal Line. On a closed candle it can place an arrow on the main chart and send popup, sound, push, and email alerts.
The main value is the filter layer. You may use the raw crossover, or you may switch on one or more confirmations. Enabled filters work together. All of them must pass before an arrow is drawn. That lets you build rules such as "MACD cross + above the 50 MA + ADX strong" inside one tool instead of stacking many indicators.
This product does not promise profit. Quality depends on symbol, timeframe, filter mix, spread, and your own risk rules.
════════════════ WHAT THE INDICATOR SHOWS ════════════════
SEPARATE WINDOW
- Histogram = MACD Line minus Signal Line
- Blue line = MACD Line
- Magenta line = Signal Line
HISTOGRAM COLORS
- Lime Green : above zero and rising
- Dark Green : above zero but falling
- Red : below zero and falling
- Maroon : below zero but rising toward zero
MAIN CHART
- Buy arrow below the candle low
- Sell arrow above the candle high
- Objects use the name prefix MACD_SIG_ and are removed when the indicator is deleted
════════════════ SIGNAL LOGIC ════════════════
BUY Previous closed bar: MACD Line at or below Signal Line Current closed bar : MACD Line above Signal Line If Zero Filter is on, MACD Line must be above 0 Every enabled filter must also allow a buy
SELL Previous closed bar: MACD Line at or above Signal Line Current closed bar : MACD Line below Signal Line If Zero Filter is on, MACD Line must be below 0 Every enabled filter must also allow a sell
Only closed candles are used. The forming candle is ignored for entries. Alerts fire only on the newly closed bar and will not repeat on the same bar time. History load does not spam alerts.
════════════════ KEY FEATURES ════════════════
- Classic MACD 12, 26, 9 with editable periods and price
- Four-color histogram for momentum speed
- Buy and sell arrows on the chart
- Built-in Zero Level Filter
- 18 optional filters that can be combined
- Popup, sound, push, and email alerts
- Separate buy and sell sound files
- Adjustable arrow distance, size, and colors
- Works on any symbol and timeframe in MetaTrader 5
- Automatic cleanup of signal objects
════════════════ FILTER BENEFITS ════════════════
ZERO LEVEL Keeps buys in the positive MACD half and sells in the negative half. Cuts many mid-range crosses.
RSI CROSS Buy only when RSI crosses up through Oversold. Sell only when RSI crosses down through Overbought. Good for a turn from an extreme.
ADX Requires minimum trend strength for both sides. Weak ADX markets create more false crosses.
SINGLE MA Buys only above the moving average, sells only below it. Simple trend alignment.
ICHIMOKU SENKOU SPAN B Compares close with Senkou Span B shifted by the Kijun input. Buys need price above that line. Sells need price below it.
RSI 75 Slow RSI mid-line filter. Buys above 50, sells below 50.
DOUBLE MA Buys when the fast MA is above the slow MA, sells when it is below.
AWESOME OSCILLATOR Optional size filter, rising/falling color filter, and zero-side filter. Confirms momentum with AO.
PARABOLIC SAR Buys if close is above SAR, sells if close is below SAR.
HEIKEN ASHI Buys on a bullish HA candle, sells on a bearish HA candle. HA is calculated inside the indicator.
CCI TREND Buys if CCI is above 0, sells if CCI is below 0.
CCI OB AND OS Buys if CCI is above the overbought level, sells if CCI is below the oversold level. This is a continuation rule, not a fade.
RVI TREND Buys if RVI is above 0, sells if RVI is below 0.
RVI SIGNAL Buys if RVI main is above RVI signal, sells if it is below.
MACD HISTOGRAM FILTER A second MACD must already have a positive histogram for buys or a negative histogram for sells.
MACD LEVEL 0 FILTER The second MACD main line must be above 0 for buys and below 0 for sells.
SUPPORT AND RESISTANCE Buys need a touch or cross of recent support. Sells need a touch or cross of recent resistance.
FIBONACCI Finds recent swing high and low, builds two Fib levels, and allows a signal only if the candle trades in that zone. This is a location filter. Pair it with a direction filter.
Start with few filters. If arrows vanish, disable filters one by one to see which rule is blocking.
════════════════ QUICK START ════════════════
- Install from MQL5 Market and restart MetaTrader 5 if needed.
- Open Navigator (Ctrl+N) > Indicators > Market.
- Drop the indicator on a chart.
- First test on H1 or H4 with: UseZeroFilter = true Use_MA_Filter = true (period 50) Use_ADX_Filter = true (minimum 20) all other filters = false
- Watch closed candles only.
- Add more filters only after you understand the base signals.
Stricter trend idea: add Double MA or Ichimoku. Level idea: add SR or Fibonacci, but do not stack too many trend and zone filters together.
════════════════ ALERTS ════════════════
UsePopupAlert : terminal popup with side, symbol, timeframe, and time UseSoundAlert : plays BuySoundFile or SellSoundFile from the Sounds folder UsePushAlert : phone notification (set MetaQuotes ID in Tools > Options > Notifications) UseEmailAlert : email (set Tools > Options > Email)
If push or email fails, the terminal settings are missing. That is not an indicator fault.
════════════════ INPUT REFERENCE ════════════════
--- MACD --- FastEMA : fast EMA of the main MACD. Default 12. Lower = more crosses. SlowEMA : slow EMA. Default 26. Keep it larger than FastEMA. SignalSMA : Signal Line period. Default 9. AppliedPrice : price for MACD. Default PRICE_CLOSE.
--- SIGNAL DISPLAY --- ArrowDistance : offset from high/low in points. Default 30. Raise it on Gold if arrows cover wicks. ArrowSize : arrow width 1 to 5. Default 2. UseZeroFilter : true = buy only with MACD Line > 0 and sell only with MACD Line < 0. BuyArrowColor / SellArrowColor : arrow colors. Defaults Aqua and Red.
--- ALERT FILES --- BuySoundFile : default alert.wav SellSoundFile : default alert2.wav Files must exist in the MetaTrader Sounds folder.
--- RSI CROSS --- Use_RSI_Cross_Filter : require RSI cross of Oversold (buy) or Overbought (sell) on the same closed bar as the MACD cross. RSI_Length : default 14 RSI_Price_Source : default PRICE_CLOSE Oversold / Overbought : defaults 30 and 70 This filter is strict. If signals become rare, turn it off or move the levels.
--- ADX --- Use_ADX_Filter : ADX must be >= ADX_Min_Level for both sides. ADX_Period : default 10 ADX_Min_Level : default 20. Use 25-30 for stronger trends only.
--- SINGLE MA --- Use_MA_Filter : close above MA for buy, close below MA for sell. MA_Period : default 50 MA_Method : SMA, EMA, SMMA, LWMA. Default SMA MA_Shift : default 0
--- ICHIMOKU SENKOU SPAN B --- Use_Ichimoku_Filter : compare close with shifted Span B. Ichimoku_SenkouB : Span B period. Default 52 Ichimoku_Kijun : shift used to read Span B at the current bar. Default 26 Internal Ichimoku is created as Tenkan 9, Kijun = Ichimoku_Kijun, Senkou B = Ichimoku_SenkouB.
--- RSI 75 --- Use_RSI75_Filter : slow RSI > 50 for buy, < 50 for sell. RSI_Filter_Period : default 75
--- DOUBLE MA --- Use_DoubleMA_Filter : MA A above MA B for buy, below for sell. MA_A_Period / MA_A_Method / MA_A_Applied / MA_A_Shift : fast MA. Default 30 EMA close, shift 0 MA_B_Period / MA_B_Method / MA_B_Applied / MA_B_Shift : slow MA. Default 140 EMA close, shift 0
--- AWESOME OSCILLATOR --- Use_AO_Filter : master switch Use_AO_Volume_Filter : buy if AO >= AO_Buy_Min, sell if AO <= AO_Sell_Max AO_Buy_Min : default 4.0 AO_Sell_Max : default -4.0 These raw AO values are not the same on EURUSD, Gold, or indices. Lower them if no arrows appear. Use_AO_Color_Filter : buy if AO is rising, sell if AO is falling Use_AO_Zero_Filter : buy if AO is rising and > 0, sell if AO is falling and < 0
--- PARABOLIC SAR --- Use_SAR_Filter : close above SAR for buy, below SAR for sell SAR_Step : default 0.02 SAR_Maximum : default 0.2
--- HEIKEN ASHI --- Use_HeikenAshi_Filter : bullish HA candle for buy, bearish HA candle for sell No extra HA indicator is required.
--- CCI TREND --- Use_CCI_Filter : CCI > 0 buy, CCI < 0 sell CCI_Period : default 50 CCI_Applied : default PRICE_CLOSE
--- CCI OB AND OS --- Use_CCI_OBOS_Filter : CCI > CCI_Overbought for buy, CCI < CCI_Oversold for sell CCI_OBOS_Period : default 14 CCI_OBOS_Applied : default PRICE_CLOSE CCI_Overbought / CCI_Oversold : defaults 100 and -100
--- RVI --- Use_RVI_Filter : RVI > 0 buy, RVI < 0 sell RVI_Period : default 75 Use_RVI_Signal_Filter : RVI main above signal for buy, below for sell RVI_Signal_Period : default 20
--- SECOND MACD --- Use_MACD_Filter : second MACD histogram > 0 for buy, < 0 for sell Use_MACD_Zero_Filter : second MACD main line > 0 for buy, < 0 for sell MACD_FastEMA / MACD_SlowEMA / MACD_SignalSMA / MACD_Applied : defaults 12, 26, 9, PRICE_CLOSE You may use a slower second MACD if you want heavier confirmation.
--- SUPPORT AND RESISTANCE --- Use_SR_Filter : buy near the lowest low of the lookback, sell near the highest high SR_Period : lookback bars. Default 50 SR_Zone_Points : zone width in points. Default 80 On 5-digit FX, 80 points = 8.0 pips. Gold usually needs a wider zone. A touch or a candle that crosses the level is accepted.
--- FIBONACCI --- Use_Fib_Filter : candle must trade between the two Fib levels built from the last swing pair Fib_Level_1 / Fib_Level_2 : defaults 0.382 and 0.618 ZigZag_Depth : bars on each side for a local swing. Default 12 ZigZag_Deviation : extra distance in points for a new swing. Default 5 ZigZag_Backstep : minimum bars between swings. Default 3 This is an internal swing search, not the standard ZigZag object. If no swing pair is found, the bar is blocked.
════════════════ PRACTICAL NOTES ════════════════
- Change one input group at a time.
- ArrowDistance and SR_Zone_Points are points, not pips.
- Fibonacci confirms where price is, not the direction.
- RSI Cross must happen on the same closed bar as the MACD cross.
- Demo test every new filter mix before live use.
- Use your own stop and position size. This tool does not manage risk.
════════════════ LIMITATIONS ════════════════
Not an Expert Advisor. Historical arrows are calculated values, not a live trading record. More filters mean fewer signals. News, gaps, and thin liquidity can still produce poor locations.
════════════════ SUPPORT ════════════════
Use MQL5 messages or the product comments. Please send symbol, timeframe, and a screenshot of the Inputs tab.
Thank you for using MACD Histogram Signal Multi Filter.
