Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 1,098 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: MT4/5 - wrong M1 time [Re: Grat] #480351
06/02/20 06:46
06/02/20 06:46
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic

I make test (EUR/USD) with this code:
Code
	function run()
	{
		NumCores = -1;
		StartDate 	= 20200401;
		BarPeriod = 15;	// 15 min
		LookBack = 1;
		NumYears = 1;
		MaxLong = MaxShort = 15;
		//AssetMarket = 2;
		//BrokerZone = UTC+2;
		set(STEPWISE);
		assetList("Assets4");
		if (is(INITRUN)){
			assetHistory(Asset,1);
		}
		ticket();	
			printf("\nOpen: %.5f High: %.5f Low: %.5f",priceOpen(),priceHigh(),priceLow());
	}



1. data comming with ZORRO ( UTC ) 2020.04.06 07:00
Quote


[761: Wed 20-04-01 00:15] (1.10247)
Error 011: MACD EUR/USD invalid parameters (failed) at bar 761
Open: 1.10268 High: 1.10321 Low: 1.10230
[762: Wed 20-04-01 00:30] (1.10323)
Open: 1.10247 High: 1.10340 Low: 1.10243
[763: Wed 20-04-01 00:45] (1.10301)
Open: 1.10323 High: 1.10340 Low: 1.10257
[764: Wed 20-04-01 01:00] (1.10324)
Open: 1.10301 High: 1.10370 Low: 1.10288
[765: Wed 20-04-01 01:15] (1.10273)
Open: 1.10324 High: 1.10340 Low: 1.10257




2. now - delete file EURUSD_2020.t6 and run this code again:

Quote


[762: Wed 20-04-01 00:30] (1.10314)
Open: 1.10239 High: 1.10331 Low: 1.10236
[763: Wed 20-04-01 00:45] (1.10291)
Open: 1.10314 High: 1.10331 Low: 1.10249
[764: Wed 20-04-01 01:00] (1.10315)
Open: 1.10291 High: 1.10362 Low: 1.10283
[765: Wed 20-04-01 01:15] (1.10262)
Open: 1.10315 High: 1.10329 Low: 1.10252



the same datetime, but different price.

other date:

Data from ZORRO ( UTC)
[55: Tue 20-02-11 14:00] (1.09041)
Open: 1.08998 High: 1.09046 Low: 1.08955
[56: Tue 20-02-11 14:15] (1.09096)
Open: 1.09041 High: 1.09124 Low: 1.09022
[57: Tue 20-02-11 14:30] (1.09142)
Open: 1.09096 High: 1.09179 Low: 1.09095
[58: Tue 20-02-11 14:45] (1.09174)
Open: 1.09142 High: 1.09188 Low: 1.09128
[59: Tue 20-02-11 15:00] (1.09208)
Open: 1.09174 High: 1.09235 Low: 1.09158
[60: Tue 20-02-11 15:15] (1.09224)
Open: 1.09208 High: 1.09254 Low: 1.09192

Data from MT4 +2UTC
[50: Tue 20-02-11 12:45] (1.08992)
Open: 1.08978 High: 1.09039 Low: 1.08912
[51: Tue 20-02-11 13:00] (1.09035)
Open: 1.08992 High: 1.09041 Low: 1.08950
[52: Tue 20-02-11 13:15] (1.09089)
Open: 1.09037 High: 1.09118 Low: 1.09016
[53: Tue 20-02-11 13:30] (1.09136)
Open: 1.09090 High: 1.09174 Low: 1.09090
[54: Tue 20-02-11 13:45] (1.09169)
Open: 1.09135 High: 1.09181 Low: 1.09124
[55: Tue 20-02-11 14:00] (1.09202)
Open: 1.09168 High: 1.09229 Low: 1.09152



OLD DATA
ZORRO/UTC. 0:00 x x x 1:00 x x x 2:00 x x x 3:00
MT4+3 22:00x x x23:00x x x 0:00 x x x 1:00

NEW DATA ( from MT4)
ZORRO/UTC. 0:00 x x x 1:00 x x x 2:00 x x x 3:00
MT4+3 0:00 x x x 1:00 x x x 2:00 x x x 3:00


setting:
BrokerZone = UTC+2; is OK

but if need
BrokerZone = UTC-2; - not work, still is only UTC



Attached Files Snímek obrazovky 2020-06-02 v 13.09.58.pngSnímek obrazovky 2020-06-02 v 13.11.37.png
Last edited by Grat; 06/02/20 08:31.
Re: MT4/5 - wrong M1 time [Re: Grat] #480354
06/02/20 09:55
06/02/20 09:55
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Check the log. You should see a message "MT4/5 time zone shift xxx hours". Of course only when you don't set BrokerZone or edit the Zorro EA. Do you get that message?

Re: MT4/5 - wrong M1 time [Re: Grat] #480355
06/02/20 10:22
06/02/20 10:22
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
<b>before delete data :</b>
I trying -
BrokerZone = UTC+2;
BrokerZone = UTC-2;
//BrokerZone = UTC+2;

no change

testData compiling...............
Login 0 MT4/5..
!ZorroMT4.dll V4.23.
!Gleneagle Securities Pty Limited trading as Global Prime FX connected at UTC 06-02 10:14
Open: 0.00000 High: 0.00000 Low: 0.00000
Logout.. ok
Test: testData EUR/USD 2020
Assets Assets4
Open: 1.09399 High: 1.09411 Low: 1.09354

[277: Sun 20-04-12 00:00] (1.09290)
Open: 1.09367 High: 1.09402 Low: 1.09290

<b>first log after delete data:</b>
Open: 1.09399 High: 1.09411 Low: 1.09354

[277: Sun 20-04-12 00:00] 1.09367/1.09402\1.09290/1.09290 -0.00006
Open: 1.09367 High: 1.09402 Low: 1.09290

testData compiling...............
Login 0 MT4/5..
!ZorroMT4.dll V4.23.
!Gleneagle Securities Pty Limited trading as Global Prime FX connected at UTC 06-02 10:20
!EUR/USD 01-01 02:00:00 to 06-02 12:20:02
!=> 06-02 03:28:00 to 08:27:00, 300 ticks
Load EUR/USD 2020..

Re: MT4/5 - wrong M1 time [Re: Grat] #480356
06/02/20 10:23
06/02/20 10:23
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
data download from MT4 with - BrokerZone = UTC+2;

Load EUR/USD 2020..
Copied to Clipboard! 155762 min
Open: 0.00000 High: 0.00000 Low: 0.00000
EUR/USD 155762 ticks read
3648 Bars 2020-04-07..2020-06-02 generated
Logout.. ok
Test: testData EUR/USD 2020
Assets Assets4
Open: 1.09354 High: 1.09355 Low: 1.09290

[274: Sun 20-04-12 23:15] 1.09446/1.09476\1.09276/1.09367 -0.00006
Open: 1.09446 High: 1.09476 Low: 1.09276

Last edited by Grat; 06/02/20 10:28.
Re: MT4/5 - wrong M1 time [Re: Grat] #480357
06/02/20 10:25
06/02/20 10:25
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
data downloaded from MT4 without

!=> 06-02 05:25:00 to 10:24:00, 300 ticks
Load EUR/USD 2020.. 155879 min
Open: 0.00000 High: 0.00000 Low: 0.00000
EUR/USD 155879 ticks read
3696 Bars 2020-04-07..2020-06-02 generated
Logout.. ok
Test: testData EUR/USD 2020
Assets Assets4
Open: 1.09349 High: 1.09389 Low: 1.09341

[277: Sun 20-04-12 00:00] 1.09345/1.09402\1.09290/1.09290 -0.00006
Open: 1.09345 High: 1.09402 Low: 1.09290

Last edited by Grat; 06/02/20 10:28.
Re: MT4/5 - wrong M1 time [Re: Grat] #480358
06/02/20 10:37
06/02/20 10:37
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
Verbose = 7+DIAG;

Open: 1.11277 High: 1.11286 Low: 1.11272

[196: Wed 20-01-15 00:15] 1.11282/1.11303\1.11277/1.11303 -0.00006
Open: 1.11282 High: 1.11303 Low: 1.11277

testData compiling...............
Login 0 MT4/5..
!ZorroMT4.dll V4.23.
!Gleneagle Securities Pty Limited trading as Global Prime FX connected at UTC 06-02 10:35
!EUR/USD 01-01 00:00:00 to 06-02 10:35:59
!=> 06-02 05:37:00 to 10:36:00, 300 ticks
Load EUR/USD 2020..

Load EUR/USD 2020..
Copied to Clipboard! 155891 min
Open: 0.00000 High: 0.00000 Low: 0.00000
EUR/USD 155891 ticks read
388 Bars 2020-01-12..2020-01-17 generated
Logout.. ok
Test: testData EUR/USD 2020
Assets Assets4
Open: 1.11298 High: 1.11307 Low: 1.11290

[196: Wed 20-01-15 00:15] 1.11296/1.11315\1.11291/1.11310 -0.00006
Open: 1.11296 High: 1.11315 Low: 1.11291

Re: MT4/5 - wrong M1 time [Re: Grat] #480359
06/02/20 10:43
06/02/20 10:43
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
No shift time. This is a normal, because Zorro don't know MT4 Timezone. During the market time is easy get the shift. But in the SA/SU not work. And in Zorro.mq4 is this code:

int time = (int)iTime(Asset,timeframe,shift);
arr[4] = time + 60*timeframe; // assume tick start time

In this case must be say in Zorro for each brokerPlugin correct timezone and during store in .t6 transform into UTC timezone. I don't have the source this plugin.

I make my workaround - change M1 candle timezone to UTC. But must be change every DST 2/3

Re: MT4/5 - wrong M1 time [Re: Grat] #480360
06/02/20 10:46
06/02/20 10:46
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Thank you. I still cannot see the reason of the problem from here, but please contact Support. They will sort that out. And do not set BrokerZone or modify the EA. Otherwise you'll likely get wrong timestamps.

Re: MT4/5 - wrong M1 time [Re: Grat] #480361
06/02/20 12:10
06/02/20 12:10
Joined: May 2015
Posts: 390
Czech Republic
G
Grat Offline OP
Senior Member
Grat  Offline OP
Senior Member
G

Joined: May 2015
Posts: 390
Czech Republic
For the other users,

[Linked Image]

Attached Files realtime.jpg
Last edited by Grat; 06/02/20 12:11.
Re: MT4/5 - wrong M1 time [Re: Grat] #480364
06/02/20 17:42
06/02/20 17:42
Joined: Mar 2019
Posts: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

Joined: Mar 2019
Posts: 357
I had weird issues, not too long ago, just asked, my broker told me GMT +3.

I may have issues caused by that?

Page 2 of 3 1 2 3

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1