M:=(H+L+3*C+O)/6;
M7:=MA(M,7);
M14:=MA(M,14);
M21:=MA(M,21);
M28:=MA(M,28);
M35:=MA(M,35);
M42:=MA(M,42);
M49:=MA(M,49);
M56:=MA(M,56);
MH7:=MA(H,7);
MH14:=MA(H,14);
MH21:=MA(H,21);
MH28:=MA(H,28);
MH35:=MA(H,35);
MH42:=MA(H,42);
MH49:=MA(H,49);
MH56:=MA(H,56);
ML7:=MA(L,7);
ML14:=MA(L,14);
ML21:=MA(L,21);
ML28:=MA(L,28);
ML35:=MA(L,35);
ML42:=MA(L,42);
ML49:=MA(L,49);
ML56:=MA(L,56);
MZ:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/480 LINETHICK1 COLORRED;
MQ:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/410 LINETHICK1 COLORD39D90;
MX:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/440 LINETHICK1 COLOR4499CC;
MS:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/350 LINETHICK1 COLORYELLOW;
MM:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/300 LINETHICK1 COLORWHITE;
MG:(7*M7+14*M14+21*M21+28*M28+35*M35+42*M42+49*M49+56*M56)/280 LINETHICK1 COLORGREEN;
MA4:MA(CLOSE,M1);
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR5:=REF(VAR4,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR7:=REF(VAR6,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR9:=REF(VAR8,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VARB:=REF(VARA,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C
P2:=IF(C
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORBLUE;