Hello, sorry for new thread I don't understand good the platform
I have something like this
function run()
{
set(LOGFILE);
set(PARAMETERS);

StartDate=2018;
NumYears=1;

BarPeriod = 60;
LookBack = 100*5;

var TimeFactor = optimize(3,1,5,1);
var Coef = optimize(3,1,10,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 = Coef*ATR(10);

if(crossOver(MA1,MA2))
enterLong();
else if(crossUnder(MA1,MA2))
enterShort();
}
}
I have an error between assetList(...) and for(listed_assets), where it is no line of code
What can I do to resolve the problem?
May you help me changing my code, please? My knowledge in Zorro does not allow me to advance anymore

Last edited by antoniorenar; 03/18/21 20:27.