Skip to content
All library documents

Expert Advisor Trading Color Changes in a Moving-Average Indicator

Article MQL5 code base

Summary

This document describes an Expert Advisor that generates a signal when the ColorX2MA_Digit indicator changes color at a bar close. It requires the compiled indicator to be installed for the EA to run. A supporting trade library is mentioned for broker spread handling and for setting stop-loss and take-profit levels when opening a position.

The document refers to historical deal instances and a test chart for GBP/USD on the four-hour timeframe in 2014. It says the illustrated tests used the default EA inputs and did not use stop-loss or take-profit settings, but it supplies no numeric performance measures or detailed evaluation. The description does not establish that indicator color changes predict profitable trades. Results are limited to the stated test setup, and no robustness checks, costs analysis, or risk assessment are given.

Key ideas

  • The EA triggers when the indicator line changes color at a completed bar.
  • The compiled indicator file is a runtime dependency for the EA.
  • The described test used GBP/USD on a four-hour chart during 2014 with default inputs.
  • Stop-loss and take-profit settings were not used in the referenced tests.
  • The document gives no numeric results or evidence of robustness.

Tags

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