LONG:=26;SHORT:=12;M:=9;
obv:=MA(SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,1);
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), COLORSTICK;
柱: 2*(DIFF-DEA);
BB柱:=柱-REF(柱,1);
{ _通达信股票指标公式}
IF(BBDIFF>0,DIFF,DRAWNULL),COLORCC00FF,LINETHICK2;
IF(BBDIFF<=0,DIFF,DRAWNULL),COLORFF9999,LINETHICK2;
IF(BBDEA>0,DEA,DRAWNULL),COLOR0066FF,LINETHICK2;
IF(BBDEA<=0,DEA,DRAWNULL),COLOR00FF33,LINETHICK2;
IF(BB柱>0,柱,DRAWNULL),COLORCC00FF,LINETHICK1;
IF(BB柱<=0,柱,DRAWNULL),COLORFF9999,LINETHICK1;
DIFF速率:BBDIFF*100,,NODRAW;
DEA速率:BBDEA*100,,NODRAW;

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