A:=SUMBARS(V,CAPITAL*1);A1:=SUM(COST(10),A)/A;A2:=SUM(COST(20),A)/A;A3:=SUM(COST(30),A)/A;A4:=SUM(COST(40),A)/A;A5:=SUM(COST(50),A)/A;E:=LLV(L,250)=L;E1:=BARSLAST(E);OK:=(5*A1+4*A2+3*A3+2*A4+A5)/15;OK1:IF(CROSS(C,OK) AND E1>=40,1,0 );