Skip to content
All library documents

Trend-Change Signals with Loss-Based Position Sizing

Article MQL5 code base

Summary

The document describes an Expert Advisor that runs three independent systems using AbsolutelyNoLagLwma_Digit indicators. Each system generates a trade signal when a bar closes and its indicator changes color, which represents a trend change. Long and short entries can be enabled or disabled separately for each system.

Position size depends on recent outcomes in the same direction. After a configurable number of consecutive losing trades, the next position uses a smaller volume; otherwise it uses the normal volume. The document recommends configuring each system on its own by disabling the other two. It also states that the compiled indicator must be installed for the EA to work. It references tests on EURJPY at several timeframes in 2017, but provides no detailed performance figures here. The strategy description does not establish robustness: results depend on historical tests, and transaction costs, out-of-sample performance, and risk controls beyond position-volume adjustment are not discussed.

Key ideas

  • The EA combines three independent systems built around an indicator that signals trend changes through color shifts.
  • Trades are triggered at bar close when an indicator changes color.
  • Each system can adjust the next position volume after directional losses.
  • Long and short permissions can be configured independently for each system.
  • The document mentions historical EURJPY tests but provides no detailed performance statistics.

Tags

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