以下是通达信B倍量伸缩源码附图(无源码的请下载附件导入)
倍数:=1.8;
倍量:=BETWEEN(VOL/REF(VOL,1),倍数,3) AND IF(CLOSE<OPEN,CLOSE>REF(CLOSE,1),1);
倍缩:=REF(VOL,1)>=VOL*倍数 AND REF(CLOSE>REF(CLOSE,1),1);
低位:=IF(相对低位=1,CLOSE<=0.6*HHV(HIGH,360),1);
XG0:=COUNT(倍量,3)=1 AND 倍缩 AND 低位;
不停牌:=DYNAINFO(9)>0;
XG:COUNT(XG0,N天内)>=M个伸缩 AND 不停牌;
620566675.jpg
|