Forex Time Zones Indicator

Forex Time Zones Indicator:

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

//+———————————————-+
//| Indicator input parameters |
//+———————————————-+
//— common settings
input string LinesSirname=”TimeZones”; // Line name
input uint WeeklyTotal=4; // Number of weeks in the history
input uint FutureTotal=1; // The number of lines in the future
//— setting for day bars
input color Line_Color_D=clrRed; // Color of a day line
input STYLE Line_Style_D=SOLID_; // Style of a day line
input ENUM_WIDTH Line_Width_D=w_3; // Width of a day line
input bool SetBackground_D=true; // Background display of day lines
//— settings for intraday bars GMT
input Hour GMT=H02; //
input color Line_Color_D1=clrDodgerBlue; // Color of the GMT line
input STYLE Line_Style_D1=SOLID_; // GMT line style
input ENUM_WIDTH Line_Width_D1=w_2; // GMT line width
input bool SetBackground_D1=true; // Background display of the GMT line
//— settings for intraday bars MST
input Hour MST=H06; //
input color Line_Color_D2=clrLime; // Color of the MST line
input STYLE Line_Style_D2=SOLID_; // Style of the MST line
input ENUM_WIDTH Line_Width_D2=w_2; // Width of the MST line
input bool SetBackground_D2=true; // Background display of the MST line
//— settings for intraday bars EST
input Hour EST=H07; //
input color Line_Color_D3=clrDarkOrchid; // Color of the EST line
input STYLE Line_Style_D3=SOLID_; // Style of the EST line
input ENUM_WIDTH Line_Width_D3=w_2; // Width of the EST line
input bool SetBackground_D3=true; // Background display of the EST line

Test results:

Forex Time Zones Indicator

Copy and paste the file into the MQL5 Indicators folder of the Metatrader 4 trading platform.

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL5 > Indicators (paste here)

Other forex trading Expert Advisors

Leave a Comment