OBV暴涨指标公式 通达信、大智慧公式源码(附图)

拾荒网 其它指标 4.2K+

tdx副图源码贴图

dzh2副图源码贴图
OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE
OBVE:=EMA(OBV,3);
DIFF : EMA(OBVE,12) - EMA(OBVE,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA : EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MACD0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<0,0,MACD,1,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,1,0),COLOR0099FF;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,1,0),COLORYELLOW;
IF(BBDEA>0,DEA,DRAWNULL),COLOR9966CC;
IF(BBDEA<0,DEA,DRAWNULL),COLOR00FF33;
IF(BBDIFF>0,DIFF,DRAWNULL),COLORred,LINETHICK2;
IF(BBDIFF<0,DIFF,DRAWNULL),COLORBLUE,LINETHICK2;


 

OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE
OBVE:=EMA(OBV,3);
DIFF : EMA(OBVE,12) - EMA(OBVE,26);
BBDIFF:=DIFF-REF(DIFF,1);
DEA : EMA(DIFF,9);
BBDEA:=DEA-REF(DEA,1);
MACD : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MACD0,0,MACD,1,0),COLORGREEN;
STICKLINE(MACD<0,0,MACD,1,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)ANDMACD<0,0,MACD,1,0),COLOR0099FF;
STICKLINE(MACD>REF(MACD,1)ANDMACD>0,0,MACD,1,0),COLORYELLOW;
partline(DEA,BBDEA>0),COLOR9966CC;
partline(DEA,BBDEA<0 ),COLOR00FF33;
partline(DIFF,BBDIFF>0 ),COLORred,LINETHICK2;
partline(DIFF,BBDIFF<0),COLORBLUE,LINETHICK2;