以下是通达信两阳夹一阴 源码选股预警公式 附图(无源码的请下载附件导入)
两阳夹一阴 通达信 源码、选股、预警公式 附图
嘻嘻~~~内牛满面啊,………完善就看你的了。
XNV:=IF(CURRBARSCOUNT=1 AND PERIOD=5,DYNAINFO(17)*REF(MA(V,5),1),VOL);
J1:=REF(C,2)>REF(O,2);
J21:=REF(O,1)>=REF(C,1) AND REF(C,1)<=REF(C,2); {真阴}
J22:=REF(O,1)>=REF(C,1) AND REF(C,1)>=REF(C,2); {假阴}
J23:=REF(C,1)>=REF(O,1) AND REF(C,1)<=REF(C,2); {假阳}
J2:=J21 OR J22 OR J23;
J3:=C>O;
J4:= REF(C,2)/REF(O,2)> IF(REF(O,1)>=REF(C,1),REF(O,1)/REF(C,1),
REF(C,1)/REF(O,1));
J5:=C>=MAX(REF(O,1),REF(C,1));
JJ:=J1 AND J2 AND J3 AND J4 AND J5;
L1:=REF(V,2)>=1.898*REF(V,3) OR REF(V,2)>=REF(HHV(V,33),2);
L2:=REF(V,1)<REF(V,2);
L3:=XNV>=1.898*REF(V,1) OR XNV>=HHV(V,33);
L13:=L1 OR L3;
LL:=L13 AND L2;
JJ AND LL;{选股或预警};
814155537.jpg
814211547.png
|