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

The indicator shows in the price chart the lowest top and the highest bottom over the last N periods. You can also use it to enable displaying the highest top and the lowest bottom.

It has three input parameters:

  • Reverse period - period for calculating the highest bottom and the lowest top;
  • Show Min/Max lines - switch to display levels Min/Max (Yes/No);
  • Min/Max period - periof for calculating the Min/Max of the highest bottom and the lowest top.

Calculations:

ReverseMin[i] = Low[HL]  ReverseMax[i] = High[LH]  Min[i] = Low[LL]  Max[i] = High[HH]  

where:

  • HL - the highest bottom index over the Reverse period;
  • LH - the lowest top index over the период Reverse period;
  • HH - the highest top index over the Min/Max period;
  • LL - the lowest bottom index over the Min/Max period.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1 Displaying the highest Max and the lowest Min is disabled (by default)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2 Displaying the highest Max and the lowest Min is enabled

20805

Best MetaTrader Indicators + Profitable Expert Advisors