macd经过楼主多年的实战,其实用默认版的就最好,经典的就是最好用的。但默认的有个毛病,不好看,对于经常开软件的人来说,指标好看也影响心情,心情不好成功率也会降低,说以楼主特发一枚美化版的macd指标出来。简洁明了美观,不花哨才能准确的判断行情。
源码:
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;
DEA:=EMA(DIF,MID),LINETHICK2;
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD>0 AND MACD
STICKLINE(MACD<0 AND MACD
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR006633;
DIFF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),LINETHICK1;
DEAA:EMA(DIF,MID),COLOR00FFFF,LINETHICK1;