Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: StartDate setting leads to 'Warning 047' [Re: Grant] #485504
03/18/22 09:36
03/18/22 09:36
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Ok, but is the date correct? Startdate minus lookback? Or do you still get warning 47?

The date of the first bar should be the first timestamp of the 2020 file minus the number of bars for the lookback period, with considering gaps and weekends.

Re: StartDate setting leads to 'Warning 047' [Re: Grant] #485505
03/18/22 12:07
03/18/22 12:07
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline OP
Member
Grant  Offline OP
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
The trade date 200102 is correct, since this was the first trading day of 2020.
No, I don't receive that 047 warning anymore (I forgot to mention this, sorry).
The issue is that my Zorro versions return different date outputs with the same code and the same .t6 files. You can see this on my last screenshot.

Code
function run()
	{
	History = ".t6";
	BarPeriod = 1;
	StartDate = 20200102;

	if(Bar > 0)
		{
		printf("\nDate: %s | Price: %.5f",strdate(YMDHMS,ldate(UTC,0)), priceClose());
		quit();
		}
	}		
			

Last edited by Grant; 03/18/22 12:10.
Re: StartDate setting leads to 'Warning 047' [Re: Grant] #485510
03/18/22 17:17
03/18/22 17:17
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
For 200102 you must set Lookback = 0. The default lookback is 80 bars and can go back to 2019 depending on history.

Re: StartDate setting leads to 'Warning 047' [Re: Grant] #485513
03/18/22 18:04
03/18/22 18:04
Joined: Aug 2017
Posts: 294
Netherlands
G
Grant Offline OP
Member
Grant  Offline OP
Member
G

Joined: Aug 2017
Posts: 294
Netherlands
With the same .t6 files and LookBack = 0 both outputs are more identical.

Zorro 2.44 (which was installed in a formal 2.40 directory) returns 'Date 200102 07:02:00..'
Zorro 2.46 (and probably Zorro 2.44 in a fresh directory as well) returns 'Date 200102 07:01:00..'.

I'm wondering what's causing this.

Page 2 of 2 1 2

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1