Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, TedMar), 872 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Memory limit too low for tick data? [Re: jcl] #464270
02/01/17 10:02
02/01/17 10:02
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
I've found another issue and I don't know whether it's related to the previous one. Hopefully you'll be able to reproduce. But description first:

I have a .t1 file which is only 1.05 MB in size. I can view the prices in ZHistoryEditor. But when I try to export the prices in Zorro it crashes with an Error 060: RES memory limit exceeded (1034 MB). It's the Error 060 as in the previous case but this time it's not TIC memory but RES memory. Then I change StartDate to a later date and I get Error 060: BAR memory limit exceeded (3345 MB). That's when I'm trying to use 100ms or 1s BarPeriod. If I change it to 1m the script runs without an error.

So here's the code:
Code:
function run(){
	History = ".t1";
	set(TICKS);
	Asset = "AUD/CAD";
	//This date range gives BAR memory exceeded:
	//StartDate = 20130401;
	//EndDate = 20131231;
	//This date range gives RES memory exceeded:
	StartDate = 20130131;
	EndDate = 20131231;
	BarPeriod = 0.1/60.0;
	UnstablePeriod = 0;
	LookBack = 0;
}



And here's the file (don't mind it's not actually AUD/CAD prices in there laugh ) https://we.tl/aCOlqt40zM

Re: Memory limit too low for tick data? [Re: pcz] #464287
02/02/17 11:01
02/02/17 11:01
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
Maybe the last described problem could be also caused because there's one tick from different year than 2013. I didn't see it in ZHistoryEditor because it doesn't show all records in the file.

Re: Memory limit too low for tick data? [Re: pcz] #464395
02/10/17 12:32
02/10/17 12:32
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I haven't tried it, but don't think that a 32 bit program can handle one year of 0.1-second bars. Neither can probably a 64 bit program.

Re: Memory limit too low for tick data? [Re: jcl] #464401
02/10/17 15:08
02/10/17 15:08
Joined: May 2016
Posts: 180
Prague
pcz Offline OP
Member
pcz  Offline OP
Member

Joined: May 2016
Posts: 180
Prague
jcl: What I meant was that it was weird that this happened with 1 MB history file. Is it because Zorro pre-allocates memory based on StartDate and EndDate?

Re: Memory limit too low for tick data? [Re: pcz] #464449
02/14/17 17:05
02/14/17 17:05
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes. If you only have small history, set the start and end date to its start and end. Bad things happen when no history is available in parts of your test period.

Page 3 of 3 1 2 3

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1