M:=10;0,COLOR666666;VAR1:=SMA(AMOUNT/10,M,1)/10000; {10日的SMA平均,考虑一日权重}DIF1:=EMA(VAR1,20)-EMA(VAR1,60);DEA1:=EMA(DIF1,10),COLORWHITE;1:=(DIF1-DEA1)*2;MAMACD1:=MA(MACD1,3);DIF2:=EMA(VAR1,30)-EMA(VAR1,60);DEA2:=EMA(DIF2,10),COLORWHITE;MACD2:=(DIF2-DEA2)*2;MAMACD2:=MA(MACD2,3);DIF3:=EMA(VAR1,40)-EMA(VAR1,60);DEA3:=EMA(DIF3,10),COLORWHITE;MACD3:=(DIF3-DEA3)*2;MAMACD3:=MA(MACD3,3);DIF4:=EMA(VAR1,60)-EMA(VAR1,120);DEA4:=EMA(DIF4,10),COLORWHITE;MACD4:=(DIF4-DEA4)*2;MAMACD4:=MA(MACD4,3);DIF5:=EMA(VAR1,12