HJ_1:=EMA(WINNER(CLOSE)*100,5);
HJ_2:=EMA(HJ_1,2);
HJ_3:=EMA(HJ_2,2);
HJ_4:=EMA(HJ_3,2);
HJ_5:=5;
NOTEXT1:HJ_1;
NOTEXT2:DRAWLINE(NOTEXT1 =HHV(NOTEXT1,HJ_5),NOTEXT1,NOTEXT1 =LLV(NOTEXT1,HJ_5),NOTEXT1,1);
HJ_6:=REF(NOTEXT1,1)=REF(NOTEXT2,1) AND NOTEXT1 REF(NOTEXT1,1);
STICKLINE(NOTEXT1=NOTEXT2 AND NOTEXT1 HJ_4,NOTEXT1,NOTEXT1+10,1,0),COLORYELLOW;
STICKLINE(HJ_6,NOTEXT1,NOTEXT1+10,1,0),COLORRED;
{-----------------------------------}