Skip to content
All library documents

Fractal Breakout Expert Advisor with Trailing Stops

Article MQL5 code base

Summary

The expert advisor identifies the most recent upper and lower price fractals and opens a long position when price breaks above the upper level, or a short position when it falls below the lower level. It does not cap the number of open positions, so each later break of a fractal level can trigger another order. A trailing stop is included, with stop adjustments made at ten-point intervals.

The document mentions a test on EUR/USD using a four-hour chart and default settings for 2015, but supplies no performance figures or analysis in the text. It is therefore not possible to assess returns, drawdowns, or robustness from the description. The author presents the advisor for evaluation and cautions against live use; the approach also leaves position limits and exposure management unspecified.

Key ideas

  • The advisor enters long or short when price crosses the latest corresponding fractal level.
  • Each new fractal break may open another position because the system has no position limit.
  • A trailing stop adjusts stop loss levels in ten-point increments.
  • The document mentions a 2015 EUR/USD four-hour test but provides no results in the text.
  • The advisor is presented for evaluation rather than live trading.

Tags

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