Skip to content
All library documents

Fractal Breakout Expert Advisor with Optional Hedge Positions

Article MQL5 code base

Summary

This document describes an expert advisor that trades breaks of indicator-based fractal levels. In its default direction, an upward break of an upper fractal opens a buy position, while a downward break of a lower fractal opens a sell position. A reverse setting can change the signal direction, though the document does not explain that variant in detail.

The advisor can open an unlimited number of positions. A separate setting determines whether it closes positions in the opposite direction before entering, or allows buys and sells to coexist. The authors recommend using a hedge account because both directions may be held at once. The document offers no backtest, performance data, stop-loss rules, position sizing, or guidance on avoiding repeated entries around a fractal level, so it describes mechanics rather than evidence of profitability.

Key ideas

  • The strategy opens trades when price breaks an upper or lower fractal level.
  • An upward upper-fractal break triggers a buy, while a downward lower-fractal break triggers a sell.
  • A reverse option is available, but its signal rules are not explained.
  • The advisor may accumulate an unlimited number of positions.
  • An option controls whether opposite positions are closed or held alongside new trades.

Tags

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