通达信两阳夹一阴 选股源码
2017-02-01 18:32:00来源:本站整理浏览:197
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;{选股或预警};