建立指标--名称sjl
if(finance(34)>=0,c/finance(34),0);
然后再建立指标!
a1:=blocksetnum('机械行业');
机械行业:=insum('机械行业','sjl',1,0)/a1;
drawtext_fix(islastbar,0.01,0.01,0,'机械行业');
drawnumber_fix(islastbar,0.01,0.15,0,机械行业);
a2:=blocksetnum('电子信息');
电子信息:=insum('电子信息','sjl',1,0)/a2;
drawtext_fix(islastbar,0.08,0.01,0,'电子信息');
drawnumber_fix(islastbar,0.08,0.15,0,电子信息);
a3:=blocksetnum('生物制药');
生物制药:=insum('生物制药','sjl',1,0)/a3;
drawtext_fix(islastbar,0.15,0.01,0,'生物制药');
drawnumber_fix(islastbar,0.15,0.15,0,生物制药);
a4:=blocksetnum('化工行业');
化工行业:=insum('化工行业','sjl',1,0)/a4;
drawtext_fix(islastbar,0.23,0.01,0,'化工行业');
drawnumber_fix(islastbar,0.23,0.15,0,化工行业);
a5:=blocksetnum('房地产');
房地产:=insum('房地产','sjl',1,0)/a5;
drawtext_fix(islastbar,0.3,0.01,0,'房地产');
drawnumber_fix(islastbar,0.3,0.15,0,房地产);
a6:=blocksetnum('电子器件');
电子器件:=insum('电子器件','sjl',1,0)/a6;
drawtext_fix(islastbar,0.37,0.01,0,'电子器件');
drawnumber_fix(islastbar,0.37,0.15,0,电子器件);
a7:=blocksetnum('商业百货');
商业百货:=insum('商业百货','sjl',1,0)/a7;
drawtext_fix(islastbar,0.44,0.01,0,'商业百货');
drawnumber_fix(islastbar,0.44,0.15,0,商业百货);
a8:=blocksetnum('汽车类');
汽车类:=insum('汽车类','sjl',1,0)/a8;
drawtext_fix(islastbar,0.51,0.01,0,'汽车类');
drawnumber_fix(islastbar,0.51,0.15,0,汽车类);
a9:=blocksetnum('交通运输');
交通运输:=insum('交通运输','sjl',1,0)/a9;
drawtext_fix(islastbar,0.58,0.01,0,'交通运输');
drawnumber_fix(islastbar,0.58,0.15,0,交通运输);
a10:=blocksetnum('建筑建材');
建筑建材:=insum('建筑建材','sjl',1,0)/a10;
drawtext_fix(islastbar,0.65,0.01,0,'建筑建材');
drawnumber_fix(islastbar,0.65,0.15,0,建筑建材);
a11:=blocksetnum('有色金属');
有色金属:=insum('有色金属','sjl',1,0)/a11;
drawtext_fix(islastbar,0.72,0.01,0,'有色金属');
drawnumber_fix(islastbar,0.72,0.15,0,有色金属);
a12:=blocksetnum('发电设备');
发电设备:=insum('发电设备','sjl',1,0)/a12;
drawtext_fix(islastbar,0.79,0.01,0,'发电设备');
drawnumber_fix(islastbar,0.79,0.15,0,发电设备);
a13:=blocksetnum('农林牧渔');
农林牧渔:=insum('农林牧渔','sjl',1,0)/a13;
drawtext_fix(islastbar,0.86,0.01,0,'农林牧渔');
drawnumber_fix(islastbar,0.86,0.15,0,农林牧渔);
a14:=blocksetnum('电力行业');
电力行业:=insum('电力行业','sjl',1,0)/a14;
drawtext_fix(islastbar,0.01,0.25,0,'电力行业');
drawnumber_fix(islastbar,0.01,0.4,0,电力行业);
a15:=blocksetnum('钢铁行业');
钢铁行业:=insum('钢铁行业','sjl',1,0)/a15;
drawtext_fix(islastbar,0.08,0.25,0,'钢铁行业');
drawnumber_fix(islastbar,0.08,0.4,0,钢铁行业);
a16:=blocksetnum('食品行业');
食品行业:=insum('食品行业','sjl',1,0)/a16;
drawtext_fix(islastbar,0.15,0.25,0,'食品行业');
drawnumber_fix(islastbar,0.15,0.4,0,食品行业);
a17:=blocksetnum('综合行业');
综合行业:=insum('综合行业','sjl',1,0)/a17;
drawtext_fix(islastbar,0.23,0.25,0,'综合行业');
drawnumber_fix(islastbar,0.23,0.4,0,综合行业);
a18:=blocksetnum('农药化肥');
农药化肥:=insum('农药化肥','sjl',1,0)/a18;
drawtext_fix(islastbar,0.30,0.25,0,'农药化肥');
drawnumber_fix(islastbar,0.30,0.4,0,农药化肥);
a19:=blocksetnum('纺织行业');
纺织行业:=insum('纺织行业','sjl',1,0)/a19;
drawtext_fix(islastbar,0.37,0.25,0,'纺织行业');
drawnumber_fix(islastbar,0.37,0.4,0,纺织行业);
a20:=blocksetnum('服装鞋类');
服装鞋类:=insum('服装鞋类','sjl',1,0)/a20;
drawtext_fix(islastbar,0.44,0.25,0,'服装鞋类');
drawnumber_fix(islastbar,0.44,0.4,0,服装鞋类);
a21:=blocksetnum('金融行业');
金融行业:=insum('金融行业','sjl',1,0)/a21;
drawtext_fix(islastbar,0.51,0.25,0,'金融行业');
drawnumber_fix(islastbar,0.51,0.4,0,金融行业);
a22:=blocksetnum('仪器仪表');
仪器仪表:=insum('仪器仪表','sjl',1,0)/a22;
drawtext_fix(islastbar,0.58,0.25,0,'仪器仪表');
drawnumber_fix(islastbar,0.58,0.4,0,仪器仪表);
a23:=blocksetnum('煤炭行业');
煤炭行业:=insum('煤炭行业','sjl',1,0)/a23;
drawtext_fix(islastbar,0.65,0.25,0,'煤炭行业');
drawnumber_fix(islastbar,0.65,0.4,0,煤炭行业);
a24:=blocksetnum('家电行业');
家电行业:=insum('家电行业','sjl',1,0)/a24;
drawtext_fix(islastbar,0.72,0.25,0,'家电行业');
drawnumber_fix(islastbar,0.72,0.4,0,家电行业);
a25:=blocksetnum('酒店旅游');
酒店旅游:=insum('酒店旅游','sjl',1,0)/a25;
drawtext_fix(islastbar,0.79,0.25,0,'酒店旅游');
drawnumber_fix(islastbar,0.79,0.4,0,酒店旅游);
--------------------------------------------
因水准有限50条输出被全部用光了(好像信用卡透支一样)就写到这里吧,论坛不太见到用这2个函数写指标
愿意可能就是因为太卡,不是一般的卡..............
解决方法不清楚!(损招有4如下)
1:删掉不用
2:减少输出提高速度
3:找通大兴去
4:把指标装在你老板或者领导的通大兴里面让他卡的想死!
使用了drawtext_fix函数需要---内核是5.692+的版本指标管理器的版本应该在4.15就可以用了!
行业市净率用来判断行业的投资价值使用!
大智慧没装,也不用!飞狐使用中,不会写有高手路过帮我写一个类似的谢谢!
思路来源于千钧茶社5 最新版本的11点闭门贴中的图,图中见到顶底应该使用到了pe之类的东西,而且拿到存货的玩家也需要下f10资料
今天又下班早了顺路通达信写着玩!
上一指标公式:变色成交量[副图]指标下载 通达信变色源码
下一指标公式:牵牛附图指标下载 通达信附图源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文板块副图副图BLOCKSETNUM与INSUM的运用指标下载 通达信源码贴图仅供学习研究。