V0:=EMA(C,5);
V1:=EMA(C,10);
V2:=EMA(C,15);
V3:=EMA(C,30);
V4:=EMA(C,60);
V5:=EMA(C,120);
V6:=EMA(C,250);
M1:=1000*V1/V4<=1015 AND 1000*V1/V6>=975;
M2:=1000*V2/V4<=1020 AND 1000*V2/V6>=980;
M3:=1000*V3/V4<=1015 AND 1000*V3/V6>=985;
M4:=1000*V3/V4<=1015 AND 1000*V4/V6>=990;
M5:=1000*V3/V4<=1015 AND 1000*V5/V6>=995;
X3:=Abs(MA(C,5)/MA(C,60)-1)<0.01;
M6:=M1 AND M2 AND M3 AND M4 AND M5 ANDCROSS(V0,V1);
M7:=M1 AND M2 AND M3 AND M4 AND M5 AND CROSS(V0/V3,0.1);
M8:=M1 AND M2 AND M3 AND M4 AND M5 AND CROSS(V0,V5);
去ST股:=IF(NAMELIKE('S'),0,1);
去st股1:=IF(NAMELIKE('*'),0,1);
去停牌:=DYNAINFO(4)>0;
XG:M6 OR M8 OR M7 AND 去ST股 AND 去ST股1 AND 去停牌 AND X3;
九毛八公式解读
V0赋值:收盘价的5日指数移动平均 V1赋值:收盘价的10日指数移动平均 V2赋值:收盘价的15日指数移动平均 V3赋值:收盘价的30日指数移动平均 V4赋值:收盘价的60日指数移动平均 V5赋值:收盘价的120日指数移动平均 V6赋值:收盘价的250日指数移动平均 M1赋值:1000*V1/V4<=1015 AND 1000*V1/V6>=975 M2赋值:1000*V2/V4<=1020 AND 1000*V2/V6>=980 M3赋值:1000*V3/V4<=1015 AND 1000*V3/V6>=985 M4赋值:1000*V3/V4<=1015 AND 1000*V4/V6>=990 M5赋值:1000*V3/V4<=1015 AND 1000*V5/V6>=995 X3赋值:收盘价的5日简单移动平均/收盘价的60日简单移动平均-1的绝对值<0.01 M6赋值:M1 AND M2 AND M3 AND M4 AND M5 AND V0上穿V1 M7赋值:M1 AND M2 AND M3 AND M4 AND M5 AND V0/V3上穿0.1 M8赋值:M1 AND M2 AND M3 AND M4 AND M5 AND V0上穿V5 去ST股赋值:如果模糊匹配品种名称,返回0,否则返回1 去ST股1赋值:如果模糊匹配品种名称,返回0,否则返回1 去停牌赋值:开盘价>0 输出XG:M6 OR M8 OR M7 AND 去ST股 AND 去ST股1 AND 去停牌 AND X3