can anyone show me how to adjust the time on my charts. It's show 1 hour behind the time in my time zone which is the UK
You can't change the time of your broker. It is brokertime your MT4 is running on
But you can put a Clockindicator on your chart showing the time you like to have
This program is waiting for publishing (almost a month)
Name: |
| ||
Author: | deVries (2012.08.16 01:48) | ||
Downloaded: | 0 | ||
Download: |
| ||
For those trader who can't stand having the Market Watch or Navigator boxes up on their platform but like to have a time displayed on chart a Simple Clock Indicator The Clock indicator is placed 5 times on chart to show how you can use it on chart It is not possible to place two clocks on your chart having the same time.... Although we have in Code_Base other clock indicators, it was still that in the Online Library of the MetaEditor I did not find a simple Clock-indicator like this inside |
//+------------------------------------------------------------------+ //| Clock.mq4 | //| Copyright © 2012, Tjipke de Vries | //| | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, Tjipke de Vries" #property link "" #property indicator_chart_window extern string Clocktext = "Server"; extern int Timezone.from.Server = 0; extern int ClockSize = 14; string FontType = "Verdana"; extern color ClockColor = Blue; extern int ClockCorner = 0; extern int yLine = 20; extern int xCol = 10; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- if(ClockCorner>=4) { while (ClockCorner>=4){ClockCorner=ClockCorner-4;} } //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- ObjectDelete("Clock"+DoubleToStr(Timezone.from.Server,0)); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); //---- DisplayText("Clock"+DoubleToStr(Timezone.from.Server,0), yLine, xCol, Clocktext+" "+ TimeToStr((TimeCurrent()+ (( 0 - Timezone.from.Server) * 3600)), TIME_SECONDS),ClockSize,FontType, ClockColor); //---- return(0); } //+------------------------------------------------------------------+ void DisplayText(string eName, int eYD, int eXD, string eText, int eSize, string eFont, color eColor) { ObjectCreate(eName, OBJ_LABEL, 0, 0, 0); ObjectSet(eName, OBJPROP_CORNER, ClockCorner); ObjectSet(eName, OBJPROP_XDISTANCE, eXD); ObjectSet(eName, OBJPROP_YDISTANCE, eYD); ObjectSetText(eName, eText, eSize, eFont, eColor); } //+------------------------------------------------------------------+So a simple clock here....
Can anyone show me how to adjust the time setting in mT4.
My time is show 1 hour behid what it should show, for the uk. Thanks
This program is waiting for publishing (almost a month)
Name: |
| ||
Author: | deVries (2012.08.16 01:48) | ||
Downloaded: | 0 | ||
Download: |
| ||
|
Nice indicator. Thanks..
Even my code is waiting for publishing for 2-3 weeks..
Nice indicator. Thanks..
Even my code is waiting for publishing for 2-3 weeks..
I think it is needed we learn Russian writing ...
I think it is needed we learn Russian writing ...
Use the Russian keyboard in google translate. Thats how I translate the code comments in the russian EA's - Its a pain as I can't find a simple way to copy and paste the cyrilic fonts.
Use the Russian keyboard in google translate. Thats how I translate the code comments in the russian EA's - Its a pain as I can't find a simple way to copy and paste the cyrilic fonts.
No, no, no ...
If we find strange character in code, for example Russian based character code, then do this :
On MetaEditor : Open the code, then select "Tools" menu > select "Option" > select "Fonts" tab > on "Script" drop down select "Cyrilic" > and click "OK", and viola we'll find the correct character which we can copy and paste to online translator such Google Translator.
No, no, no ...
If we find strange character in code, for example Russian based character code, then do this :
On MetaEditor : Open the code, then select "Tools" menu > select "Option" > select "Fonts" tab > on "Script" drop down select "Cyrilic" > and click "OK", and viola we'll find the correct character which we can copy and paste to online translator such Google Translator.
Thanks! That was really a useful tip!!!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Can anyone show me how to adjust the time setting in mT4.
My time is show 1 hour behid what it should show, for the uk. Thanks