Skip to content
All library documents

ColorPEMA Color-Change Entries with a Fixed Holding-Time Exit

Article MQL5 code base

Summary

This expert-advisor strategy enters a position when the ColorPEMA_Digit indicator changes color at a bar close. It includes an optional time-based exit: when a trade has been open longer than a preset number of minutes, the position is closed immediately. The document gives an example holding-time setting and states that the compiled indicator must be available in the platform’s indicator folder for the advisor to work.

The reported test uses the advisor’s default inputs on EURUSD at the four-hour timeframe over 2017. Stop loss and take profit were not used in those tests. The text refers to example trade and testing-result charts but provides no numerical performance measures or detailed evaluation of costs, risk, or robustness. It therefore describes the entry and exit rules and a historical test setup, but the supplied evidence is insufficient to judge whether the strategy was profitable or likely to generalize.

Key ideas

  • The strategy opens a position when the ColorPEMA_Digit indicator changes color at a bar close.
  • A configurable time limit can close an open position once its holding duration exceeds the preset threshold.
  • The advisor requires the compiled ColorPEMA_Digit indicator to be installed in the platform’s indicator directory.
  • The document describes a EURUSD four-hour test over 2017 with default inputs and no stop loss or take profit.
  • It provides no numerical performance results or robustness analysis in the supplied text.

Tags

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