A:=(C-LLV(C,10))/EMA((C-LLV(L,10)),5);
B1:=MA(C,55)>REF(MA(C,55),1) AND MA(C,20)>REF(MA(C,20),1);
B:=COUNT(B1,10)=10;
D1:=CAPITAL/1000000<10;{去除大盘股}
D2:=NOT(NAMELIKE('S') OR NAMELIKE('*S')) AND VOL>1;{去除ST和停牌}
D:=D1 AND D2;
E1:=KDJ.J<0;
E:=COUNT(E1,5)>=1 AND KDJ.J>REF(KDJ.J,1) ;
加仓:B AND REF(A,1)=0 AND A>0 AND L>MA(C,55) AND C>O AND E AND D;