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;