Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Time Zone - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

TimeZones - indicator for MetaTrader 5

Alejandro Galindo

The indicator draws four vertical colored lines throughout the day. Line parameters can be set in the input parameters:

 //+------------------------------------------------------------------------+
//|Indicator input parameters |
//+------------------------------------------------------------------------+
//--- Common settings
Enter String Line Mr. Name = "Time Zone" ; // Line Name
Input unit weekly total = 4 ; // number of weeks in history
Input unit future total = 1 ; // number of rows in the future
//--- Daily setting
Input color line_color_D= red blood cells ; // color of daily line
Input style Line_Style_D=SOLID_; // Daily line style
Input ENUM_WIDTH Line_Width_D=w_3; // width of daily line
Enter a Boolean value to set background_D= true ; // Daily background display
//--- Set GMT for intraday bars
Enter hour GMT=H02; //
Input color line_color_D1= clr Dodge Blue ; // Color of GMT line
Input style Line_Style_D1=SOLID_; // GMT line style
Input ENUM_WIDTH Line_Width_D1=w_2; // GMT line width
Enter a Boolean value to set background_D1= true ; // Background display of GMT line
//--- Settings for intraday bar MST
Enter the hour MST=H06; //
Input color line_color_D2= Clarelem ; // Color of MST line
Input style Line_Style_D2=SOLID_; // MST line style
Input ENUM_WIDTH Line_Width_D2=w_2; //Width of MST line
Enter a Boolean value to set the background_D2= true ; // MST line background display
//--- EST intraday bar setting
Enter hour EST=H07; //
Input color line_color_D3= clr dark orchid ; // EST line color
Input style Line_Style_D3=SOLID_; // EST line style
Input ENUM_WIDTH Line_Width_D3=w_2; // EST line width
Enter a Boolean value to set the background_D3= true ; //The background display of the EST line

The indicator was originally written in MQL4 and first published in the code base of mql4.com on September 28, 2007.

TimeZones - indicator for MetaTrader 5

Figure 1. Time zone indicator


Attachment download

📎 timezones.mq5 (18.64 KB)

Source: MQL5 #2193

Verification code Refresh