DIFF : (EMA(CLOSE,SHORT) - EMA(CLOSE,LONG))*100,LINETHICK1,colorred;
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
CDIFF:=(EMA(CLOSE,60) - EMA(CLOSE,130))*100;
CDEA:=EMA(CDIFF,45);
CMACD:2*(CDIFF-CDEA);
连红:BARSLAST(MACD 0),COLOR0030FF;
连绿:BARSLAST(MACD 0),COLOR00FF30;
连高:BARSLAST(MACD REF(MACD,1)),COLOR0030FF;
连低:BARSLAST(MACD REF(MACD,1)),COLOR00FF30;
STICKLINE(MACD REF(MACD,1),MACD,0,2,0),COLOR0030FF;
STICKLINE(MACD =REF(MACD,1),MACD,0,2,0),COLOR00FF30;
STICKLINE(MACD 0 AND MACD REF(MACD,1),MACD,0,2,0),coloryellow;