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 | Important Extremums

The indicator displays "important" extremum points on the price chart.

It has one input parameter:

  • Period - indicator calculation period.

Calculation:

If High[i-1] >= MaxHigh and High[i-1] > High[i] - it is the upper extremum  If Low[i-1] <= MinLow and Low[i-1]<Low[i] - it is the lower extremum  

where

MaxHigh, MinLow - the highest and the lowest prices in the range from (i-Period-1) to (i-2)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. Timeframe H1

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2. Timeframe H4

20445

Best MetaTrader Indicators + Profitable Expert Advisors