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 | DHLPBO

The indicator DHLPBO (Dynamic High/Low Percentage Band Overlay). Unlike DHLBO, which displays two bands calculated based on the Highs/Lows of the range, this indicator constantly narrows the channel width by a certain percentage throughout the whole range.

It has two input parameters:

  • Period;
  • Expansion.

Calculations:

Up band = Max-(Max-Min) * (MaxIndex) * Expansion/100.0  Dn band = Min+(Max-Min) * (MinIndex) * Expansion/100.0  

where:

  • Min, Max - the lowest and the highest prices in the Period range;
  • MinIndex, MaxIndex - the minimum and maximum value indexes, shifted by a step of 1.

MetaTrader Experts, Indicators, Scripts and Libraries

21715