|
|
StartDate setting leads to 'Warning 047'
#485414
03/08/22 17:34
03/08/22 17:34
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
I've recently upgraded Zorro to 2.44 and I've noticed an issue with the StartDate. It works well when I set this to the beginning of the year, but I get a 047 warning once I adjust it to a later date. As a result, Zorro starts reading my .t6 data for the following year. function run() { History = ".t6"; BarPeriod = 1; //StartDate = 20200101;//OK StartDate = 20200201;//Warning 047: EUR/USD first bar on 2021-01-03...
if(Bar > 0) { //returns: 'Date: 210103 23:01:00 | Price: 1.22375' when StartDate = 20200201 printf("\nDate: %s | Price: %.5f",strdate(YMDHMS,ldate(UTC,0)), priceClose()); quit(); } }
|
|
|
Re: StartDate setting leads to 'Warning 047'
[Re: Grant]
#485429
03/09/22 14:03
03/09/22 14:03
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
I wrote my data to a CSV file for further inspection (I can't run ZHistoryEditor.exe under Wine).
For 2020 this starts at StartDate = 20200102.
As you can see there's no gap between the Jan 2 and Jan 3 2020:
200102 23:59:00,1.11715 200103 00:00:00,1.11715
However, once I change StartDate to 20200103, Zorro's screen output becomes:
Warning 047: EUR/USD first bar on 2021-01-03 Test: TestStartBar EUR/USD 2020..2022 Assets AssetsIG Date: 210103 23:01:00 | Price: 1.22375
I've added 'LookBack = 0;' to my test code, to make sure it was printing the first bar, based on the given StartDate.
Last edited by Grant; 03/09/22 15:22.
|
|
|
Re: StartDate setting leads to 'Warning 047'
[Re: Grant]
#485431
03/09/22 16:59
03/09/22 16:59
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
Update, I've downgraded to Zorro 2.40 and now it returns the correct data: '200103 00:01:00 | Price: 1.11706' when 'StartDate = 20200103' & 'LookBack = 0' Since you don't have this issue, maybe there's a problem with how Wine handles Zorro 2.44? From what I remember, that there was a date issue with Wine. Edit: found that thread -> https://bugs.winehq.org/show_bug.cgi?id=47221
Last edited by Grant; 03/09/22 17:12.
|
|
|
Re: StartDate setting leads to 'Warning 047'
[Re: Grant]
#485445
03/10/22 21:06
03/10/22 21:06
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
Under Windows 10 only Zorro 2.40 returns the correct date, but Zorro 2.44 returns the bar from 1 year later. ![[Linked Image]](https://i.postimg.cc/1t5xgdMG/Test-Start-Bar.jpg) Without using 'LookBack = 0' it does return the correct date with Zorro 2.44. Is this expected behavior?
Last edited by Grant; 03/10/22 21:16.
|
|
|
Re: StartDate setting leads to 'Warning 047'
[Re: Petra]
#485447
03/10/22 21:42
03/10/22 21:42
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
Only the 2022 history is missing, but that's not the issue because it switches from 2020 to 2021 when 'StartDate = 20200103' & 'LookBack = 0' 2020 & 2021 sets are OK, I've used those many times before without any issues with Zorro 2.40
Last edited by Grant; 03/10/22 22:01.
|
|
|
Re: StartDate setting leads to 'Warning 047'
[Re: Grant]
#485496
03/17/22 18:20
03/17/22 18:20
|
Joined: Aug 2017
Posts: 311 Netherlands
Grant
OP
Senior Member
|
OP
Senior Member
Joined: Aug 2017
Posts: 311
Netherlands
|
Sorry for my late response. I've removed the LookBack setting, but there's still a different date output. When I install Zorro 2.44 in the same directory as Zorro 2.40, it returns 'Date 200102...' when 'StartDate = 20200102', but when I install Zorro 2.46 beta under a new directory, it returns 'Date: 191231...' with the same script. I thought, let's check the .t6 files and I've noticed that the 2.40 version for 'EURUSD_2020.t6' was 11,638 kb v.s. 11,465 kb for the Zorro 2.46 version (and probably Zorro 2.44 under a fresh directory as well), so I've replaced this one in my formal 2.40 directory (where's 2.44 is installed) by the newer (and smaller!) one, but there's still an output difference after restarting Zorro 2.44. ![[Linked Image]](https://i.postimg.cc/hG114cDW/Test-Start-Bar-2.jpg)
Last edited by Grant; 03/17/22 20:32.
|
|
|
|