HJ_1:=EMA(EMA(CLOSE,10),10);
HJ_2:=(HJ_1-REF(HJ_1,1))/REF(HJ_1,1)*1000;
HJ_3:=1170309;
STICKLINE(HJ_2<REF(HJ_2,1) AND DATE<HJ_3 AND HJ_2<0,HJ_2,0,2,0),COLORBLUE;
防守:IF(HJ_2<REF(HJ_2,1) AND HJ_2<0,HJ_2,0),NODRAW,COLORBLUE;
HJ_4:=1170310;
HJ_5:=100*0.95;{}
STICKLINE(HJ_5>50 AND COST(85)<CLOSE AND DATE<HJ_3 AND HJ_2>0,HJ_2,0,2,0),COLORRED;
进攻:IF(HJ_5>50 AND COST(85)<CLOSE AND HJ_2>0,HJ_2,0),NODRAW,COLORRED;
STICKLINE(HJ_2<REF(HJ_2,1) AND DATE<HJ_3 AND HJ_2>0,HJ_2,0,2,0),COLORGREEN;
DRAWGBK(DATE>1170428,RGB(0,0,255),RGB(255,0,0),0,5,0);
收兵:IF(HJ_2<REF(HJ_2,1) AND HJ_2>0,HJ_2,0),NODRAW,COLORGREEN;
HJ_6:=SMA(HJ_2,5,1)-SMA(HJ_2,13,1);{}
HJ_7:=(MA(CLOSE,1)+MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,9))/5;
HJ_8:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,6)+MA(CLOSE,8)+MA(CLOSE,10))/5;
HJ_9:=MAX(EMA(HJ_7,1)-EMA(HJ_8,5),0)*200;
与庄共舞:EMA(HJ_9,5),STICK,COLORMAGENTA;
STICKLINE(与庄共舞<REF(与庄共舞,1) AND DATE<HJ_4,0,与庄共舞,1,0),COLORGREEN;
上升浪:HJ_6-SMA(HJ_6,3,1),COLORRED,LINETHICK2;
下跌浪:IF(上升浪<REF(上升浪,1),上升浪,DRAWNULL),COLORCYAN,LINETHICK2;
DRAWTEXT_FIX(ISLASTBAR AND DATE>1161222,0.002,0.45,0,7),COLORBLUE;
{-----------------------------------}