Re: MT4 Indicator requests and ideas

5156
mrtools wrote: Thu Jan 10, 2019 5:49 am

In the OnInit() you can add

Code: Select all

EventSetMillisecondTimer(500);
then in OnTimer() can add something like this

Code: Select all

Comment("Server Time: "+TimeToStr(TimeCurrent(),TIME_DATE  |  TIME_SECONDS));
seems to be ok
No, this is not ok.

I'd like to replace the original timer with a clock, not adding another almost invisible line on the chart, moreover, this place where the comment belongs is already occupied by another indicator.

Re: MT4 Indicator requests and ideas

5160
Botan626 wrote: Thu Jan 10, 2019 3:38 am Hello!

Could anybody modify the attached indicator made by mladen so it will show current server time, in a non-lag way, please?

I can replace "time + alertstate" with "TimeToStr(TimeCurrent(),TIME_SECONDS)" in the line #218, but it becomes lagging.
Maybe this is what you are looking for. It shows date, local time and server time.
These users thanked the author RplusT for the post:
modanetfx


Who is online

Users browsing this forum: Abdi, bbookgenius, beppi, Jimmy, kvak, Majestic-12 [Bot], muhammadFarooq2k20, REDntense, whiteadrian23 and 91 guests