N:=9;M1:=3;M2:=3;
STICKLINE(1,200,200,6,0),COLORRED;
STICKLINE(1,100,100,6,0),COLORRED;
STICKLINE(1,0 , 0,6,0),COLORRED;
STICKLINE(1,120,120, 1,0),COLORRED;
STICKLINE(1, 20, 20, 1,0),COLORRED;
日RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
日K:SMA(日RSV+100,M1,1),COLORFFFFFF;
日D:SMA(日K,M2,1),COLORYELLOW;
日J:IFF((3*日K-2*日D)>200,200,IFF((3*日K-2*日D)<100,100,(3*日K-2*日D))),COLORMAGENTA;
周RSV:=(CLOSE-LLV(LOW,N*5))/(HHV(HIGH,N*5)-LLV(LOW,N*5))*100;
周K:SMA(周RSV,M1*5,1),COLORFFFF00;
周D:SMA(周K,M2*5,1),COLORBLUE;
周J:IFF((3*周K-2*周D)>100,100,IFF((3*周K-2*周D)<0,0,(3*周K-2*周D))),COLORGREEN;
银矿:IFF(周K<10,1,DRAWNULL),NODRAW,COLORFFFFFF;
STICKLINE(银矿,-10,-2,3,0),COLORFFFFFF;
金矿:IFF(周K<10 AND 日K<120,1,DRAWNULL),NODRAW,COLORYELLOW;
STICKLINE(金矿,-22,-12,3,0),COLORYELLOW;