超:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
跌:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
区:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(超+2*跌+3*区)/6;
AA:=MA(BIAS,3);
BB:STICKLINE(AA<-12 AND AA>=-18,2,0,6,0) , COLORRED;
CC:IF(AA<-18,3,0),COLORFF35FF,LINETHICK1;
STICKLINE(AA<-18,3,0,6,0),COLORFF35FF;
VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);
VAR2:=DMA(CLOSE,VOL/MA(VOL,31)/31);
VAR3:=(CLOSE-VAR1)/VAR1*100<-10;
VAR4:=(VAR1-VAR2)/VAR2*100<-16;
VAR5:=(CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100<-23;
VAR6:=SMA(MAX(CLOSE-REF(CLOSE,1),0),3,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),3,1)*100>16;
VAR7:=100*(HHV(HIGH,27)-CLOSE)/(HHV(HIGH,27)-LLV(LOW,27));
VAR8:=INDEXC;
VAR9:=MA(VAR8,6);
VARA:=MA(VAR8,24);
VARB:=MA(VAR8,32);
VARC:=VARB>VAR9*1.11 AND VARA>VAR9*1.095;
SSS:=(VAR3 AND VAR4 AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07 OR VAR5 AND VAR6 AND CROSS(VAR7,79) OR VARC )*100;
DD:SSS>0,COLORWHITE,LINETHICK1;
DRAWTEXT(FILTER(DD,5),1,'超跌区'),COLORMAGENTA;