M:=10;
AA:=3;
DIFF:MA(CLOSE,12)-MA(CLOSE,26),COLORFFFFFF,LINETHICK2,COLORFF7F00;
DEA:MA(DIFF,9),COLOR00FFFF,LINETHICK2,COLORFF7F00;
DRAWBAND(DIFF,RGB(155,50,50),DEA,RGB(0,100,50));
macd:2*(DIFF-DEA), COLORSTICK,LINETHICK1;
中区:0,COLORYELLOW,LINETHICK1;
动力:MA(MACD,5),COLORYELLOW,LINETHICK2;
主动:IF(MACD>=动力 AND 动力<=中区,动力,DRAWNULL),COLORYELLOW,LINETHICK2;
主拉:IF(动力>=中区,动力,DRAWNULL),COLORRED,LINETHICK2;
翻空:IF(动力<中区 AND 动力>MACD,动力,DRAWNULL),COLORGREEN,LINETHICK2;
中区10:0,COLORFFFF00,LINETHICK1;
动力10:MA(MACD,10),COLORFFFF00,LINETHICK2;
主动10:IF(MACD>=动力10 AND 动力10<=中区10,动力10,DRAWNULL),COLORFFFF00,LINETHICK2;
主拉10:IF(动力10>=中区10,动力10,DRAWNULL),COLORFF43B9,LINETHICK2;
翻空10:IF(动力10<中区10 AND 动力10>MACD,动力10,
DRAWNULL),COLOR00FF00,LINETHICK2;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORRED;
STICKLINE(MACD0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD沉:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED;
着:IF(DEA>=DIFF,DEA,DRAWNULL),COLORFF9900;
冷:IF(DIFF>=DEA,DEA,DRAWNULL),COLOR00FFFF;
静:IF(DEA>=DIFF,DIFF,DRAWNULL),COLOR00FF00;