VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
VAR2:=EMA(EMA(EMA(VAR1,4),4),4);
VAR3:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100;
VAR4:=MA(VAR3,2);
VAR5:=EMA(CLOSE,5)-EMA(CLOSE,55);
VAR6:=EMA(VAR5,10);
STICKLINE(VAR3>VAR4 AND VAR5<VAR6,0,0.5,3.7,0),COLORLIRED;
STICKLINE(VAR3>VAR4 AND VAR5>VAR6,0,1,3.7,0),COLORRED;
STICKLINE(VAR3<VAR4 AND VAR5>VAR6,0,0.5,3.7,0),COLORGRAY;
STICKLINE(VAR3<VAR4 AND VAR5<VAR6,0,0.5,3.7,0),COLORBLACK;
DRAWICON(VAR3>VAR4 AND VAR5<VAR6 AND REF((VAR3>VAR4 AND VAR5<VAR6)<1,1),0.4,38);
DRAWICON(VAR3>VAR4 AND VAR5>VAR6 AND REF((VAR3>VAR4 AND VAR5>VAR6)<1,1),0.9,23);
DRAWICON(VAR3<VAR4 AND VAR5>VAR6 AND REF((VAR3<VAR4 AND VAR5>VAR6)<1,1),0.4,39);
DRAWICON(VAR3<VAR4 AND VAR5<VAR6 AND REF((VAR3<VAR4 AND VAR5<VAR6)<1,1),0.1,15);