
DIF1:=EMA(CLOSE,6) - EMA(CLOSE,13);
DEA1:=EMA(DIF1,5);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
强:IF(DIF1>=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(DEA,DIF) ,H*0.04,' 卖'), COLOR00FF00,LINETHICK9;
DRAWTEXT(CROSS(DIF,DEA),L*-0.04,' 买'),COLORYELLOW,LINETHICK9;
DRAWICON(CROSS(DIF,DEA),L*-0.04,9);
DRAWICON(CROSS(DEA,DIF),H*0.04,2);
{HJ_7:=IF(HJ_5,35,17);
HJ_8:=IF(HJ_6,65,83);
HJ_9:=(2*CLOSE+HIGH+LOW+OPEN)/5;
HJ_10:=LLV(LOW,34);
HJ_11:=HHV(HIGH,34);
HJ_12:=LLV(LOW,14);
HJ_13:=HHV(HIGH,14);
HJ_14:=EMA((HJ_9-HJ_10)/(HJ_11-HJ_10)*100,13);
HJ_15:=EMA((HJ_9-HJ_10)/(HJ_11-HJ_10)*100,2);
HJ_16:=EMA((HJ_9-HJ_12)/(HJ_13-HJ_12)*100,2);
HJ_17:=EMA(HJ_14,3);
HJ_18:=100-HJ_17;
HJ_19:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
HJ_20:=SMA(HJ_19,3,1);
HJ_21:=SMA(HJ_20,3,1);
HJ_22:=3*HJ_20-2*HJ_21;
多:HJ_17,COLORRED,LINETHICK3;
HJ_23:=HJ_18;}