|
Re: new SET_PATCH=8
[Re: AndrewAMD]
#477762
07/26/19 19:22
07/26/19 19:22
|
Joined: Jul 2017
Posts: 783
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 783
|
Without the patch, the plugin pushes the server's time to Zorro With the patch, the plugin outputs nothing, so Zorro uses your computer's clock time.
Only at connect, to determine offset? or not only? If MT4 broker time is UTC+3 and my computer is in UTC, then how will historical bars from MT4 be timestamped with this patch? as if they were UTC? (but only if the server's time is made available). What will happen if MT4 does not "provide" server time? Is there a way to set/override time manually to the required one - so that it works reliably 100% of the time in a given broker-user_trading_server setup?
|
|
|
Re: new SET_PATCH=8
[Re: Zheka]
#477764
07/26/19 19:32
07/26/19 19:32
|
Joined: Jul 2017
Posts: 783
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 783
|
Probably, the answer to the last question is to set your computer time to the known MT4 server time and use this PATCH.
Will this work or in practice MT4 broker servers can occasionally change their times ?
Last edited by Zheka; 07/26/19 19:32.
|
|
|
Re: new SET_PATCH=8
[Re: Zheka]
#477765
07/26/19 19:35
07/26/19 19:35
|
Joined: Feb 2017
Posts: 1,718 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,718
Chicago
|
Only at connect, to determine offset? or not only? All the time. Zorro makes many, many calls to BrokerTime(). If MT4 broker time is UTC+3 and my computer is in UTC, then how will historical bars from MT4 be timestamped with this patch? as if they were UTC? Ask the plugin writer - this is implementation-defined. What will happen if MT4 does not "provide" server time? Is there a way to set/override time manually to the required one - so that it works reliably 100% of the time in a given broker-user_trading_server setup? MT4 does provide a server time. In the event that a server does not, it's as if the patch was being used.
|
|
|
Re: new SET_PATCH=8
[Re: AndrewAMD]
#477767
07/26/19 19:42
07/26/19 19:42
|
Joined: Jul 2017
Posts: 783
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 783
|
Only at connect, to determine offset? or not only? I should have asked differently: Is offset to broker time determined at login only and then applied to timestamps returned by BrokerTime?
|
|
|
Re: new SET_PATCH=8
[Re: Zheka]
#477768
07/26/19 19:48
07/26/19 19:48
|
Joined: Feb 2017
Posts: 1,718 Chicago
AndrewAMD
Serious User
|
Serious User
Joined: Feb 2017
Posts: 1,718
Chicago
|
I should have asked differently: Is offset to broker time determined at login only and then applied to timestamps returned by BrokerTime? If there is an "offset", this depends on how the plugin writer wrote it. As an example, I wrote the Ally Plugin. The time stamps were always in a known time zone - Eastern Time, with or without daylight savings. So I hard-coded it to correctly translate to UTC every time. This is a no-guesswork setup. I cannot comment on the MT4 setup.
|
|
|
Re: new SET_PATCH=8
[Re: Zheka]
#477798
07/29/19 19:59
07/29/19 19:59
|
Joined: Jul 2017
Posts: 783
Zheka
OP
User
|
OP
User
Joined: Jul 2017
Posts: 783
|
JCL,
would you be so kind to clarify the following re MT4 plugin:
- If MT4 broker time is UTC+3 and my computer is in UTC, then - on occasions when MT4 server does not provide its time - how will historical bars from MT4 be timestamped with and without this PATCH?
- what's the recommended approach to ensure that broker time(or rather offset to broker time to UTC) is identified/set correctly 100% of the time, regardless of MT4 server lack of response? Can there be a new variable introduced that would allow to hard-code broker-time -> UTC offset?
Thank you.
Last edited by Zheka; 07/29/19 19:59.
|
|
|
|