RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;RSV1:=(C-MA(C,4))/MA(C,4)*100;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100,100,VAR8);K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);STICKLINE(走势-AA6<-65,0,7,15,1);DRAWTEXT(COUNT(走势-AA6<-65,2)=1,7,'B');DRAWICON(FILTER(J>=REF(J,1)AND 走势>=REF(走势,1)AND 走势<20 ,1),走势,1);STICKLINE(走势-AA6>90,98,90,15,1),COLORFFFF00;DRAWTEXT(COUNT(走势-AA6>85,2)=1,90,'S');DRAWICON(FILTER(J<=REF(J,1)AND 走势<=REF(走势,1)AND J>90 ,3),J,2);STICKLINE(VAR9>-120,50,50+(VAR9/2),8,1),COLORRED;DRAWTEXT(COUNT(VAR9>-120,2)=1,50+(VAR9/2),'筹');CDMA:=EMA(EMA(RSV1,7),7)*8;STICKLINE(CDMA>=0 AND CDMA>=REF(CDMA,1),50,50+CDMA,2.5,0),COLORDD55CC;STICKLINE(CDMA>=0 AND CDMA<=REF(CDMA,1),50,50+CDMA,2.5,1),COLORDD55CC;{}20,DOTLINE,COLORWHITE;50,DOTLINE,COLORWHITE;80,DOTLINE,COLORWHITE;VARA:=LLV(L,35);VARB:=HHV(H,30);VARCX1:=IF(VARB-VARA<>0,((C-VARA)/(VARB-VARA)*4),DRAWNULL);VARC:=EMA(VARCX1,4)*25;QS:VARC,COLORWHITE;{白线}
VARF:=(2*C+H+L)/4;VARG:=LLV(L,30);VARAA:=HHV(H,30);BX1:=IF(VARAA-VARG<>0,(VARF-VARG)/(VARAA-VARG)*100,DRAWNULL);B:=EMA(BX1,8);B1:=EMA(B,5);{红色和蓝色的基础数据}STICKLINE(B>B1,B,B1,3,0),COLORRED;{红色方块}STICKLINE(B<B1,B,B1,3,0),COLORBLUE;{蓝色方块}V1:=(2*C+H+L)/4;V2:=LLV(V1,21);VA:=HHV(H,34);FBX1:=IF(VA-V2<>0,(V1-V2)/(VA-V2)*100,DRAWNULL);FB:=EMA(FBX1,13);ZLXX1:=0.382*REF(FB,2)+0.618*FB;ZLX:EMA(ZLXX1,12),COLORYELLOW;{黄线};