Skip to content
All library documents

Fractal Signals with Distance and Bar-Selection Parameters

Article MQL5 code base

Summary

This document outlines an expert advisor that trades from the Fractals indicator and evaluates signals only when a new bar appears. A newly detected upward fractal produces a sell signal and closes buy positions; a downward fractal produces a buy signal and closes sell positions. Position size is calculated as a percentage of free margin.

Two inputs are highlighted for configuration: a minimum distance in pips and the relative bar on which to check for a fractal. The text says the distance parameter is intended for optimization but does not explain how distance filters signals or define a recommended setting. It provides no backtest results, risk analysis, market specification, or evidence that reversing direction at fractal formation is profitable. The description is therefore a concise account of signal and position-flipping behavior, not a validated strategy assessment.

Key ideas

  • The advisor checks for fractal signals only at the start of a new bar.
  • An upward fractal triggers a sell signal and closes buy positions.
  • A downward fractal triggers a buy signal and closes sell positions.
  • Position sizing uses a percentage of free margin, while distance and signal-bar inputs govern configuration.

Tags

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