Skip to content
All library documents

A Moving-Average and Fractal Trend-Reversal Expert Advisor

Article MQL5 code base

Summary

The document describes an expert advisor that combines fast and slow moving averages with trend lines drawn from fractals to trade potential reversals. The trend line is intended to act as a filter alongside the moving-average logic, and the advisor is described as trading using the open price of the current candle. It includes configurable take-profit and stop-loss settings, trailing stops, break-even behavior, equity drawdown controls, trade limits, and position-size increases after losses.

The stated testing limitations are material: trend lines do not affect trades in test mode, and optimization tests use only moving averages. In visual tests, the lines may be drawn but are not used to create trades; the author says they work together with moving averages only in live trading. Consequently, test results cannot validate the full live strategy as described. The document provides settings and cautions to try a demo, but supplies no performance evidence; increasing position sizes after losses can also amplify exposure.

Key ideas

  • The advisor combines moving averages with fractal-based trend lines to filter reversal trades.
  • It offers monetary or percentage profit targets, stop controls, trailing stops, and break-even settings.
  • Equity-risk and maximum-trade controls are included among the configurable parameters.
  • Trend lines are not used to generate trades during optimization or test-mode evaluation.
  • The document gives no performance results, and increasing position size after losses can raise exposure.

Tags

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