Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | HLBands

The indicator displays on the chart the Open, High and Low levels of the period specified in parameters.

You can choose between two level display modes:

  1. High/Low;
  2. Open/Close.

and two level update modes:

  1. Only at the opening of the first candlestick of the selected period (showing High, Low and Open of the first candlestick of the specified timeframe);
  2. Showing levels of the entire period of the specified timeframe.

It also allows setting the period to display levels on the chart.

The indicator has three input parameters:

  • Bands period - the period of displayed levels;
  • Bands Update - mode for updating levels:
    • at the opening of the bar - only the current bar of the selected timeframe is updated, after that levels remain unchanged on all bars of the selected period;
    • always - levels are updated when the price exceeds previous levels, i.e. minimum/maximum levels for the whole period are shown.
  • Bands Applied price - the open line of the selected period is always displayed, you can choose between two level display modes: the High/Low levels of candlesticks and the Open/Close levels of candlesticks.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The D1 period on the H4 chart, High/Low levels, update mode "always"

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2. The D1 period on the H4 chart, High/Low levels, update only at the first bar of the period

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.3. The D1 period on the H4 chart, Open/Close levels, update mode "always"

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.4. The D1 period on the H4 chart, Open/Close levels, update only at the first bar of the period

20310

Best MetaTrader Indicators + Profitable Expert Advisors