ZT:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)); { 以涨停收盘 }
ZTO:=EXIST(ZT,10);
TYP:=(HIGH+LOW+CLOSE)/3;
龙线:=(TYP-MA(TYP,4))/(0.015*AVEDEV(TYP,4)),NODRAW,COLORYELLOW;
LC:=REF(CLOSE,1);
凤线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100,NODRAW,COLORMAGENTA;
裤衩:=龙线<=-120 AND 凤线<=20;
RSV:=(C-LLV(L,2))/(HHV(H,2)-LLV(L,2))*100;
K:=SMA(RSV,2,1),COLORFFFFFF;
D:=SMA(K,2,1),COLOR00FFFF;
J:=3*K-2*D,COLORFF00FF,LINETHICK2;
WR:=100-100*(HHV(HIGH,2)-CLOSE)/(HHV(HIGH,2)-LLV(LOW,2)),LINETHICK2,COLORYELLOW;
阴线背驰:=REF(WR,1)<50 AND WR>REF(WR,1) AND C<REF(C,1);
量能:=(VOL<REF(VOL,1) AND C<REF(C,1) AND REF(C,1)<REF(C,2) AND (C-REF(C,1))/REF(C,1) < (REF(C,1)-REF(C,2))/REF(C,2))*100;
PSY:=COUNT(CLOSE>REF(CLOSE,1),2)/2*100;
PSYMA:=MA(PSY,2);
XG:ZTO AND 裤衩 AND PSYMA=0 AND 阴线背驰;