Skip to content
All library documents

ColorMETRO Signals with Direction-Specific Loss-Based Position Sizing

Article MQL5 code base

Summary

This Expert Advisor runs separate long and short systems using configurable ColorMETRO signals. Each direction has independent settings for sizing and a rule that examines recent trades in that direction. If the specified count of losses appears within the selected recent-trade window, the next position uses a reduced volume; otherwise, it uses the normal volume. The example settings reduce the lot size after three or more losses among the last five trades.

The document reports a 2017 EURUSD four-hour test using default inputs and says stop loss and take profit were not used. It offers no numerical performance measures or analysis of drawdowns, transaction costs, or out-of-sample behavior, so the test description does not establish robustness. The EA also depends on the ColorMETRO indicator being installed, and the long and short sides can be configured independently.

Key ideas

  • The EA operates separate long and short systems based on ColorMETRO signals.
  • Each direction can use its own recent-trade loss threshold and position size settings.
  • Meeting the loss threshold reduces the volume of the next trade in that direction.
  • The stated example reduces position size after three losses within the last five trades.
  • The described 2017 EURUSD four-hour test omits stop loss and take profit and provides no performance statistics.

Tags

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