VAR1:=REF(CLOSE,1);
VAR2:=Sma(MAX(CLOSE-VAR1,0),7,1)/SMA(Abs(CLOSE-VAR1),7,1)*100;
DRAWTEXT(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5),L*0.99,'↖特准抄底'),COLORCYAN;
bias1:=(C-MA(C,6))/MA(C,6)*100;
BIAS2:=(C-MA(C,12))/MA(C,12)*100;
BIAS3:=(C-MA(C,24))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
DRAWTEXT(crOSS(BIAS,乖离) AND 乖离<-9.5,L*0.96,'↖红柱抄底'),COLORWHITE;
红柱:(CROSS(BIAS,乖离) AND 乖离<-9.5),COLORWHITE,NODRAW;
特准抄底:(FILTER(REF(VAR2,1)<20 AND VAR2>REF(VAR2,1),5)),COLORCYAN,NODRAW;