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 | i-AnyRangeCld

Actual author: KimIV

An indicator of ranges of arbitrary time intervals.

This is an intraday indicator, that is, it shows the size of trading ranges within a trading day.

The operating principle is as follows. Two time points are taken from input parameters, between which the low and high values are determined. The indicator shows these extrema in the form of horizontal lines.

This indicator is convenient to use for testing breakout and rollback tactics.

The following parameters can be adjusted:

//+----------------------------------------------+  //| Indicator input parameters                   |  //+----------------------------------------------+  input string Time1 = "02:00";   // Time point 1  input string Time2 = "07:00";   // Time point 2  input uint   nDays = 2;         // The number of days to calculate (0-all days)  input int    Shift=0;           // Horizontal indicator shift in bars  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1 The i-AnyRangeCld indicator

21776