将通达信“慢牛成交量”改成大智慧指标
2020/1/30 18:27:09
公式编写说明:
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,V*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;虚拟VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=2,V*240/FROMOPEN,DRAWNULL),NODRAW;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=2,虚拟VOL,0,-1,-1),NODRAW;成交量:V,VOLSTICK,COLORCYAN;MAVOL1:MA(成交量,5),COLORYELLOW;MAVOL2:MA(成交量,60),COLORFF00FF;换手率:V/CAPITAL*100,NODRAW; 虚量:VVOL;虚换手:VVOL/CAPITAL*100;十日换手:SUM(V/CAPITAL*100,3),COLORLICYAN,NODRAW;量比:V/REF(MA(V,5),1); 倍量:=(V>REF(V,1)*2 OR 虚量>REF(V,1)*2) AND C>REF(C,1);STICKLINE(倍量,V,0,2,0),COLORYELLOW;倍缩量:=(V<HHV(REF(V,1),5)/2 OR 虚量<HHV(REF(V,1),5)/2) AND C<REF(C,1);STICKLINE(倍缩量,V,0,2,0),COLORRED;STICKLINE((V>REF(V,1) AND REF(倍量,1)=1) AND C>REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(倍量,2)=1) AND C>REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(倍量,3)=1) AND C>REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4) AND REF(倍量,4)=1) AND C>REF(C,1),0,V,2,0),COLORYELLOW;STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4) AND REF(V,4)>REF(V,5) AND REF(倍量,5)=1) AND C>REF(C,1),0,V,2,0),COLORYELLOW;请老师将通达信“慢牛成交量”改成大智慧指标,谢谢!
公式源码示例:
VVOL:=IF(DATATYPE=8 AND BARSTATUS=2,DYNAINFO(17)*DYNAINFO(38),0);
STICKLINE(DATATYPE=8 AND BARSTATUS=2,VVOL,0,8,1),COLOR00C0C0,DOTLINE;
成交量:V,VOLSTICK,COLORCYAN;
MAVOL1:MA(成交量,5),COLORYELLOW,LAYER0;
MAVOL2:MA(成交量,60),COLORFF00FF,LAYER0;
换手率:V/CAPITAL*100,LINETHICK0,LAYER0;
虚量:VVOL,LINETHICK0,COLORGREEN;
虚换手:VVOL/CAPITAL*100,LINETHICK0;
十日换手:SUM(V/CAPITAL*100,3),COLOR808000,LINETHICK0;
量比:V/REF(MA(V,5),1),LINETHICK0;
倍量:=(V>REF(V,1)*2 OR 虚量>REF(V,1)*2) AND C>REF(C,1);
STICKLINE(倍量,V,0,6,0),COLORYELLOW;
倍缩量:=(V<HHV(REF(V,1),5)/2 OR 虚量<HHV(REF(V,1),5)/2) AND C<REF(C,1);
STICKLINE(倍缩量,V,0,6,0),COLORRED;
STICKLINE((V>REF(V,1) AND REF(倍量,1)=1) AND C>REF(C,1),0,V,6,0),COLORYELLOW;
STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(倍量,2)=1) AND C>REF(C,1),0,V,6,0),COLORYELLOW;
STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(倍量,3)=1) AND C>REF(C,1),0,V,6,0),COLORYELLOW;
STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4) AND REF(倍量,4)=1) AND C>REF(C,1),0,V,6,0),COLORYELLOW;
STICKLINE((V>REF(V,1) AND REF(V,1)>REF(V,2) AND REF(V,2)>REF(V,3) AND REF(V,3)>REF(V,4) AND REF(V,4)>REF(V,5) AND REF(倍量,5)=1) AND C>REF(C,1),0,V,6,0),COLORYELLOW;
看股吧公 式 www .kanguba.com
其它股票公式列表