Skip to content
All library documents

Float Indicator for Trend Swings and Fibonacci-Based Levels

Article MQL5 code base

Summary

The Float indicator analyzes a selected history of price bars for a currency pair and marks trend swings in a separate window. On the main chart, it can draw Fibonacci retracement and DiNapoli levels, while also showing how long ago local highs and lows were identified. Its bar-count setting controls how much history is processed, and other inputs adjust which levels and chart objects appear.

The central limitation is repainting: as the analyzed price history changes, the indicator recalculates its levels and may revise previously marked peaks and troughs. The document therefore cautions against treating new swing detections as trading signals. It positions the tool as a way to inspect swing duration and chart levels, but supplies no quantified validation, entry rules, or evidence of profitability. The default analysis window is configurable, with shorter histories described as more current but less accurate.

Key ideas

  • The indicator marks trend swings and can display Fibonacci retracement and DiNapoli levels.
  • Its analysis window is controlled by the number of historical bars processed.
  • Detected peaks, troughs, and levels may change as later market data affects the analysis.
  • The document recommends using the tool to study swing duration and chart levels rather than as a signal generator.
  • No backtest or performance evidence is supplied.

Tags

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