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 Indicators | i-AnyRange2 | MQL5 Code

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.


The indicator of two unspecified time intervals.

Watch in-depth trading tutorials and EA reviews on the RobotFX YouTube channel. Subscribe for free tips.

This is an intraday indicator showing the trading range within a trading day. Four time points are taken from the external parameters, the high and low points between each of the pairs are specified. These extreme points are shown in horizontal lines.

The indicator is useful for testing both breakout and pullback strategies.

The following parameters can be set in the indicator:

//+----------------------------------------------+
//| Indicator input parameters                   |
//+----------------------------------------------+
input string Start1   = "03:00";   // origin of 1
input string End1     = "08:00";   // end of 1
input string Start2   = "12:00";   // origin of 2
input string End2     = "17:00";   // end of 2
input uint   nDays = 2;          // number of counting days (0-all)
input int    Shift=0; // horizontal shift of the indicator in bars 

i-AnyRange2

i-AnyRange2

Level up your trading with professional RobotFX expert advisors and indicators. Visit www.robotfx.org for proven MT4/MT5 tools.

1015

Best MetaTrader Indicators + Profitable Expert Advisors