AA0:=C/REF(C,1)>1.09 AND C=H;
A0:=REF(COUNT(AA0,30)>=3,1);{近期涨停}
AA1:=C/REF(C,1)>1.09 AND C=H;
A1:=REF(COUNT(AA1,8)>=1,1);{近期涨停}
A2:=REF(O,1)>REF(C,1) AND REF(O,1)/REF(C,1)>1.03;{阴K}
A3:=H>REF(H,1)*0.96 AND O>C
AND O/C>1.01 AND H/O>1.02;{阴线上影过半}
A4:=REF(COUNT(MA(C,10)>REF(MA(C,10),1),5)>=3,1);{上升均线}
A5:=REF(C,1)>REF(MA(C,20),1);{20日均线}
AA6:=C<O;
A6:=REF(COUNT(AA6,5)<=3,1);{阴线不多}
XG:A0 AND A1 AND A2 AND A3 AND A4 AND A5 AND A6;