Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

votes: 12
2012.10.10 10:36
2016.11.22 07:32
i-anyrange2.mq5 (12.46 KB)view

The indicator of two unspecified time intervals.

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 



Translated from Russian by MetaQuotes Software Corp.
Original code:

TimeSeries - Function Library for Working with Time Series TimeSeries - Function Library for Working with Time Series

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

InfoMarket InfoMarket

This is an informative script displaying data on the current trading pair in the chart window.

Exp_ATR_Trailing Exp_ATR_Trailing

The Expert Advisor moves Stop Loss of the open position along the border of the channel built using ATR_Trailing.

PositionInfo PositionInfo

The simple indicator for displaying some relevant information about a position right in the chart window.