通达信盘面涨跌家数对比条 内外盘对比条(涨跌家数对比)
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)));
上一篇: 通达信虚拟量及地量副图指标
下一篇: 通达信现价虚横线的绘制