Skip to content
All library documents

Trading Moving Average Direction Changes with a Zero-Lag Indicator

Article MQL5 code base

Summary

This expert advisor generates a signal when a bar closes and the ColorZerolagX10MA indicator changes direction. It is a simple trend-direction rule: the moving average’s turn supplies the entry signal, while the document does not describe additional filters or exit logic. Running the advisor requires the compiled indicator, and the notes mention a library that supports brokers with nonzero spreads and lets traders set stop loss and take profit when opening a position.

The document refers to chart examples and a test on USDJPY H4 for 2014, using default inputs and no stop loss or take profit. It provides no numerical performance statistics or details of the test setup, so the reference alone does not establish profitability or robustness. The method’s behavior depends on the indicator and bar-close signals; transaction costs and risk controls would need separate evaluation.

Key ideas

  • The advisor signals when the moving average changes direction at bar close.
  • The trading rule depends on the ColorZerolagX10MA indicator.
  • The cited USDJPY H4 test used default inputs and omitted stop loss and take profit.
  • The document gives no performance figures or broader validation details.

Tags

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