Impulse MACD Signals MT5

Impulse MACD Signals is a momentum oscillator designed to reduce the false signals that affect the classic MACD in ranging markets. Unlike the traditional MACD, the Impulse MACD outputs a value of zero when price action stays inside the moving average channel, which means the indicator naturally stays silent during consolidation phases.

This implementation is a clean, non-repainting port of the Impulse MACD concept for MetaTrader 5, built from the mathematical specification and enhanced with a complete alerts system and a professional 4-color histogram.

Key features:

- Faithful implementation of the Impulse MACD formula (SMMA channel + ZLEMA of HLC3)
- 4-color histogram for instant momentum reading (rising/falling above and below zero)
- Configurable alerts on MACD/Signal crossovers
- Configurable alerts on Zero-line crossovers
- Four alert channels: popup, sound, push notification, email
- Zero-line reference for quick visual interpretation
- Non-repainting: historical values never change once a bar closes
- Exposed buffers for integration with Expert Advisors via iCustom()
- Works on any symbol (Forex, indices, commodities, crypto, synthetic indices)
- Works on any timeframe from M1 to MN1

How to read the indicator:

The indicator consists of three components displayed in a separate window below the chart:

1. The MACD line (cyan): reflects the position of the price relative to the SMMA channel. Values above zero indicate bullish momentum, values below zero indicate bearish momentum.

2. The Signal line (orange): a smoothed version of the MACD line. Crossovers between MACD and Signal traditionally mark momentum shifts.

3. The Histogram (4-color): the difference between MACD and Signal. Colors change based on direction and position relative to zero, allowing instant recognition of strengthening and weakening momentum.

When the market enters a ranging phase, the MACD line flattens near zero and the histogram shrinks. This is by design and is the core behavior that differentiates the Impulse MACD from the classic version.

Input parameters:

Calculation:
- MA Length (default 34) - period for the SMMA high/low channel and the ZLEMA
- Signal Length (default 9) - period for the Signal line (SMA of MACD)

Alerts:
- Alert on MACD/Signal cross - trigger an alert when the lines cross
- Alert on Zero line cross - trigger an alert when MACD crosses the zero level
- Show popup alert - display an on-screen popup
- Play sound - play the configured sound file
- Send push notification - send to the MetaQuotes ID linked mobile device
- Send email - send email via the configured SMTP in MT5 options
- Sound file - sound file to play (default alert2.wav)

Exposed buffers for EA integration:

- Buffer 0: MACD line
- Buffer 1: Signal line
- Buffer 2: Histogram

Example usage from an Expert Advisor:

int handle = iCustom(_Symbol, _Period, "Impulse MACD Signals");
double macd[], signal[];
CopyBuffer(handle, 0, 0, 3, macd);
CopyBuffer(handle, 1, 0, 3, signal);

Compatibility:

- MetaTrader 5 (Windows, macOS, Linux via MT5 client)
- All standard account types
- All symbols with OHLC data
- Timeframes from M1 to MN1
- Works with any broker

Notes:

This indicator is a technical analysis tool. It does not place trades and does not generate guaranteed buy/sell signals. Use it as one component of a complete trading plan.

Alerts are evaluated on the close of each bar to avoid intrabar noise. This means alerts fire once per bar when the condition is met, not on every tick.

The indicator is published as a compiled .ex5 file. Source code is not included.

Attribution:

Based on the Impulse MACD concept originally shared by LazyBear on TradingView (2015). The implementation in this product is independent and written from the mathematical specification.

Support:

For questions, feedback, or bug reports, use the Comments section of this product page or contact through the MQL5 private messaging system
Filtro:
Sem comentários
Responder ao comentário