Skip to content
All library documents

MA Rounding Candle Signals with Loss-Responsive Position Sizing

Article MQL5 code base

Summary

This Expert Advisor pairs signals from the MA Rounding Candle indicator with position sizing that responds to recent trade outcomes. It enters when a completed bar indicates a trend change, shown by a candle color change. Buy and sell histories are evaluated separately, so losses in one direction affect sizing for trades in that same direction.

The example checks the last five trades per direction: if at least three were losses, the next trade uses 0.01 lots; otherwise it uses 0.1 lots. The document also notes that the compiled indicator files must be installed for the EA to work. It cites a GBPJPY hourly test for 2017 and says default stop inputs were used, but gives no numerical performance statistics or detailed risk analysis. The example therefore explains the sizing rule, but does not establish that it is profitable or robust across markets and periods.

Key ideas

  • The EA generates entries when a completed bar signals a trend change through the indicator’s candle colors.
  • Recent buy and sell outcomes are tracked separately when setting the next trade’s volume.
  • In the stated example, three or more losses among the last five trades trigger a smaller lot size.
  • The document references a GBPJPY hourly test for 2017 but provides no detailed performance figures.

Tags

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