SHORT:=5;LONG:=10;MID:=5;
先:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(先,MID);
MACD:=(先-DEA)*2,COLORSTICK;
STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,8,1),color0000ff;
STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,8,1),colorff0000;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,8,1),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,8,1),color00ff00;
PARTLINE(先,(先-REF(先,1))>=(REF(先,1)-REF(先,2)),colorred,(先-REF(先,1))<(REF(先,1)-REF(先,2)),colorgreen),Linethick3;
量:VOL/MA(VOL,5);
A:0;