Hello, I have a problem. I have written my program in 34 lines and when I test it, the following error appears in 'line 37 syntax error.
This is the code

var objective()
{
return (WinTotal-LossTotal)/max(1,DrawDownMax);
function run()
{
set(LOGFILE);
set(PARAMETERS);
setf(PlotMode,PL_BENCHMARK+PL_FINE);
set(BALANCE);
setf(TrainMode,GENETIC+TRADES);
set(TESTNOW);
set(PLOTNOW);
assetList("AssetsAntonio");
StartDate=20000101;
EndDate=20220312;
BarPeriod = 15;
LookBack = 672;
NumWFOCycles = -10;
DataSplit = 60;
NumCores = -1;
int
HoraEntrada=0630, /*BarrasParaSalir = optimize(33,0010,2310,100)*/ BarrasParaSalir=33;
for(listed_assets)
{
asset(Asset);
Spread = marketVal(0);
if( tod(0)==HoraEntrada and (TradeIsClosed or TradeIsLong) and dow(0)==5 )
{
Lots = 1;
enterShort();
}
if( TradeIsOpen and TradeIsShort and TradeBars >= BarrasParaSalir ) exitShort();
}

Has anyone else had the same thing, any help is appreciated.
[Linked Image]