彩色MACD
2014-12-13 22:10:04点击:
颜色很醒目。0上红涨青跌。0下绿跌紫涨。可以很清楚的分析最大最小值。
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA),colorlired;
Zero : 0;
STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,2,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,2,0),colorffff00;
STICKLINE(MACD<=0 AND MACD>=REF(MACD,1),0,MACD,2,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,2,0),color00ff00;
DRAWTEXT(CROSS(DIFF,DEA),DIFF,'○'),LINETHICK1, coloryellow;
强度:IF(DIFF>=DEA,DIFF,DRAWNULL),colorred;