盘前9:25~9:30之间进行排序或选股参考,指标使用到动态行情数据DYNAINFO,信号不能进行回测。
指标含一副图排序,一选股公式,指标源码
{优选排序}
竞价量:=DYNAINFO(15)/O/100;
竞量比:=竞价量/REF(V,1)*100;
竞换手:=DYNAINFO(15)/O/FINANCE(46)*100;
C15:=C;
A15:=MAX(MA(C15,4),MA(C15,8));
绿灯行15:=C15>A15,COLORGREEN;
C30:=C;
A30:=MAX(MA(C30,8),MA(C30,15));
绿灯行30:=C30>A30,COLORGREEN;
C60:=C;
A60:=MAX(MA(C60,15),MA(C60,30));
绿灯行60:=C60>A60,COLORGREEN;
CC:=C;
A:=MAX(MA(CC,60),MA(CC,120));
绿灯行:=C>A,COLORGREEN;
{XG1:绿灯行15 AND 绿灯行30 AND 绿灯行60 AND 绿灯行 AND O>=REF(C,1);}
优选:绿灯行>=1 AND 绿灯行15>=1 AND 绿灯行30>=1 AND 绿灯行60>=1 AND O>=REF(C,1)*1.018
AND FINANCE(40)/100000000<200 AND O<35 AND O>3.5{ AND O>MA(C,120)}
AND DYNAINFO(15)>3500000 AND DYNAINFO(15)<40000000 AND NOT(INBLOCK('ST板块'))
AND 竞量比>2 AND 竞换手>0.08 AND REF(C<REF(C,1)*1.092,1){去掉昨日涨停板的}
AND O<REF(C,1)*1.09{去除一字板};
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100{,COLORRED;},COLORYELLOW;
ZZLJJ:=EMA(ZZLKP,89){,COLORRED;},COLORYELLOW;
ZJLRQD:=INTPART(ZZLKP-ZZLJJ){,COLORRED;},COLORYELLOW;
强度:ZJLRQD{,COLORRED;},COLORFF00FF,NODRAW;
市值亿:FINANCE(40)/100000000;
今开%:(O/REF(C,1)-1)*100,NODRAW;
连扳数:BARSLASTCOUNT(C>=REF(C,1)*1.095 AND C=H);
行业:DRAWTEXT_FIX(1,0.03,0,0,HYBLOCK),NODRAW;
{优选选股}
换手:=V/CAPITAL*100;
V1:=V/CAPITAL*100;
V30:=MA(V1,30);
V60:=MA(V1,60);
V250:=MA(V1,250);
需量:=MIN(V60*1.1,V250*1.1),COLOR0066FF;
牛股:=25*CROSS(换手,需量*2)*2;
V金叉:=45*CROSS(V1,V30);
JCSJ:=BARSLAST(V金叉);
优选:10*(牛股 AND JCSJ<=2 AND (C/REF(C,1)-1)*100>=3)*7;