N=22;
M=8;
M1=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
FASTK:=SMA(RSV,M1,1);
K:SMA(FASTK,M1,1),COLORF00FF0;
RSV1:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
FASTK1:=SMA(RSV1,M1,1);
KK:SMA(K,M1,1), coloryellow;
K1:=SMA(FASTK1,M1,1);
D:=SMA(K1,M1,1),colorred;
高:80,LINETHICK2,colorred;
底:20,LINETHICK2,coloryellow;
STICKLINE(K-REF(K,1)>0,K,KK,1,0),COLORFF00FF;
STICKLINE(K-REF(K,1)<0,K,KK,1,0),COLOR00FF00;
DRAWICON(D>76 AND CROSS(K,KK),KK*0.9,'ICO8');
DRAWICON(D>=56 AND D<=76 AND CROSS(K,KK),K*0.9,'ICO4');
DRAWICON(D<56 AND K>=60 AND KK>=60 AND CROSS(KK,K),KK*1.2,'ICO5');