Skip to content
All library documents

X-Bar Clear-Close Trend Reversal Using Prior Bar Extremes

Article MQL5 code base

Summary

This indicator defines a trend reversal by comparing a bar’s close with the extremes of a preceding window. An upward reversal occurs when the current close exceeds the highs of the previous x minus one bars; a downward reversal occurs when it falls below their lows. The method uses neither moving averages nor price-distance parameters, relying solely on prior bar highs and lows.

The note illustrates the approach on EURUSD daily data with a ten-bar pattern and says smaller pattern lengths make the signal more sensitive. It recommends considering values from 3 to 15, but provides no backtest, performance comparison, or rules for entering, exiting, or sizing trades. The indicator is therefore a simple breakout-style trend-change signal whose usefulness depends on parameter choice and further testing; the example alone does not establish predictive value.

Key ideas

  • The indicator signals an upward reversal when the close exceeds prior-window highs.\nIt signals a downward reversal when the close falls below prior-window lows.\nIt uses price extremes rather than moving averages or distance-based parameters.\nShorter pattern lengths make the signal more sensitive, and the suggested range is 3 to 15 bars.\nThe document provides no performance testing or complete trade management rules.

Tags

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