源码
DIF :(EMA(CLOSE,12) - EMA(CLOSE,26))*3;
DEA :EMA(DIF,27);
a:=C - REF(MA(CLOSE,15),5);
MACD : 2*(DIF-DEA), COLORSTICK;
STICKLINE(MACD>=0,0+MACD,0,2,1),colorred;
STICKLINE(MACD<=0,0+MACD,0,2,1),colorcyan;牛熊线:0;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,1),colorgreen;
STICKLINE(CROSS(a,0)AND C>MA(C,5)AND a>dea,0,MACD,4,0),coloryellow;
FILLRGN(DIF,DEA,DIF>DEA,RGB(105,20,80),DIF<DEA,RGB(0,155,150));