ses:=5;
f:=(CLOSE-LLV(LOW,ses))/(HHV(HIGH,ses)-LLV(LOW,ses))*100;
g:=SMA(f,2,1);
K:=SMA(g,2,1),colorred;
D:=SMA(K,3,1),colorred;
W:=REVERSE(K),colormagenta;
R:=REVERSE(SMA(K,2,1)),colorgreen;
PS:=CROSS(K,D);
OPS:=K-W;
OPE:=D-R;
FILLRGN(K,D,K>D,RGB(255,0,0),K<D,RGB(100,210,50));
FILLRGN(W,R,R>W,RGB(255,0,0),R<W,RGB(100,210,50));
STICKLINE(K,K,0,1,0),colorred,LINETHICK1;
STICKLINE(R,R,0,1,0),colorgreen,LINETHICK1;
YY:0,colorwhite;
HH:80,colorred;
DD:-80,colorred;
BB:20,colorgreen;
mm:-20,colorgreen;