源码
//Short(3,100,50)
//Long(10,1000,120)
//M(1,500,8)
DIFF :=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA :=EMA(DIFF,M);
MACD :=2*(DIFF-DEA);
Zero : 0;
∑MACD:=SUM(MACD,0),Linethick2;
PARTLINE(∑MACD,∑MACD>REF(∑MACD,1),RGB(250,0,0),∑MACD<REF(∑MACD,1),RGB(0,0,250));