Skip to content
All library documents

Adjustable Fractals for Custom Periods and Price Inputs

Article MQL5 code base

Summary

The document describes a modified fractal indicator that lets users choose the lookback period and the price inputs used to identify highs and lows. This extends the standard built-in version, which uses a fixed period, and may help adapt the calculation to conditions such as sharp market whipsaws.

It also argues that an upper and a lower fractal can validly occur on the same bar. The indicator should therefore allow both signals rather than forcing one to be suppressed, since that restriction would impose an extra selection rule without a mathematical basis. The document offers a design rationale and possible use case, but gives no formula details, market examples, or performance evidence. Fractals are descriptive pattern markers, and the note does not specify how to turn them into entries, exits, or a tested trading strategy.

Key ideas

  • The indicator allows users to choose the period used to identify fractals.
  • Users can select the price inputs used for the high and low calculations.
  • The added flexibility may be useful in volatile or whipsaw conditions.
  • Upper and lower fractals may both occur on the same bar.
  • The document gives no backtest results or complete trading rules.

Tags

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