Assets List no read

Posted By: tradingest

Assets List no read - 09/02/18 19:41

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
Posted By: tradingest

Re: Assets List no read - 09/04/18 21:48

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?
Posted By: jcl

Re: Assets List no read - 09/05/18 06:47

For all assets in the list, use loop(Assets). Look here:

http://manual.zorro-project.com/loop.htm
Posted By: tradingest

Re: Assets List no read - 09/05/18 13:36

thanks,

I'll let you know
Posted By: tradingest

Re: Assets List no read - 09/06/18 19:23

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
© 2024 lite-C Forums