INPUT: LONG短期(26,20,100),SHORT长期(12,5,40),M天数(9,2,60);
DIFF : EMA(CLOSE,SHORT长期) - EMA(CLOSE,LONG短期),LINETHICK1;
DEA : EMA(DIFF,M天数),LINETHICK0;
FILLRGN(DIFF,DEA,DEA<=DIFF,RGB(255,00,0),DEA>DIFF,RGB(0,255,0)),LAYER6;
MACD : 2*(DIFF-DEA),COLORSTICK;
FILLRGN(DIFF,MACD,MACD>=DIFF,RGB(255,0,0),DIFF