Skip to content
All library documents

Moving Average Crossover Expert Advisor with Reverse-Cross Exits

Article MQL5 code base

Summary

This document describes a basic automated trading strategy built around the intersection of two moving averages. When the averages cross, the expert advisor opens a position in the corresponding upward or downward direction. A reverse intersection closes the current position, making the crossover the sole stated trigger for entries and exits.

The text identifies separate contributors for the strategy idea and its MQL5 implementation, but gives no moving-average periods, market or timeframe, sizing rules, stop-loss logic, or backtest results. It invites readers to test the approach, so the material is a high-level strategy description rather than evidence of profitability. Any implementation or evaluation would need to define those missing parameters and account for the potential effects of lagging signals and changing market conditions.

Key ideas

  • The strategy uses the intersection of two moving averages to generate directional entries.
  • A crossover in the opposite direction closes the open position.
  • The document provides no parameter settings, risk controls, or performance evidence.
  • Testing is necessary to assess the approach in a defined market and timeframe.

Tags

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