Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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