通达信MACD+OBV副图指标[好查股公式]
2022/3/30 20:00:03
通达信MACD+OBV副图指标
OBV:=EMA(SUM(IF(C > REF(C,1),VOL,IF(C < REF(C,1),-V,0)),0)/1000,2);
OBVE:=EMA(OBV,3);
DIFF:(EMA(OBVE,12)-EMA(OBVE,26));
DEA:EMA(DIFF,9);
BBDIFF:=DIFF-REF(DIFF,1);
BBDEA:=DEA-REF(DEA,1);
MACD:=2*(DIFF-DEA);
STICKLINE(DIFF >=REF(DIFF,1) AND DEA > REF(DEA,1),DIFF,DEA,8,0),LINETHICK4,COLOR0089FF;
STICKLINE(DIFF > DEA,DIFF,DEA,8,0),COLOR0089FF;
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),COLORGREEN;
STICKLINE(MACD > REF(MACD,1) AND MACD < 0,0,MACD,2,0),COLOR0099FF;
好查股公式指标