Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 459 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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