Skip to content
All library documents

MACD Histogram and Cloud Signals for Expert Advisor Entries

Article MQL5 code base

Summary

This Expert Advisor takes trades from signals generated by the MACD-2 indicator. A signal is evaluated when a bar closes. Depending on the selected trend mode, entry can follow a histogram crossing of the zero line, a change in histogram direction, or a change in the indicator cloud’s color. The EA depends on a separately compiled indicator file, and the description also mentions a library intended to support brokers with nonzero spreads and simultaneous stop-loss and take-profit placement.

The document reports a test on USDJPY using six-hour bars for 2014 and says that the displayed tests used the default EA settings without stop-loss or take-profit levels. It supplies no numerical performance statistics or enough test details to assess robustness, costs, or out-of-sample behavior. The reported chart therefore illustrates one historical test rather than establishing that the signal works across markets or periods.

Key ideas

  • The EA generates entries from the MACD-2 indicator when a bar closes.
  • Trend mode determines whether entries respond to a zero-line break, a histogram direction change, or a cloud color change.
  • The EA requires the compiled MACD-2 indicator and references a trading library for broker compatibility.
  • The described historical test used USDJPY six-hour bars in 2014 with default settings and no stop-loss or take-profit.
  • The document gives no numerical metrics or evidence of robustness beyond the illustrated test.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.