颜色很醒目。0上红涨青跌。0下绿跌紫涨。可以很清楚的分析最大最小值。
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;
STICKLINE(MACD>0 AND MACD
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;
STICKLINE(MACD<0 AND MACD
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'○'),LINETHICK1, coloryellow;
{