N=13;
STICKLINE(C>0,79.5,80,15,0),colorgreen,LINETHICK2;
STICKLINE(C>0,50,49,8,0),coloryellow,LINETHICK2;
STICKLINE(C>0,20,19.5,15,0),colorred,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
//www.gspt.com
K:SMA(RSV,5,1);
D:SMA(K,3,1);
FILLRGN(D,K,(D<K),colorred);
FILLRGN(D,K,(D>K),colorgreen);