通达信理想回挡指标的源码,无未来
指标说明:这个指标预警会很少,一般出现的机率不多,可通过选股扑获,此指标是形态预警,一般是强势股回档加速的时候。
MM1:=MA(C,60);
MM2:=MA(C,120);
CQXD:=EVERY(MM2<REF(MM2,1),60);
JD:=57.3*ATAN(100*(MM1/REF(MM1,1)-1));
CSFR:=LONGCROSS(C,MM1,5);
FRYL:=BARSLAST(CSFR);
ZG:=HHV(C,FRYL);
ZD:=LLV(C,FRYL);
ZGYL:=BARSLAST(ZG=C);
ZDYL:=BARSLAST(ZD=C);
MZG:=REF(MM1,ZGYL);
MZD:=REF(MM1,ZDYL);
FL:=V>1.25*REF(V,1);
SL:=V<0.75*REF(V,1);
TJ1:=CQXD&&FRYL>ZGYL&&ZGYL>ZDYL&&ZG>1.05*MZG&&ZD>0.95*MZD&&COUNT(C>MM1,FRYL)>5;
TJ2:=EXIST(FL,3)&&COUNT(SL,ZGYL)>0.6*COUNT(FL,ZGYL)&&EXIST(C<REF(ZD,1),2)&&C>REF(C,1)&&C>O&&EVERY(JD>0,3);
OPP:=TJ1&&TJ2;
DRAWTEXT(OPP,LOW*0.985,'理想回档'),COLORGREEN;
选股:
MM1:=MA(C,60);
MM2:=MA(C,120);
CQXD:=EVERY(MM2<REF(MM2,1),60);
JD:=57.3*ATAN(100*(MM1/REF(MM1,1)-1));
CSFR:=LONGCROSS(C,MM1,5);
FRYL:=BARSLAST(CSFR);
ZG:=HHV(C,FRYL);
ZD:=LLV(C,FRYL);
ZGYL:=BARSLAST(ZG=C);
ZDYL:=BARSLAST(ZD=C);
MZG:=REF(MM1,ZGYL);
MZD:=REF(MM1,ZDYL);
FL:=V>1.25*REF(V,1);
SL:=V<0.75*REF(V,1);
TJ1:=CQXD&&FRYL>ZGYL&&ZGYL>ZDYL&&ZG>1.05*MZG&&ZD>0.95*MZD&&COUNT(C>MM1,FRYL)>5;
TJ2:=EXIST(FL,3)&&COUNT(SL,ZGYL)>0.6*COUNT(FL,ZGYL)&&EXIST(C<REF(ZD,1),2)&&C>REF(C,1)&&C>O&&EVERY(JD>0,3);
OPP:TJ1&&TJ2;