HJ_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
HJ_2:=EMA(HJ_1,9);
HJ_3:=2*(HJ_1-HJ_2);
HJ_4:=COUNT(CROSS(HJ_1,HJ_2),BARSLAST(HJ_2 =0));
HJ_5:=CROSS(HJ_1,HJ_2) AND HJ_2 0 AND COUNT(HJ_4=1,21)=1;
STICKLINE(HJ_5,0,0.1,5,0),COLORRED;
HJ_6:=CROSS(HJ_1,HJ_2) AND HJ_1 (-0.1);
STICKLINE(HJ_6,0,(-0.18),6,0),COLORYELLOW;
HJ_7:=CROSS(HJ_1,HJ_2) AND HJ_2 0 AND COUNT(HJ_4=2,21)=1;
STICKLINE(HJ_7,0,(-0.18),6,0),COLORMAGENTA;
HJ_8:=CROSS(HJ_1,HJ_2);
STICKLINE(HJ_8,0,0.18,6,0),COLORGREEN;
{-----------------------------------}