DIF30:=EMA(CLOSE*100,12)-EMA(CLOSE*100,26);
DEA30:=EMA(DIF30,9);
macd0030:=(DIF30-DEA30)*2,COLORSTICK;
A5:=MacD0030>REF(MACD0030,1);
做多30:=DIF30>REF(DIF30,1);
做多31:=DEA30>REF(DEA30,1);
DIF60:=EMA(CLOSE*100,24)-EMA(CLOSE*100,52);
DEA60:=EMA(DIF60,18);
MACD0060:=(DIF60-DEA60)*2,COLORSTICK;
做多60:=DIF60>REF(DIF60,1);
做多61:=DEA60>REF(DEA60,1);
B5:=MACD0060>REF(MACD0060,1);
DIF日:=EMA(CLOSE*100,48)-EMA(CLOSE*100,104);
DEA日:=EMA(DIF日,36);
MACD00日:=(DIF日-DEA日)*2,COLORSTICK;
做多日:=DIF日>REF(DIF日,1);
做多日1:=DEA日>REF(DEA日,1);
D5:=MACD00日>REF(MACD00日,1);
DIF周:=EMA(CLOSE*100,192)-EMA(CLOSE*100,416);
DEA周:=EMA(DIF周,72);
MACD00周:=(DIF周-DEA周)*2,COLORSTICK;
做多周:=DIF周>REF(DIF周,1);
C5:=MACD00周>REF(MACD00周,1);
-72,COLOR222222;
MACD30:-90,COLORGRAY,LINETHICK2;
MACD60:-108,COLORGRAY,LINETHICK2;
MACD日:-126,COLORGRAY,LINETHICK2;
MACD周:-144,COLORGRAY,LINETHICK2;
-158,COLOR222222;
IF(A5,MACD30,DRAWNULL),COLORRED,LINETHICK8;
IF(B5,MACD60,DRAWNULL),COLOR0066CC,LINETHICK8;
IF(C5,MACD日,DRAWNULL),COLOR0066CC,LINETHICK9;
IF(D5,MACD周,DRAWNULL),COLOR0066CC,LINETHICK9;