I don't really understand anything! You told me to use assetlist() to be able to optimize in 3 or more markets. But if you now tell me that assetlist() only accepts 2 parameters, I can only work with 1 market.

Please, I beg you, if you really know how to do it, modify the code below for me (I attach you too), because I am new in Zorro and its user manual does not solve my doubts because it lacks examples.

Now, if it is not possible to do what I ask you in Zorro, tell me and I leave this trading platform immediately, because effectiveness and efficiency are fundamental for me.

Thank you very much in advance, Andrew.

function run()
{
set(LOGFILE);
set(PARAMETERS);

BarPeriod = 60;
LookBack = 151;

var TimeFactor = optimize(3,1,5,1);

assetList("AssetsDarwinex","EUR/USD","GBP/USD"/*,"AUD/USD"*/);

for(listed_assets)
{
asset(Asset);

vars Price = series(price(0));
vars MA1 = series(SMA(Price,30));
vars MA2 = series(SMA(Price,30*TimeFactor));

Stop = 3*ATR(10);

if(crossOver(MA1,MA2))
enterLong();
else if(crossUnder(MA1,MA2))
enterShort();
}
}

Attached Files
FOR ANDREW.txt (109 downloads)