Skip to content
All library documents

Highest Lowest Swing Points and Their Repainting Behavior

Article MQL5 code base

Summary

The Highest Lowest indicator marks local extremes: a bar is identified when its high exceeds highs on both sides, or when its low is below lows on both sides. It displays these signals with arrows. The description focuses on how the indicator evaluates price bars rather than on a complete trading strategy.

Because confirmation uses bars to the right of the candidate bar, a recent signal can change as new data arrives. The document distinguishes a bar that may be redrawn from one that will remain stable, and includes a diagnostic snippet for displaying bar indices, timestamps, and the calculation state in MetaTrader. This is useful when interpreting historical markers or debugging indicator behavior, but it gives no trading rules, performance evidence, or detailed criteria for when a marked point becomes final.

Key ideas

  • The indicator marks highs and lows that exceed the corresponding values on bars to either side.
  • Signals that depend on a bar to the right can change as additional data arrives.
  • Some marked bars are described as stable while others may be redrawn.
  • The included diagnostic displays bar indices, timestamps, and calculation state.

Tags

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