obv:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);
DIFF:=EMA(obv,12)-EMA(obv,26);
bbdIFF:=DIFF-ref(DIFF,1);
DEA:=EMA(DIFF,9);
bbDEA:=DEA-ref(DEA,1);
macd:=2*(DIFF-DEA);
PARTLINE(C,0),COLORWHITE;
PARTLINE(DIFF,DIFF>=REF(DIFF,1) AND DEA>REF(DEA,1)),LINETHICK4,Color0089FF;
FILLRGN(DIFF,DEA,DIFF>DEA),Color0089FF;
PARTLINE(DIFF,DIFF<REF(DIFF,1) AND DEA<REF(DEA,1)),LINETHICK4,COLORBLUE;
FILLRGN(DEA,DIFF,DIFF<DEA),COLORBLUE;
PARTLINE(DIFF,DIFF>=REF(DIFF,1) AND DEA<REF(DEA,1)),LINETHICK4,Color00C500;
PARTLINE(DIFF,DIFF<REF(DIFF,1) AND DEA>REF(DEA,1)),LINETHICK4,COLORYELLOW;
STICKLINE(MacD>ref(MACD,1) and MACD>0,0,MACD,2,0),COLORRED;
STICKLINE(MACD<ref(MACD,1) and MACD>0,0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD<ref(MACD,1) and MACD<0,0,MACD,2,0),COLORCYAN;
STICKLINE(MACD>ref(MACD,1) and MACD<0,0,MACD,2,0),COLOR0099FF;
PARTLINE(C,2*(DEA-DIFF)),LINETHICK2,COLORGRAY;

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