MACD面积 适用于外汇5位小数点。对缠论喜欢用MACD比较背驰有用!
2016-5-13 21:26:02点击:
适用于外汇5位小数点。对缠论喜欢用MACD比较背驰有用!
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
红面积:SUM(MACD,BARSLAST(MACD<0))*(MACD>0),COLOR0000FF,NODRAW;
绿面积:SUM(MACD,BARSLAST(MACD>0))*(MACD<0),COLORFFFF00,NODRAW;
AA:=ROUND(REF(绿面积,1)*10000);
BB:=ROUND(REF(红面积,1)*10000);
DRAWNUMBER(CROSS(0,MACD),HHV(REF(MACD,1),5)+0.00001,ABS(BB)),colormagenta;
DRAWNUMBER(CROSS(MACD,0),LLV(REF(MACD,1),5)-0.00001,ABS(AA)),colorgreen;