Clock Indicator For MT5
Table Of Contents:
- Clock Indicator For MT5
- Installera Clock Indicator For MT5
- Parametrar för Clock Indicator For MT5
- Buffertar från Clock Indicator For MT5
- Huvuddelar i koden
Clock Indicator For MT5 visar dig 3 relevanta tider. Du kommer att se den lokala tiden baserat på inställningarna på din dator. Du kommer att se den faktiska GMT-tiden och du kommer att se tiden för MT5-mäklaren.
Installera Clock Indicator For MT5
När du har laddat ner indikatorn via formuläret ovan måste du packa upp zip-filen. Sedan måste du kopiera filen clock.mq5 till mappen MQL5Indicators för din MT5 installation. Efter det kan du starta om MT5 så kan du se indikatorn i listan över indikatorer.
Parametrar för Clock Indicator For MT5
Clock Indicator For MT5 har parametrar för 9 att konfigurera.
input color Color1=clrBlue;//color of local time input color Color2=clrMagenta;//color of server time input color Color3=clrTeal;//color of GMT time input int FontSize=11; //font size input type_font FontType=Font14; //font type input ENUM_BASE_CORNER WhatCorner=CORNER_LEFT_LOWER; //location corner input uint Y_=20; //vertical location input uint X_=5; //horizontal location input string LableSirname="Clock 1";
Buffertar från Clock Indicator For MT5
Clock Indicator For MT5 tillhandahåller 0 buffertar.
Huvuddelar i koden
int OnCalculate( const int rates_total, // amount of history in bars at the current tick const int prev_calculated,// amount of history in bars at the previous tick const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[] ) { //---- string sTime1,sTime2,sTime3; sTime1=TimeToString(TimeLocal(),TIME_SECONDS); sTime2=TimeToString(TimeCurrent(),TIME_SECONDS); sTime3=TimeToString(TimeGMT(),TIME_SECONDS); //---- SetTLabel(0,Lable1,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X1,shift_1,"Local Time: ",Color1,sFontType,FontSize); SetTLabel(0,Lable1_,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X2,shift_1,sTime1,Color1,sFontType,FontSize); SetTLabel(0,Lable2,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X1,shift_2,"Brokers Time: ",Color2,sFontType,FontSize); SetTLabel(0,Lable2_,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X2,shift_2,sTime2,Color2,sFontType,FontSize); SetTLabel(0,Lable3,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X1,shift_3,"GMT: ",Color3,sFontType,FontSize); SetTLabel(0,Lable3_,0,WhatCorner,ENUM_ANCHOR_POINT(2*WhatCorner),X2,shift_3,sTime3,Color3,sFontType,FontSize); //---- ChartRedraw(0); //---- return(rates_total); } //+------------------------------------------------------------------+