板块显示代码通达信(通达信代码)
内容导航:
Q1:通达信如何显示行业板块代码?
你的问题应该可以这样解决,如下图和代码
股理乾坤为您解答
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,HYZSCODE);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
Q2:如何在通达信公式显示所属行业和板块
在主图指标的源码里面,将所属板块和行业的代码编写进去即可。代码如下:
DRAWTEXT_FIX(ISLASTBAR,0.3,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.4,0,0,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.5,0,0,GNBLOCK),COLORYELLOW;
参考资料:http://tieba.baidu.com/p/2896773735
Q3:请高手编一个:能显示所属板块指标的通达信主图公式,谢谢!
{说明:通达信最新版可用}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
HH:=CONST(HHV(H,160));
LL:=CONST(LLV(L,160));{160可改成你习惯锁定的日K线数}
HL1:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.76,0.04));
HL2:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.80,0.08));
HL3:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.84,0.12));
HL4:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.88,0.16));
HL5:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.92,0.20));
HL6:=CONST(IF(CONST(REF(MA(C,10),10))>CONST((HH+LL)/2),0.96,0.24));
DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.00,0.04,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.04,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2))COLORFF00FF;
DRAWTEXT_FIX(1,0.00,0.12,0,'出千概念:')COLORFF88FF;
DRAWTEXT_FIX(1,0.07,0.12,0,EXTERNSTR(0,3))COLORFF88FF;
DRAWTEXT_FIX (1,0.80,HL1,0,'股本:');
DRAWNUMBER_FIX(1,0.84,HL1,0,CONST(FINANCE(1)/100000000));
DRAWTEXT_FIX (1,0.80,HL2,0,'流通:');
DRAWNUMBER_FIX(1,0.84,HL2,0,CONST(FINANCE(7)/100000000));
DRAWTEXT_FIX (1,0.80,HL3,0,'动PE:');
DRAWNUMBER_FIX(1,0.84,HL3,0,CONST(DYNAINFO(39)));
DRAWTEXT_FIX (1,0.80,HL4,0,'换手:');
DRAWNUMBER_FIX(1,0.84,HL4,0,CONST(DYNAINFO(37)*100));
DRAWTEXT_FIX (1,0.80,HL5,0,'量比:');
DRAWNUMBER_FIX(1,0.84,HL5,0,CONST(DYNAINFO(17)));
DRAWTEXT_FIX (1,0.80,HL6,0,'涨幅:');
DRAWNUMBER_FIX(1,0.84,HL6,0,CONST(DYNAINFO(14)*100)),COLORFF00FF;
DRAWNUMBER_FIX(1,0.84,HL6,0,IF(CONST(DYNAINFO(14)*100)<0,CONST(DYNAINFO(14)*100),DRAWNULL))COLOR00FF00;
Q4:通达信主图显示板块的指标是什么?
如果要想在主图上显示板块(或行业)提示字样,请按下面公式样本在你的常用主图公式的后面照样编写即可,因板块行业较多,只举例了几个板块(房地产、有色金属、煤炭行业、金融行业、钢铁行业)。
下面公式是在均价线主图后补充的板块(或行业)提示公式。
{均价线主图公式}
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(CLOSE,20);
MA4:MA(CLOSE,60);
MA5:MA(CLOSE,120);
{以下板块或行业提示}
A1:=IF(INBLOCK('房地产'),1,0);
A2:=IF(INBLOCK('有色金属'),1,0);
A3:=IF(INBLOCK('煤炭行业'),1,0);
A4:=IF(INBLOCK('金融行业'),1,0);
A5:=IF(INBLOCK('钢铁行业'),1,0);
D:=CURRBARSCOUNT;
KD1:DRAWTEXT(A1=1 AND D=3,H*1.1,'房地产')COLORYELLOW;
KD2:DRAWTEXT(A2=1 AND D=3,H*1.1,'有色金属')COLORYELLOW;
KD3:DRAWTEXT(A3=1 AND D=3,H*1.1,'煤炭行业')COLORYELLOW;
KD4:DRAWTEXT(A4=1 AND D=3,H*1.1,'金融行业')COLORYELLOW;
KD5:DRAWTEXT(A5=1 AND D=3,H*1.1,'钢铁行业')COLORYELLOW;
{可按上面公式格式添加其它的板块或行业}
Q5:通达信 如何将多只条件股加入自定义板块?
我用的是通达信,将条件股加入自定义板块的操作步骤如下:打开通达信软件---点“系统设置”---“用户板块设置”---在“用户板块管理”里选择“条件股”板块---点“导出板块”,把“条件股”导出到桌面(.EBK文件)---然后在“用户板块管理”里选择自定板块---点“导入板块”,在桌面上找到刚才导出的“条件股.EBK文件”,“打开”即可。这样就可以把条件股加入自定义板块。
股票公式专家团为你解答,希望能帮到你,祝投资顺利。
Q6:求大神帮忙写个通达信公式代码,在线等,多谢,如下描述?
拿内置的已经有的线复制一份去改吧。很简单的写过,你这要求多的没写过。
Q7:通达信行业指数代码
利用通达信“定制面板”里的“板块联动”就可以。
本文由锦鲤发布,不代表本站立场,转载联系作者并注明出处:/showinfo-4-146134-0.html