通达信盘面涨跌家数对比条 内外盘对比条(涨跌家数对比)

2018-05-27    作者:ADMIN    来源:网络整理

日K线图中可以直接观察到涨跌家数的对比情况,以及当前股票的内外盘对比。可以直观判断盘面强弱。
加到常用均线指标后面即可。

代码:

ZDZ:=DYNAINFO(60)+DYNAINFO(61);
ZDX:=50+100*DYNAINFO(60)/ZDZ;
DRAWRECTREL(50,50,ZDX,100,RGB(255,0,0));
DRAWRECTREL(ZDX,50,150,100,RGB(0,255,255));
DRAWTEXT_FIX(1,0.05,0.05,0,CON2STR(DYNAINFO(60),0));
DRAWTEXT_FIX(1,0.09,0.05,0,STRCAT(CON2STR(100*DYNAINFO(60)/ZDZ,0),'%'));
DRAWTEXT_FIX(1,0.15,0.05,1,CON2STR(DYNAINFO(61),0));

NWPZ:=DYNAINFO(22)+DYNAINFO(23);
NWBX:=50+100*DYNAINFO(23)/NWPZ;
DRAWRECTREL(50,150,NWBX,200,RGB(255,0,255));
DRAWRECTREL(NWBX,150,150,200,RGB(0,0,255));
DRAWTEXT_FIX(1,0.085,0.15,0,STRCAT('1:',CON2STR(DYNAINFO(51),2)));

阅读:286    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】