以下是清晰MACD副图指标
DIF1:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=2*(DIF1-DEA1),STICK;
MACD2:=EMA(MACD1,3);
DIF:DIF1,COLOR33FF33;
DEA:DEA1,COLORYELLOW;
MACD:MACD1,NODRAW,COLORMAGENTA;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,3,1),COLORRED;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,3,1),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,3,1),COLORWHITE;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,3,1),COLORGREEN;
IF(DIF1>=DEA1,DIF1,DRAWNULL),COLORRED,LINETHICK2;
DRAWTEXT(CROSS(DIF,DEA),DIF-0.1,’金叉‘),COLORRED;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.1,’死叉’),COLORGREEN;
DRAWICON(CROSS(DIF,DEA),-0.05,1);
DRAWICON(CROSS(DEA,DIF),+0.05,2);
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)