Skip to content
All library documents

Trading Moving Average Direction Changes at Bar Close

Article MQL5 code base

Summary

This document describes an Expert Advisor that trades changes in the direction of the ColorXdinMA moving average. A signal is formed when a bar closes and the moving average changes direction, making the closing bar the stated decision point. The advisor depends on a separately compiled indicator file, so the strategy cannot run without that dependency installed in the expected indicators location.

The document notes that its reported tests use the advisor's default inputs and omit both stop loss and take profit. It identifies GBPJPY on a six-hour chart for a 2014 test and refers to charted trade examples and results, but supplies no numerical performance figures in the text. These limited test details do not establish robustness, and the absence of protective exits in the cited test is a material caveat. No rationale for the moving-average parameters, broader market coverage, or out-of-sample evaluation is given.

Key ideas

  • The advisor signals when the ColorXdinMA direction changes at a bar close.
  • The compiled ColorXdinMA indicator is required for the advisor to run.
  • The cited test uses default inputs on GBPJPY at a six-hour interval during 2014.
  • Stop loss and take profit were not used in the described test.
  • The text refers to charted results but provides no numerical performance measures.

Tags

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