VAR10:=HHV(H,60);
VAR11:=LLV(L,60);
VAR12:=100*EMA(C,50);
VAR13:=100*C;
F:=VAR8-VAR9;
F1:=VAR10-VAR11;
A1:=(C-VAR9)/F*10000;
B1:=(VAR8-C)/F*10000;
A2:=(C-VAR11)/F1*10000;
B2:=(VAR10-C)/F1*10000;
A:=EMA(A1,2);
B:=EMA(B1,250);
STICKLINE(A B OR VAR13 VAR12,C,O,-1,0),COLORGREEN;
STICKLINE(A =B AND VAR13 =VAR12,C,O,-1,0),COLORRED;
STICKLINE(A B OR VAR13 VAR12,L,H,0,0),COLORGREEN;
STICKLINE(A =B AND VAR13 =VAR12,L,H,0,0),COLORRED;