再发一个分式的抓涨停源码,可以配合10点前抓涨停公式使用,更好,选择交集的结果,成功率更高
Y1:=BARSLAST(TIME=100000);
CC:=REF(HHV(C,0),Y1+1);
VV:=REF(HHV(V,0),Y1+1);
Z,:=CC/DYNAINFO(3)<1.05;
ZT10:=CROSS(C,CC) AND V>VV AND Z,,COLORRED;
AA1:=BARSLAST(TIME=110000);
CC1:=REF(HHV(C,0),AA1+1);
VV1:=REF(HHV(V,0),AA1+1);
Z,1:=CC1/DYNAINFO(3)<1.05;
ZT11:=CROSS(C,CC1) AND V>VV1 AND Z,1,COLORRED;
XG:=ZT10 OR ZT11; STICKLINE(XG,0,0.2,3,0),COLOR0000FF;
STICKLINE(XG,0,0.2,3,0),COLOR00FF00;
STICKLINE(XG,0,3,2,0),COLOR000088;
STICKLINE(XG,0,3,1,0),COLOR0000CC;
STICKLINE(XG,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(XG,2,'狙击涨停'),,COLORYELLOW; |