Skip to content
All library documents

Float Indicator for Trend Swings and Fibonacci Levels

Article MQL5 code base

Summary

The Float indicator analyzes a selected window of prior bars for a currency pair, marks trend swings in a separate chart pane, and draws Fibonacci retracement and DiNapoli levels on the main chart. It also shows how long ago the local high and low were identified. The main input controls the number of bars used: a shorter window reflects more recent data, while a longer one provides a broader historical view. Other inputs control which levels appear and how chart lines are drawn.

The key limitation is repainting: levels are recalculated as the indicator processes bars, so newly identified peaks and troughs can change as later price action develops. The document therefore advises using it to examine swing duration and chart levels, not as a source of entry signals based on fresh turning points. It describes no backtest or predictive evidence, and the indicator is presented as a chart-analysis aid rather than a validated trading system.

Key ideas

  • Float analyzes a configurable number of historical bars to display trend swings and local extremes.
  • It plots Fibonacci retracements and DiNapoli levels alongside the swing analysis.
  • Reducing the bar window makes the analysis more current but less historically comprehensive.
  • The indicator repaints, so newly detected peaks and troughs are not stable trading signals.
  • Its stated use is chart analysis of swing duration and price levels, with no performance evidence provided.

Tags

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