cnm
MID : MA(CLOSE,20),coloryellow;
UPPER:MID + 2*STDDEV(CLOSE,20),colorwhite;
LOWER:MID - 2*STDDEV(CLOSE,20),colorffff00;
STICKLINE(C>=O,C,O,7,0),COLORRED;
STICKLINE(C>=O,C,O,4,0),COLORB0B0FF;
STICKLINE(C>=O,C,O,2,0),COLORYELLOW;
STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
STICKLINE(C<=O,C,O,7,0),COLORFF2020;
STICKLINE(C<=O,C,O,4,0),COLORFF6600;
STICKLINE(C<=O,C,O,2,0),COLORffa180;
STICKLINE(C<=O,H,L,0,0),COLORffe750;
RSV1:=(C-LLV(L,6))/(HHV(H,6)-LLV(L,6));
RSV2:=(RSV1-0.5)/5*EMA(C,20);
RSVK:=SMA(RSV2,3,1);
RSVD:=SMA(RSVK,3,1);
RSVJ:=RSVK*3-RSVD*2;
K:RSVK+EMA(C,20),colorred,linethick2;
D:RSVD+EMA(C,20),color00ff00,linethick2;
J:RSVJ+EMA(C,20),colorffaa00;