Skip to content
All library documents

Moving-Average Crossover Trading with Loss-Staying Trade Management

Article MQL5 code base

Summary

The document outlines an automated moving-average strategy: it opens trades when a fast and a slow moving average cross, then normally closes them when an opposite signal appears. It also describes an optional loss-staying mode. In that mode, a losing position is retained after a reverse crossover, while a new position is opened in the opposite direction. The stop loss on the losing trade is moved to its entry price, and a configurable maximum limits the number of trades opened during this process.

The description identifies a historical EUR/USD hourly chart example, but supplies no performance statistics or test methodology beyond naming the period and tick-based test setting. It does not explain how the moving averages are selected, how trades are sized, or how the strategy handles costs and execution. Moving-average crossovers can lag price changes, while retaining losses and adding opposing positions may increase exposure and tie up capital. The document is therefore a brief description of entry and trade-management rules rather than evidence that the approach is profitable.

Key ideas

  • The strategy opens positions when fast and slow moving averages cross.
  • An opposite crossover normally closes an existing position.
  • An optional mode keeps losing trades open and opens a new position after a reverse signal.
  • In that mode, the stop loss on a retained losing trade moves to its entry price, and trade count is capped.
  • The document gives no performance evidence or detailed parameter, sizing, or execution rules.

Tags

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