OBV趋势图副图指标公式(电脑+手机版)【通达信】
2020-05-31原创 编 辑:掌上指标
电脑版效果展示:
手机版效果展示:
指标源码:
{M 1 100 13 N 1 100 5}
DRAWGBK(C>0,RGB(0,120,0),RGB(0,70,0),0,' ',0);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MA130:=MA(OBV,13);
DRAWBAND(MA130,RGB(0,0,80),OBV1,RGB(160,0,000));
A1:=REF(OBV1,5)=HHV(OBV1,2*5+1);
B1:=FILTER(A1,5);
C1:=BACKSET(B1,5+1);
D1:=FILTER(C1,5);
T线:=REF(OBV,BARSLAST(D1)),COLORFFFF00,NODRAW;
{STICKLINE(C>0,T线,T线,6,0),COLORFFFF00;
DRAWICON(CROSS(OBV,T线),T线*0.99,1);}
OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0),COLOR00FFFF;
MOBV:MA(OBV,13),COLORFF00FF;
AAAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,AAAA*(HIGH-LOW),IF(CLOSE<OPEN,AAAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,AAAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,AAAA*(HIGH-LOW),VOL/2));
买占比:=主动买盘/(主动买盘+主动卖盘)*100;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5);
买入量:=(VD9+VD8);卖出量:=(VD6+VD7);
买入资金:=买入量*CLOSE/100;卖出资金:=卖出量*CLOSE/100;
ZIF:=EMA(OBV,12)-EMA(OBV,26);
ZEA:=EMA(ZIF,9);
ZBC:=2*(ZIF-ZEA);
ZJS:=1.25*ZIF-0.25*ZEA;
ZQS:(ZJS*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORFFFFFF,NODRAW;
FX:=(ZIF*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORYELLOW,DOTLINE;
FQS:(ZEA*13*27-27*11*EMA(C,12)+13*25*EMA(C,26))/28,COLORFFFFFF,NODRAW;
PHX:=(ZQS+FQS)/2,COLORMAGENTA;
ZFC:ZQS-FX,COLOR00FFFF,NODRAW;
FPX:=FX-PHX;
STICKLINE(C,ZQS,FQS,1,1),COLORDD0000;
STICKLINE(ZQS>FQS,ZQS,FQS,1,0),COLOR000080;
STICKLINE(C,FX,PHX,1,1),COLORGREEN;
STICKLINE(FX>PHX,FX,PHX,1,0),COLOR00FFFF;
STICKLINE(FX>PHX AND FPX<REF(FPX,1),FX,PHX,1,0),COLOR00FF00;
STICKLINE(FX<PHX AND FPX>REF(FPX,1),FX,PHX,1,0),COLORLIRED;
更多资讯请关注下方掌上指标公众号:
我们的服务:
1、指标转换 --- 根据客户提供的电脑板或者手机版技术指标源码,转换成自己的手机软件使用。
2、指标编写 --- 按照客户定制指标时“提供的编写要求”,制作技术指标。
3、指标修改 --- 按照客户“提供的修改要求”,修改技术指标。