solo spread oggi vole provare a vedere come funziona il tuo ts su eni ma mi da un errore sull'ultimo blocco exit short

mi puoi aiutare?
Var:miavar(0),Mioregrlino,Mioveli,Miopistaciclica2,Miomov3,Miomov4;
Mioregrlino=regrlin(c,34);
Miovel1=vel(c,30,0,10);
Miopistaciclica2=pistaciclica(c,25);
Miomov3=mov(h,21,1,0,0);
Miomov4=mov(l,21,1,0,0);
installstoploss(inperc,3,"stoploss");
installtrailingprofit(inperc,5,0.1);
section_enterlong:
if(Mioregrlino<c>0 and Miopistaciclica2>0 and c<miomov3) then
enterlong(nextbar,atopen);
//if barsince(c<c>c and Miovel1<0 and Miopistaciclica2<0>c and mioregrlino<mioregrlino[1] and miovel1< miovel1[1]) then
Exitlong(nextbar,atopen);
endif;
if c<Miomov3>c and Miovel1<0 and Miopistaciclica2<0 and c<miomov3) then
entershort(nextbar,atopen);
endif;
end_section
section_exitshort:
if(mioregrlino<c>0 Miopistaciclica2>0) then
if(Mioregrlino<c>mioregrlino[1] and miovel1> miovel1[1]) then
exitshort(nextbar,atopen);
endif;
if c> Miomov3 then
exitshort(nextbar,atopen);
endif;
endif;
end_section