Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Quad, VoroneTZ, 1 invisible), 852 guests, and 3 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
Assets List no read #473959
09/02/18 19:41
09/02/18 19:41
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Hi all,

why when I backtest the strategy with assetList("AssetsFix.csv"); the backtest is only for the cross in combo?
Within file Account is setted AssetFix.

I want to test all cross present within Assetfix.

Can you help me?

Thanks

Re: Assets List no read [Re: tradingest] #473975
09/04/18 21:48
09/04/18 21:48
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
the code used is:
Code:
function run()
{

set(LOGFILE);
assetList("AssetsFix");
StartDate = 2013;
EndDate = 2017;
BarPeriod = 1440;


var Trade = NumOpenLong + NumOpenShort;
vars C = series(priceClose()); 
vars O = series(priceOpen()); 

if((C > O))
	enterLong();

ProfitOpen = 100;

PlotWidth = 1000;
PlotHeight1 = 600;
	
}



Why the assetsList is not considered within backtest but is only considered the cross selected into scroll box?

Last edited by tradingest; 09/04/18 21:49.
Re: Assets List no read [Re: tradingest] #473978
09/05/18 06:47
09/05/18 06:47
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
For all assets in the list, use loop(Assets). Look here:

http://manual.zorro-project.com/loop.htm

Re: Assets List no read [Re: jcl] #473986
09/05/18 13:36
09/05/18 13:36
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
thanks,

I'll let you know

Re: Assets List no read [Re: jcl] #473995
09/06/18 19:23
09/06/18 19:23
Joined: Feb 2018
Posts: 236
Italy
tradingest Offline OP
Member
tradingest  Offline OP
Member

Joined: Feb 2018
Posts: 236
Italy
Originally Posted By: jcl
For all assets in the list, use loop(Assets). Look here:

http://manual.zorro-project.com/loop.htm


Resolved!!

Many thanks


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1