指数代码我已经改成飞狐的了,可以通过却提示”引用股票数据缺少数据名称描述“,无法显示。俺写指标的水平实在一般请高手帮忙指导下
input:n(70,1,999),m(5,1,120);
zsc:=if(inblock('工程建筑'),"aa08$close",if(inblock('电力'),"aa01$close",if(inblock('计算机'),"aa12$close",
if(inblock('电子信息'),"aa04$close",if(inblock('房地产'),"aa05$close",if(inblock('纺织服装'),"aa06$close",
if(inblock('钢铁'),"aa07$close",if(inblock('供水供气'),"aa09$close",if(inblock('化工化纤'),"aa10$close",
if(inblock('电器'),"aa03$close",if(inblock('交通设施'),"aa14$close",if(inblock('银行类'),"aa28$close",
if(inblock('旅游酒店'),"aa16$close",if(inblock('煤炭石油'),"aa17$close",if(inblock('酿酒食品'),"aa18$close",
if(inblock('农林牧渔'),"aa19$close",if(inblock('商业连锁'),"aa23$close",if(inblock('建材'),"aa13$close",
if(inblock('其他行业'),"aa20$close",if(inblock('汽车类'),"aa21$close",if(inblock('机械'),"aa11$close",
if(inblock('医药'),"aa26$close",if(inblock('外贸'),"aa25$close",if(inblock('教育传媒'),"aa15$close",
if(inblock('仪电仪表'),"aa27$close",if(inblock('有色金属'),"aa29$close",if(inblock('造纸印刷'),"aa31$close",
if(inblock('券商'),"aa22$close",if(inblock('电力设备'),"aa02$close",if(inblock('通信'),"aa24$close",
if(inblock('运输物流'),"aa30$close",0)))))))))))))))))))))))))))))));
zsh:=if(inblock('工程建筑'),"aa08$high",if(inblock('电力'),"aa01$high",if(inblock('计算机'),"aa12$high",
if(inblock('电子信息'),"aa04$high",if(inblock('房地产'),"aa05$high",if(inblock('纺织服装'),"aa06$high",
if(inblock('钢铁'),"aa07$high",if(inblock('供水供气'),"aa09$high",if(inblock('化工化纤'),"aa10$high",
if(inblock('电器'),"aa03$high",if(inblock('交通设施'),"aa14$high",if(inblock('银行类'),"aa28$high",
if(inblock('旅游酒店'),"aa16$high",if(inblock('煤炭石油'),"aa17$high",if(inblock('酿酒食品'),"aa18$high",
if(inblock('农林牧渔'),"aa19$high",if(inblock('商业连锁'),"aa23$high",if(inblock('建材'),"aa13$high",
if(inblock('其他行业'),"aa20$high",if(inblock('汽车类'),"aa21$high",if(inblock('机械'),"aa11$high",
if(inblock('医药'),"aa26$high",if(inblock('外贸'),"aa25$high",if(inblock('教育传媒'),"aa15$high",
if(inblock('仪电仪表'),"aa27$high",if(inblock('有色金属'),"aa29$high",if(inblock('造纸印刷'),"aa31$high",
if(inblock('券商'),"aa22$high",if(inblock('电力设备'),"aa02$high",if(inblock('通信'),"aa24$high",
if(inblock('运输物流'),"aa30$high",0)))))))))))))))))))))))))))))));
zsl:=if(inblock('工程建筑'),"aa08$low",if(inblock('电力'),"aa01$low",if(inblock('计算机'),"aa12$low",
if(inblock('电子信息'),"aa04$low",if(inblock('房地产'),"aa05$low",if(inblock('纺织服装'),"aa06$low",
if(inblock('钢铁'),"aa07$low",if(inblock('供水供气'),"aa09$low",if(inblock('化工化纤'),"aa10$low",
if(inblock('电器'),"aa03$low",if(inblock('交通设施'),"aa14$low",if(inblock('银行类'),"aa28$low",
if(inblock('旅游酒店'),"aa16$low",if(inblock('煤炭石油'),"aa17$low",if(inblock('酿酒食品'),"aa18$low",
if(inblock('农林牧渔'),"aa19$low",if(inblock('商业连锁'),"aa23$low",if(inblock('建材'),"aa13$low",
if(inblock('其他行业'),"aa20$low",if(inblock('汽车类'),"aa21$low",if(inblock('机械'),"aa11$low",
if(inblock('医药'),"aa26$low",if(inblock('外贸'),"aa25$low",if(inblock('教育传媒'),"aa15$low",
if(inblock('仪电仪表'),"aa27$low",if(inblock('有色金属'),"aa29$low",if(inblock('造纸印刷'),"aa31$low",
if(inblock('券商'),"aa22$low",if(inblock('电力设备'),"aa02$low",if(inblock('通信'),"aa24$low",
if(inblock('运输物流'),"aa30$low",0)))))))))))))))))))))))))))))));
var12:=(hhv(high,34)-close)/(hhv(high,34)-llv(low,34))*100;
能量线:sma(var12,3,1)*(-1)+100,colorred,linethick2;
knx:=sma(var12,3,1);
mk:=ma(knx,m);
var13:=(hhv(zsh,34)-zsc)/(hhv(zsh,34)-llv(zsl,34))*100;
行业线:sma(var13,3,1)*(-1)+100,colorgreen,linethick1;
var11:=(hhv(indexh,34)-indexc)/(hhv(indexh,34)-llv(indexl,34))*100;
大盘线:sma(var11,3,1)*(-1)+100,coloryellow,linethick1;
买点:if(knx>n and cross(mk,knx) and 行业线>大盘线,50,0),colorwhite,linethick1;
注意:公式需要建立板块指数(即自定义板块指数),指数代码需要和指标中定义的一样,才可以显示
上一指标公式:多空趋势K线动力型公式 飞狐源码趋势指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文能量对比分析公式 飞狐能量指标 源码仅供学习研究。