Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (SBGuy, Quad), 768 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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