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;