RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:3*K-2*D;
IF(J<0,J,DRAWNULL),COLORGREEN,LINETHICK4;
IF(K>90,K,DRAWNULL),COLOR0000FF,LINETHICK4;
IF(K
IF(D
IF(J
IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK2;
IF(D>REF(D,1),D,DRAWNULL),COLORRED,LINETHICK2;
IF(J>REF(J,1),J,DRAWNULL),COLORFF00FF,LINETHICK2;
(K-D)*2,COLORSTICK;
STICKLINE((K-D)*2>0,0,(K-D)*2,3,0),COLORRED;
STICKLINE((K-D)*2<0,0,(K-D)*2,3,0),COLORGREEN;
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2=0 AND (K-D)*2
STICKLINE((K-D)*2>=0 AND (K-D)*2
STICKLINE((K-D)*2>=0 AND (K-D)*2
STICKLINE((K-D)*2>=0 AND (K-D)*2
STICKLINE((K-D)*2>=0 AND (K-D)*2
{STICKLINE(1,64,67,3,1),COLORWHITE;}
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3,0),COLORRED;
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3,0),COLORFFFFFF;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3,0 ),COLORFFAA00;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.3 ,0 ),COLORFFBB11;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,2.2,0 ),COLORFFCC22;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,1.65 ,0 ),COLORFFDD33;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,1.1 ,0 ),COLORFFEE44;
STICKLINE((K-D)*2<0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,0.55 ,0 ),COLORFFFF55;
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2<0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND(K-D)*2
STICKLINE((K-D)*2>0 AND(K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.5,0) ,COLOR00005A;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.4,0) ,COLOR00006A;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.3,0) ,COLOR00007A;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.2,0) ,COLOR00008A;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,3.1,0) ,COLOR00009A;
STICKLINE((K-D)*2>0 AND(K-D)*2>REF((K-D)*2,1),(K-D)*2,0,2.8,0) ,COLOR0000AA;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,2.5,0) ,COLOR0000BA;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,2.1,0) ,COLOR0000CA;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,1.7,0) ,COLOR0000DA;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,1.2,0) ,COLOR0000EA;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,0.7,0) ,COLOR0000F5;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,0.2,0) ,COLOR0000FC;
STICKLINE((K-D)*2>0 AND (K-D)*2>REF((K-D)*2,1),(K-D)*2,0,0.05,0),COLOR0000FF;