Skip to content
All library documents

Finding the Highest High on a Selected Higher Timeframe

Article MQL5 code base

Summary

This indicator identifies the maximum price over a specified search period using data from a selected timeframe. The example settings use a four-hour chart period, a five-bar search period, and a starting-bar offset of zero. Other parameters control the plotted level’s name, comment, color, line style, width, and whether the level is deleted.

The description explains a way to calculate and display a higher-timeframe high as a horizontal trigger level. It does not specify how a trader should enter or exit around that level, nor does it provide market examples, backtests, or evidence that the level has predictive value. The settings indicate how the search window and display can be configured, but leave details such as behavior when data is missing or how the value updates as new bars arrive unstated. The indicator is therefore a reference-level tool rather than a documented complete strategy; any use as a breakout signal would require separate rules and testing.

Key ideas

  • The indicator finds the highest price within a configurable lookback period on a selected timeframe.
  • Its example uses four-hour data and searches five bars from the current starting offset.
  • The resulting level can be styled and labeled through input parameters.
  • A setting controls whether the plotted level is deleted.
  • No entry rules, backtest, or evidence of predictive performance are supplied.

Tags

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