B:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416;
B1:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.1416;
B2:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*180/3.1416;
AA:=IF(B>45 AND B1>55 AND B2>30 ,1,0);
B3:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
B4:=(AMOUNT/C)/(HHV(AMOUNT,34)/HHV(C,34));
B5:=IF(B4>1,1,B4)*100;
B6:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
B7:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,4)*30;
B8:=B5>=90 AND B3>80 AND MA(B6,12)<90;
B9:=BARSLAST(CROSS(B7,MA(B6,12)))<40;
B10:=C/REF(C,1)>1+0.01*2;
AA1:=B8 AND B9 AND (C>O OR C/REF(C,1)>1.05) AND B10;
BB1:=C/REF(C,1)>1+0.01*9;
BB2:=EXIST(C/REF(C,1)>1+0.01*9,10);
BB3:=C/REF(C,1)>1+0.01*9;
AA2:=IF(BB1+BB2+BB3=3,1,0);
BB4:=EMA(C,50)>EMA(C,240);
BB5:=BARSLAST(CROSS(EMA(C,240),EMA(C,50)));
BB6:=IF(BB4>0,BB5,50);
BB7:=C/LLV(C,BB6)*100-100;
AA3:=HHV(BB7,283);
AA4:=(AA>0 OR AA1>0 OR AA2>0) AND COUNT(AA>0,2)>=1 AND COUNT(AA1>0,3)>=1 AND COUNT(AA2>0,5)>=1 ;
选股:IF(AA4>0 AND COUNT(AA4>0,10)=1 AND AA3<100 >=1 AND (H-C)/C*100<1 AND REF(C<O,1) ,5,0);