DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),LAYER0;
DEA : EMA(DIFF,9),LAYER0;
MACD : 2*(DIFF-DEA),COLORSTICK,LAYER0;
主升 : DIFF>0 AND DIFF>DEA,COLOR0000FF,POINTDOT,LINETHICK0;
FILLRGN(DIFF,DEA,主升,RGB(250,0,0));
STICKLINE(MACD>0,MACD,0,6,0),Color5B5BFF;
STICKLINE(MACD>0,MACD,0,5,0),Color7171FF;
STICKLINE(MACD>0,MACD,0,4,0),Color8080FF;
STICKLINE(MACD>0,MACD,0,3,0),Color8E8EFF;
STICKLINE(MACD>0,MACD,0,2,0),ColorA2A2FF;
STICKLINE(MACD>0,MACD,0,1,0),ColorC1C1FF;
STICKLINE(MACD<0,MACD,0,6,0),ColorFFFF2D;
STICKLINE(MACD<0,MACD,0,5,0),ColorFFFF42;
STICKLINE(MACD<0,MACD,0,4,0),ColorFFFF55;
STICKLINE(MACD<0,MACD,0,3,0),ColorFFFF68;
STICKLINE(MACD<0,MACD,0,2,0),ColorFFFF84;
STICKLINE(MACD<0,MACD,0,1,0),ColorFFFFA6;