HJ_1:=ADVANCE=HHV(ADVANCE,14);
HJ_2:=BARSLAST(FILTER(CROSS(0.8,HJ_1),14))+1;
HJ_3:=REF(ADVANCE,HJ_2);
STICKLINE(HJ_2,HJ_3,HJ_3*1.0008,9,0),COLORRED;
HJ_4:=ADVANCE=LLV(ADVANCE,14);
HJ_5:=BARSLAST(FILTER(CROSS(0.8,HJ_4),14))+1;
HJ_6:=REF(ADVANCE,HJ_5);
STICKLINE(HJ_5,HJ_6,HJ_6*1.0008,9,0),COLORGREEN;
HJ_7:=HHV(EMA(ADVANCE,21),2);
NOTEXT20:EMA(ADVANCE,21),COLORRED,LINETHICK2;
NOTEXT30:IF(HJ_7=NOTEXT20 AND UPNDAY(HJ_7,3),HJ_7,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT40:IF(REF(HJ_7,2) NOTEXT20,NOTEXT20,DRAWNULL),COLORGREEN,LINETHICK2;
{-----------------------------------}