macd叠加obv
obv是量能指标,MACD则是应用最广泛的指标之一,二者能在一个坐标系里叠加,会产生不错的效果。分享一个MACD叠加到OBV的指标。
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLORWHITE;
MAOBV:MA(OBV,30);
零点:=(CONST(LLV(OBV,90))+CONST(HHV(OBV,90)))/2;
DI:=EMA(CLOSE,12)-EMA(CLOSE,26);
F分:=CONST(LLV(DI,90));
F百:=CONST(HHV(DI,90))-F分;
点:=CONST(LLV(OBV,90));
基:=CONST(HHV(OBV,90))-点;
F比:=(DI-F分)/F百;
XFX:=F比*基+点;
DIF:XFX,LINETHICK2;
DEA:EMA(DIF,9),LINETHICK2;
MACD:(DIF-DEA)*2+零点;
谢谢楼主分享! :):):):):):):)
页:
[1]