gsptA:SAR(4,2,20),NODRAW,COLORRED;
gsptB:MA(CLOSE,30),COLORRED,LINETHICK2;
gsptC:MA(CLOSE,30),COLORRED;
A:=gsptA,NODRAW;
B:=(MA(CLOSE,30)-REF(MA(CLOSE,30),1))*100/REF(MA(CLOSE,30),1);
IF(CLOSE>=A,A,DRAWNULL),POINTDOT,COLORRED,LINETHICK4;
IF(CLOSE< A,A,DRAWNULL),POINTDOT,COLORGREEN,LINETHICK4;
IF(MA(B,3)< 0.1,MA(CLOSE,30),DRAWNULL),COLORGRAY,LINETHICK2;
STICKLINE(C>=A&&C>=O,C,O,2.8,1),COLORRED;
STICKLINE(C>=A&&C< O,C-0.003*C,O,2.8,0),COLORRED;
STICKLINE(C>=A,H,C,0,0),COLORRED;
STICKLINE(C>=A,O,L-0.003*C,0,0),COLORRED;
STICKLINE((C< A&&C>=O),C,O,2.8,1),COLORGREEN;
STICKLINE((C< A&&C< O),C-0.003*C,O,2.8,0),COLORGREEN;
STICKLINE(C< A,H,C,0,0),COLORGREEN;
STICKLINE(C< A,O,L-0.003*C,0,0),COLORGREEN;
JJ:=(CLOSE+HIGH+LOW)/3;
A8:=EMA(JJ,10);
B8:=REF(A8,1);
STICKLINE(A8>B8,A8,B8,2,0),COLORYELLOW;
STICKLINE(A8< B8,A8,B8,2,0),COLORBLUE;