obv结合kdj(参数16.9.3)
obv的用处其实蛮大,不过原始obv能量潮还真的不是那么好看,对obv经过改动后更加实用也更加直观
用于附图时可采用以下源码
{OBV情绪}
OBV情绪18:MA(OBV,1)-MA(OBV,18);
OBV情绪60:MA(OBV,1)-MA(OBV,60);
本人懒汉,喜欢一个一个附图里多看一两个常用指标,所以就把以上源码稍加改动跟cci(参数84)搞在了一堆,当然cci也有小改
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));
CCI情绪:MA(CCI,1)-MA(CCI,99),COLORRED;
OBV情绪18:(MA(OBV,1)-MA(OBV,18))/3000,COLORYELLOW;
OBV情绪60:(MA(OBV,1)-MA(OBV,60))/3000,COLORFF00FF;
主图源码
{OBV情绪}
OBV情绪18:=MA(OBV,1)-MA(OBV,18);
OBV情绪60:=MA(OBV,1)-MA(OBV,60);
{KDJ1693}
RSV:=(CLOSE-LLV(LOW,16))/(HHV(HIGH,16)-LLV(LOW,16))*100;
K:=SMA(RSV,9,1),COLORYELLOW;
D:=SMA(K,3,1),COLORWHITE;
J:=3*K-2*D,COLORFF00FF;
DRAWTEXT(J>87.5 AND J<REF(J,1) AND OBV情绪18<REF(OBV情绪18,1){ AND REF(V,1)=HHV(V,34)},H,'高位极限');
DRAWTEXT(J<10 AND J>REF(J,1) AND OBV情绪18>REF(OBV情绪18,1){ AND REF(V,1)=HHV(V,34)},L,'低位转折');
EXP5:EXPMA(CLOSE,5),COLORWHITE;
EXP29:EXPMA(CLOSE,29)COLORRED;
MA5:MA(C,5),LINETHICK1,COLORFF00FF;
MA25:MA(CLOSE,25)COLORGREEN;
MA99:MA(CLOSE,99)COLORGRAY;
本人向来不相信用公式能抓住黑马大牛什么的,不过能借助公式买在相对低点的话倒是比较可能