M:=3;
AA:=(C+O+L+H)/4;
BB:=REF(CLOSE,AA);
获利盘:=Sma(MAX(CLOSE-BB,0),2,1)/SMA(Abs(CLOSE-BB),2,1)*100;
DZ1:=获利盘>REF(获利盘,1) AND 获利盘>89;
TYP:=(HIGH+LOW+CLOSE)/3;
cci
:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI1:=ema(EMA(EMA(CCI,2),2),2);
DZ2:=CCI1>100;
T:=CLOSE*1.0+LOW*0.0+HIGH*0.0;
SL:=(T/REF(T,1)-1)*1000;
快:=MAX(MAX(MAX(SL*1,3),3),3);
慢:=MA(MA(MA(SL/2,M),M),M);
X:=快-慢;
增速1:=X*3;
WWW:=REF(增速1,1)<0;
DZ4:=增速1>3 AND WWW;
选股
:=DZ1 AND DZ2 AND DZ4;STICKLINE(选股,50,150,2,0),COLORCYAN;
DRAWTEXT(选股,120,'*防顶获利'),COLORYELLOW;