以下是分时主图量价MACD指标公式

分时主图量价MACD指标,大家觉得好就赞一个!

{分时MACD}

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=2*(DIF-DEA);

X:=CONST(HHV(ABS(C-DYNAINFO(3)),FROMOPEN))/CONST(HHV(ABS(DIF),FROMOPEN))*0.6;

DI:DIF*X+DYNAINFO(3),COLORGRAY;

DE:DEA*X+DYNAINFO(3),COLOR7700AA;

MAC:=MACD*X;

STICKLINE(MAC>0,DYNAINFO( 3),MAC+DYNAINFO( 3),0,1),COLORRED;

STICKLINE(MAC<0,DYNAINFO( 3),MAC+DYNAINFO( 3),0,1),COLORCYAN;

{放量}

放量:=SUM(V,3)>REF(SUM(V,7),3)*2;

DRAWICON(放量=1 AND FILTER(放量=1,6),C,11);

DRAWTEXT(放量=1 AND FILTER(放量=1,6),C-C*0.015,’量’),COLORYELLOW;

{价}

现价:C,COLORMAGENTA,LINETHICK3;

均价:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK3;

绿跌:IF(均价<=REF(均价,1),均价,DRAWNULL),COLORGREEN,LINETHICK5;

蓝涨:IF(均价>=REF(均价,1),均价,DRAWNULL),COLORBLUE,LINETHICK5;

DRAWTEXT((CROSS(DIF,DEA) AND 蓝涨),C,’买’),COLORYELLOW;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。