Skip to content
All library documents

A Third-Generation XMA Direction-Change Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that generates a trade signal when a bar closes and the direction of the third-generation XMA moving average changes. It notes that the corresponding compiled indicator must be available to the trading terminal for the advisor to operate. The stated test used default inputs and omitted stop-loss and take-profit settings.

The reported example concerns NZD/USD on a four-hour chart over 2011, with figures referenced for chart examples and testing results. The text does not provide numerical performance statistics or enough information to assess transaction costs, drawdowns, robustness, or out-of-sample behavior. Because the test is limited to one instrument and period and excludes explicit protective exits, it offers little basis for judging how the signal might perform under other market conditions.

Key ideas

  • The Expert Advisor trades when a completed bar coincides with a change in the third-generation XMA direction.
  • The required compiled indicator must be installed in the terminal’s indicator directory.
  • The described test used default parameters and no stop loss or take profit.
  • The example test covered NZD/USD on a four-hour chart during 2011.
  • The document gives no numerical results or evidence of robustness across markets and periods.

Tags

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