Skip to content
All library documents

MACD Histogram and Signal-Line Entry Rules for an Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that derives entries from the ColorRsiMACD histogram when a bar closes. Depending on a selected mode, it can signal when the histogram crosses the zero line, changes direction, or crosses the indicator’s signal line. The strategy is therefore based on histogram transitions and crossings rather than on a single fixed entry trigger.

The advisor requires a separate compiled indicator to run. The cited test used default inputs on USDJPY at a six-hour interval over 2015, with no stop loss or take profit. The document refers to deal history and a results chart but provides no numerical performance statistics or discussion of drawdowns, costs, parameter sensitivity, or out-of-sample validation. Its evidence is consequently limited to a described historical test, and the document does not establish that the signals are profitable or robust.

Key ideas

  • Entries are evaluated when a bar closes.
  • The selected mode determines which histogram crossing or direction change generates a signal.
  • The Expert Advisor depends on a separately compiled ColorRsiMACD indicator.
  • The described historical test used USDJPY data and omitted stop loss and take profit settings.
  • The document supplies no numerical performance measures or robustness analysis.

Tags

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