DIF:EMA(CLOSE,10)-EMA(CLOSE,22);
DIF1:=REF(DIF,1);
MA5:=MA(CLOSE,5);
STICKLINE(DIF>DIF1,DIF,DIF1,8.5,1),coloryellow;
STICKLINE(DIF<DIF1,DIF,DIF1,8.5,1),colorcyan;
STICKLINE(DIF>=DIF1 AND CLOSE>MA5,DIF,DIF1,8.5,1),colormagenta;
STICKLINE(DIF<=DIF1 AND CLOSE<MA5,DIF,DIF1,8.5,1),colorgreen;