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;