XA_3:=1;
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:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.0945 AND CLOSE=HIGH;
XA_13:=COUNT(XA_12,2)=1 AND COUNT(XA_12,1)=0;
XA_14:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>=0.01 AND HIGH>OPEN AND CLOSE<OPEN AND CLOSE>REF(CLOSE,1);
XA_15:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>=0.01 AND HIGH>OPEN AND CLOSE>OPEN AND CLOSE<ZTPRICE(REF(CLOSE,1),0.1);
XA_16:=XA_13 AND XA_14;
XA_17:=XA_13 AND XA_15;
XA_18:=XA_16 OR XA_17;
选股:XA_18 AND XA_3 AND XA_11;
九毛八公式解读
XA_3赋值:1 XA_4赋值:如果量比>0ANDDYNAINFO(4)>0,返回1,否则返回0 XA_5赋值:如果模糊匹配品种名称,返回0,否则返回1 XA_6赋值:如果模糊匹配品种名称,返回0,否则返回1 XA_7赋值:如果属于某板块ORINBLOCK(4),返回0,否则返回1 XA_8赋值:收盘价的有效数据周期数>28 XA_9赋值:如果模糊匹配品种代码,返回0,否则返回1 XA_10赋值:每股收益(全年折算)>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赋值:(收盘价-1日前的收盘价)/1日前的收盘价>=0.0945 AND 收盘价=最高价 XA_13赋值:统计2日中满足XA_12的天数=1 AND 统计1日中满足XA_12的天数=0 XA_14赋值:(开盘价-1日前的收盘价)/1日前的收盘价>=0.01 AND 最高价>开盘价 AND 收阴线ANDSE 收盘价>1日前的收盘价 XA_15赋值:(开盘价-1日前的收盘价)/1日前的收盘价>=0.01 AND 最高价>开盘价 AND 收阳线ANDSE 收盘价<计算涨停价 XA_16赋值:XA_13 AND XA_14 XA_17赋值:XA_13 AND XA_15 XA_18赋值:XA_16 OR XA_17 输出选股:XA_18 AND XA_3 AND XA_11