去ST:=IF(NAMELIKE('退市') OR NAMELIKE('*ST'),0,1 );
去退市:=IF(NAMELIKE('ST') OR NAMELIKE('退市*'),0,1 );
去KCB:=IF(CODELIKE('68'),0,1);
去CYB:=IF(CODELIKE('30'),0,1);
去BJS:=IF(CODELIKE('80'),0,1);
去次新:=BARSCOUNT(C)>30;
去除停牌:=NOT(DYNAINFO(7))=0;
TJ:=去除停牌 AND 去退市 AND 去ST AND 去KCB AND 去CYB AND 去BJS AND IF(INBLOCK('银行'),0,1) AND IF(INBLOCK('证券'),0,1);
开幅%:=(O-REF(C,1))/REF(C,1)*100;
X_1:=(OPEN/REF(CLOSE,1)-1)*100;
X_2:=DYNAINFO(15)/OPEN/100;
X_3:=X_2/CAPITAL*100;
X_4:=X_2/REF(MA(VOL,5),1)*240;
X_5:=X_1<6 AND X_1>3;
X_6:=X_4>10 AND X_4<60;
X_7:=X_4*X_3/OPEN*20;
X_8:=IF(X_7>10 AND X_7<100,X_7,0);
X_9:=IF(X_5 AND X_6 AND X_3>0.3 AND X_8>10 AND X_8<100,X_8,0);
X_10:=IF(CODELIKE(1),0,1);
X_11:=IF(CODELIKE(2),0,1);
X_12:=IF(CODELIKE(3),0,1);
X_13:=IF(NAMELIKE(4),0,1);
X_14:=IF(NAMELIKE(5),0,1);
X_15:=DYNAINFO(17)>0;
优选:X_9>10 AND X_10 AND X_13 AND X_14 AND X_15 AND X_11 AND X_12,COLORFF00FF;
九毛八公式解读
去ST赋值:如果模糊匹配品种名称ORNAMELIKE('*ST'),返回0,否则返回1 去退市赋值:如果模糊匹配品种名称ORNAMELIKE('退市*'),返回0,否则返回1 去KCB赋值:如果模糊匹配品种代码,返回0,否则返回1 去CYB赋值:如果模糊匹配品种代码,返回0,否则返回1 去BJS赋值:如果模糊匹配品种代码,返回0,否则返回1 去次新赋值:收盘价的有效数据周期数>30 去除停牌赋值:取反=0 TJ赋值:去除停牌 AND 去退市 AND 去ST AND 去KCB AND 去CYB AND 去BJS AND 如果属于某板块,返回0,否则返回1 AND 如果属于某板块,返回0,否则返回1 开幅%赋值:(开盘价-1日前的收盘价)/1日前的收盘价*100 X_1赋值:(开盘价/1日前的收盘价-1)*100 X_2赋值:开盘金额/开盘价/100 X_3赋值:X_2/当前流通股本(手)*100 X_4赋值:X_2/1日前的成交量(手)的5日简单移动平均*240 X_5赋值:X_1<6 AND X_1>3 X_6赋值:X_4>10 AND X_4<60 X_7赋值:X_4*X_3/开盘价*20 X_8赋值:如果X_7>10ANDX_7<100,返回X_7,否则返回0 X_9赋值:如果X_5ANDX_6ANDX_3>0.3ANDX_8>10ANDX_8<100,返回X_8,否则返回0 X_10赋值:如果模糊匹配品种代码,返回0,否则返回1 X_11赋值:如果模糊匹配品种代码,返回0,否则返回1 X_12赋值:如果模糊匹配品种代码,返回0,否则返回1 X_13赋值:如果模糊匹配品种名称,返回0,否则返回1 X_14赋值:如果模糊匹配品种名称,返回0,否则返回1 X_15赋值:量比>0 输出优选:X_9>10 AND X_10 AND X_13 AND X_14 AND X_15 AND X_11 AND X_12,COLORFF00FF