VAR1:=(C+L+H)/3;
VAR2:=SMA(VAR1,5,1)-SMA(VAR1,13,1);
VAR3:(VAR2-SMA(VAR2, 3,1))*100,NODRAW;
VAR4:VAR3>REF(VAR3,1) OR (VAR3=REF(VAR3,1) AND VAR3>REF(VAR3,1)),NODRAW;
STICKLINE(VAR4,O,C,3,0),COLORRED;
STICKLINE(VAR4,H,L,0,0),COLORRED;
STICKLINE(VAR4=0,O,C,3,0),COLORGREEN;
STICKLINE(VAR4=0,H,L,0,0),COLORGREEN;