同花顺MACDYX公式
-
相关简介:同花顺MACDYX公式 源码 DIF:EMA(CLOSE,12)-EMA(CLOSE,26); DEA:EMA(DIF,9); MACD:(DIF-DEA)*2,COLORSTICK; 红面积:IF(DIFDEA,SUM(MACD,BARSLAST(CROSS(DIF,DEA))),DRAWNULL),NODRAW,colorlired; 绿面积:IF(DIFDEA,SUM(MACD,BARSLAST(CROSS(DEA,DIF))),DRAWNULL),NODRAW,colorgreen; D
-
文章来源:股海网作者:股海网发布时间:2016-02-16浏览次数:
同花顺MACDYX公式
源码
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
红面积:IF(DIF>DEA,SUM(MACD,BARSLAST(CROSS(DIF,DEA))),DRAWNULL),NODRAW,colorlired;
绿面积:IF(DIF<DEA,SUM(MACD,BARSLAST(CROSS(DEA,DIF))),DRAWNULL),NODRAW,colorgreen;
DRAWNUMBER(CROSS(DIF,DEA),DEA,REF(绿面积,1)),colorgreen;
DRAWNUMBER(CROSS(DEA,DIF),DEA*1.1,REF(红面积,1)),colorlired;
//www.guhai.com.cn DRAWNUMBER(DIF>DEA,MACD,BARSLAST(CROSS(DIF,DEA))+1),colorred;
//DRAWNUMBER(DIF<DEA,MACD,BARSLAST(CROSS(DEA,DIF))+1),colorcyan;