Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/31/25 09:57
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (qin, bigsmack), 3,033 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
long time to load data #489057
12/29/25 14:06
12/29/25 14:06
Joined: Jan 2023
Posts: 21
Q
qin Online OP
Newbie
qin  Online OP
Newbie
Q

Joined: Jan 2023
Posts: 21
I am testing stock portfolio strategy in the black book, see below. I have downloaded stock data to the .t6 files. But when I ran the strategy, it took 4 minutes to load data, is this normal? I am using zorro free version.

Code
// Simple portfolio rotation /////////////
//////////////////////////////////////////

#define RISK	0.7	// no risk, no fun

var Momentums[100],Weights[100];

void run() 
{
	set(PLOTNOW|LOGFILE);
	StartDate = ifelse(Live,NOW,20120101); 
	EndDate = 20251231;
	BarPeriod = 1440;
	LookBack = 100;
	SaveMode = 0;
	
	assetList("AssetsSP50");
	Capital = slider(1,10000,0,20000,"Capital","");
	
	for(listed_assets) { 
		asset(Asset);
		vars Prices = series(priceClose());
		Momentums[Itor] = ROC(Prices,LookBack-1);
	}


}

Last edited by qin; 2 hours ago.
Re: long time to load data [Re: qin] #489058
1 hour ago
1 hour ago
Joined: Jan 2023
Posts: 21
Q
qin Online OP
Newbie
qin  Online OP
Newbie
Q

Joined: Jan 2023
Posts: 21
got it. The asset list must be loaded in the first run (INITRUN) of the script

Last edited by qin; 1 hour ago.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1