放大倍率:=1;
S:=12*放大倍率;
P:=26*放大倍率;
M:=9*放大倍率;
DIF:EMA(CLOSE,S)-EMA(CLOSE,P);
DEA:EMA(DIF,M);
macd:(DIF-DEA)*2,COLORSTICK;
STICKLINE(((MACD<REF(MACD,1)) AND (MACD>0)),0,MACD,1,0),COLORYELLOW,LINETHICK1;
STICKLINE(((MACD>REF(MACD,1)) AND (MACD<0)),0,MACD,1,0),COLORGREEN,LINETHICK1;
DRAWLINE(DIF>REF(DIF,1) AND REF(DIF,1)>0,DIF,DIF<REF(DIF,1),DIF,0),COLORFF00FF,LINETHICK1;
DRAWLINE(DEA>REF(DEA,1),DEA,DEA<REF(DEA,1),DEA,0),LINETHICK1;
0,COLORWHITE,DOTLINE;
DRAwrECTREL(0,0,30,35,RGB(255,255,00)),COLORWHITE;