LONGWIN:=WINNER(CLOSE*1.1)*100;
LHIGH:=COSTEX(CLOSE*0.997,10000);
LLOW:=COSTEX(0,CLOSE*1.003);
LCOST:=COSTEX(0,10000);
LBIAS:=(C-LLOW*0.99)/C*POW(1-WINNER(C*1.1),20)*100;
LCHANCE:=CLOSE*0.8;
HCHANCE:=CLOSE*1.25;
WCHANCE:=COSTEX(LCHANCE,HCHANCE)*(WINNER(HCHANCE)-WINNER(LCHANCE))*2;
LALARM:=IF(WCHANCE<=CLOSE AND LCOST>CLOSE,1,0);
ENTERLONG:LBIAS>1 OR (LBIAS>0.2 AND LONGWIN<20 AND LALARM=1);