以下是通达信分时横盘突破预警选股公式(无源码的请下载附件导入)
XA_1:=MAX(REF(CLOSE,1),HIGH);
XA_2:=MIN(REF(CLOSE,1),LOW);
XA_3:=XA_1-XA_2;
XA_4:=XA_2+XA_3*7/8;
XA_5:=XA_2+XA_3*0.5/8;
XA_6:=CLOSE;
XA_7:=SUM(AMOUNT,0)/SUM(VOL,0)/100;
分时狙击:XA_6=DYNAINFO(6) AND XA_7>=DYNAINFO(4)*1.01 AND EXIST(LONGCROSS(XA_5,XA_6,2),10);
|