Z,:=(C-REF(C,1))/REF(C,1)*100;
AA:Ema(ema((C-REF(C,1)),6),6)*100/EMA(EMA(Abs((C-REF(C,1))),6),6)COLORCYAN,LINETHICK2;
DD:=LLV(AA,BArslAST(AA<REF(AA,1))+1);
ZT:=BARSLAST(crOSS(AA,DD*0.66) AND AA<0 AND DD<-20);
收益:SUM(Z,,IF(ZT=0,1,ZT)),COLORWHITE,LINETHICK0;
MR:=CROSS(AA,DD*0.66) AND AA<0 AND DD<-20;
DRAWICON(MR,AA*0.8,25);
MC:=CROSS(DD,0) AND DD=AA;
DRAWICON(MC,AA*0.9,24);
DRAWTEXT(MC,AA*1.02,'快跑')COLORBLUE;
DRAWTEXT(MR,AA,'买入')COLORWHITE;