W字上攻形态选股预警 源码 通达信 附图
XA_1:=1200630;
XA_2:=DATE;
XA_3:=IF(DATE<=XA_1,1,0);
XA_4:=IF(DYNAINFO(17)>0 AND DYNAINFO(4)>0,1,0);
XA_5:=IF(NAMELIKE(1),0,1);
XA_6:=IF(NAMELIKE(2),0,1);
XA_7:=IF(INBLOCK(3) OR INBLOCK(4),0,1);
XA_8:=BARSCOUNT(CLOSE)>28;
XA_9:=IF(CODELIKE(5),0,1);
XA_10:=FINANCE(33)>0;
XA_11:=XA_4 AND XA_5 AND XA_6 AND XA_7 AND XA_10 AND XA_8 AND XA_9;
XA_12:=MA(CLOSE,20);
XA_13:=XA_12+2*STD(CLOSE,20);
XA_14:=XA_12-2*STD(CLOSE,20);
XA_15:=CROSS(CLOSE,XA_13);
XA_16:=CROSS(XA_13,CLOSE);
XA_17:=REF(BARSLAST(XA_15),1);
XA_18:=REF(BARSLAST(XA_16),1);
XA_19:=REF(COUNT(CLOSE<XA_13,2)=2,1);
选股:COUNT(XA_15,20)=3 AND COUNT(XA_16,20)=2 AND XA_19 AND XA_15 AND XA_3 AND XA_11;