Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 3.11
by madpower2000. 07/16/26 13:49
What are you working on?
by NeoDumont. 07/15/26 16:38
Z9 getting Error 058
by jcl. 07/15/26 15:07
Zorro version 3.0 prerelease!
by madpower2000. 07/14/26 20:11
Accepting new programming clients
by AndrewAMD. 07/14/26 19:32
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (Quad, ukgamer, clint000, AndrewAMD, LucasJoshua), 1,396 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 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: 28,124
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,124
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: 318
Netherlands
G
Grant Offline OP
Senior Member
Grant  Offline OP
Senior Member
G

Joined: Aug 2017
Posts: 318
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: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
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: 318
Netherlands
G
Grant Offline OP
Senior Member
Grant  Offline OP
Senior Member
G

Joined: Aug 2017
Posts: 318
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 | 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