DIF30:=EMA(CLOSE*100,12)-EMA(CLOSE*100,26);
DEA30:=EMA(DIF30,9);
MACD0030:=(DIF30-DEA30)*2;
A5:=MACD0030>REF(MACD0030,1);
做多30:=DIF30>REF(DIF30,1);
做多31:=DEA30>REF(DEA30,1);
DIF60:=EMA(CLOSE*100,12*2)-EMA(CLOSE*100,26*2);
DEA60:=EMA(DIF60,9);
MACD0060:=(DIF60-DEA60)*2;
做多60:=DIF60>REF(DIF60,1);
做多61:=DEA60>REF(DEA60,1);
B5:=MACD0060>REF(MACD0060,1);
DIF日:=EMA(CLOSE*100,12*8)-EMA(CLOSE*100,26*8);
DEA日:=EMA(DIF日,9);
MACD00日:=(DIF日-DEA日)*2;
做多日:=DIF日>REF(DIF日,1);
做多日1:=DEA日>REF(DEA日,1);
C5:=MACD00日>REF(MACD00日,1);
DIF周:=EMA(CLOSE*100,12*40)-EMA(CLOSE*100,26*40);
DEA周:=EMA(DIF周,9);
MACD00周:=(DIF周-DEA周)*2;
做多周:=DIF周>REF(DIF周,1);
D5:=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;