N:=6;
M:=6;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:=(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
RSV1:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
K89:=SMA(RSV1,8,1);
D89:=SMA(K89,3,1);
S2:=IF(NAMELIKE('S'),0,1);
S3:=IF(NAMELIKE('*'),0,1);
XG2:=DYNAINFO(8)>0;
XG1:=S2 AND S3 AND XG2;
XG:D89>REF(D89,1) AND XG1 AND CCI<-90 AND MA(C,5)>MA(C,120),COLORRED;
RSV:= (CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;
TJ:= IF(RSV<5,0,RSV);
AA:=IF(TJ>95,100,TJ),LINETHICK4,COLORGREEN;
轰6:AA<20 AND D89>10 AND REF(D89,1)>REF(D89,2);