个股k线同步对比板块公式
用于了解个股相对板块处在什么位置,相对的强度怎么样。
zsc:=if(inblock('工程建筑'),"991002$close",if(inblock('电力'),"991003$close",if(inblock('计算机'),"991004$close",
if(inblock('电子信息'),"991006$close",if(inblock('房地产'),"991007$close",if(inblock('纺织服装'),"991008$close",
if(inblock('钢铁'),"991009$close",if(inblock('供水供气'),"991010$close",if(inblock('化工化纤'),"991011$close",
if(inblock('电器'),"991014$close",if(inblock('交通设施'),"991016$close",if(inblock('银行类'),"991017$close",
if(inblock('旅游酒店'),"991018$close",if(inblock('煤炭石油'),"991019$close",if(inblock('酿酒食品'),"991020$close",
if(inblock('农林牧渔'),"991021$close",if(inblock('商业连锁'),"991023$close",if(inblock('建材'),"991024$close",
if(inblock('其他行业'),"991025$close",if(inblock('汽车类'),"991026$close",if(inblock('机械'),"991027$close",
if(inblock('医药'),"991028$close",if(inblock('外贸'),"991031$close",if(inblock('教育传媒'),"991032$close",
if(inblock('仪电仪表'),"991033$close",if(inblock('有色金属'),"991034$close",if(inblock('造纸印刷'),"991035$close",
if(inblock('券商'),"991036$close",if(inblock('电力设备'),"991037$close",if(inblock('通信'),"991135$close",
if(inblock('运输物流'),"991136$close",if(inblock('保险'),"991255$close",0))))))))))))))))))))))))))))))));
zso:=if(inblock('工程建筑'),"991002$open",if(inblock('电力'),"991003$open",if(inblock('计算机'),"991004$open",
if(inblock('电子信息'),"991006$open",if(inblock('房地产'),"991007$open",if(inblock('纺织服装'),"991008$open",
if(inblock('钢铁'),"991009$open",if(inblock('供水供气'),"991010$open",if(inblock('化工化纤'),"991011$open",
if(inblock('电器'),"991014$open",if(inblock('交通设施'),"991016$open",if(inblock('银行类'),"991017$open",
if(inblock('旅游酒店'),"991018$open",if(inblock('煤炭石油'),"991019$open",if(inblock('酿酒食品'),"991020$open",
if(inblock('农林牧渔'),"991021$open",if(inblock('商业连锁'),"991023$open",if(inblock('建材'),"991024$open",
if(inblock('其他行业'),"991025$open",if(inblock('汽车类'),"991026$open",if(inblock('机械'),"991027$open",
if(inblock('医药'),"991028$open",if(inblock('外贸'),"991031$open",if(inblock('教育传媒'),"991032$open",
if(inblock('仪电仪表'),"991033$open",if(inblock('有色金属'),"991034$open",if(inblock('造纸印刷'),"991035$open",
if(inblock('券商'),"991036$open",if(inblock('电力设备'),"991037$open",if(inblock('通信'),"991135$open",
if(inblock('运输物流'),"991136$open",if(inblock('保险'),"991255$open",0))))))))))))))))))))))))))))))));
zsh:=if(inblock('工程建筑'),"991002$high",if(inblock('电力'),"991003$high",if(inblock('计算机'),"991004$high",
if(inblock('电子信息'),"991006$high",if(inblock('房地产'),"991007$high",if(inblock('纺织服装'),"991008$high",
if(inblock('钢铁'),"991009$high",if(inblock('供水供气'),"991010$high",if(inblock('化工化纤'),"991011$high",
if(inblock('电器'),"991014$high",if(inblock('交通设施'),"991016$high",if(inblock('银行类'),"991017$high",
if(inblock('旅游酒店'),"991018$high",if(inblock('煤炭石油'),"991019$high",if(inblock('酿酒食品'),"991020$high",
if(inblock('农林牧渔'),"991021$high",if(inblock('商业连锁'),"991023$high",if(inblock('建材'),"991024$high",
if(inblock('其他行业'),"991025$high",if(inblock('汽车类'),"991026$high",if(inblock('机械'),"991027$high",
if(inblock('医药'),"991028$high",if(inblock('外贸'),"991031$high",if(inblock('教育传媒'),"991032$high",
if(inblock('仪电仪表'),"991033$high",if(inblock('有色金属'),"991034$high",if(inblock('造纸印刷'),"991035$high",
if(inblock('券商'),"991036$high",if(inblock('电力设备'),"991037$high",if(inblock('通信'),"991135$high",
if(inblock('运输物流'),"991136$high",if(inblock('保险'),"991255$high",0))))))))))))))))))))))))))))))));
zsl:=if(inblock('工程建筑'),"991002$low",if(inblock('电力'),"991003$low",if(inblock('计算机'),"991004$low",
if(inblock('电子信息'),"991006$low",if(inblock('房地产'),"991007$low",if(inblock('纺织服装'),"991008$low",
if(inblock('钢铁'),"991009$low",if(inblock('供水供气'),"991010$low",if(inblock('化工化纤'),"991011$low",
if(inblock('电器'),"991014$low",if(inblock('交通设施'),"991016$low",if(inblock('银行类'),"991017$low",
if(inblock('旅游酒店'),"991018$low",if(inblock('煤炭石油'),"991019$low",if(inblock('酿酒食品'),"991020$low",
if(inblock('农林牧渔'),"991021$low",if(inblock('商业连锁'),"991023$low",if(inblock('建材'),"991024$low",
if(inblock('其他行业'),"991025$low",if(inblock('汽车类'),"991026$low",if(inblock('机械'),"991027$low",
if(inblock('医药'),"991028$low",if(inblock('外贸'),"991031$low",if(inblock('教育传媒'),"991032$low",
if(inblock('仪电仪表'),"991033$low",if(inblock('有色金属'),"991034$low",if(inblock('造纸印刷'),"991035$low",
if(inblock('券商'),"991036$low",if(inblock('电力设备'),"991037$low",if(inblock('通信'),"991135$low",
if(inblock('运输物流'),"991136$low",if(inblock('保险'),"991255$low",0))))))))))))))))))))))))))))))));
板块:=ifs(inblock('工程建筑'),'工程建筑',ifs(inblock('电力'),'电力',ifs(inblock('计算机'),'计算机',ifs(inblock('电子信息'),'电子信息',
ifs(inblock('房地产'),'房地产',ifs(inblock('纺织服装'),'纺织服装',ifs(inblock('钢铁'),'钢铁',ifs(inblock('供水供气'),'供水供气',
ifs(inblock('化工化纤'),'化工化纤',ifs(inblock('电器'),'电器',ifs(inblock('交通设施'),'交通设施',ifs(inblock('银行类'),'银行类',
ifs(inblock('旅游酒店'),'旅游酒店',ifs(inblock('煤炭石油'),'煤炭石油',ifs(inblock('酿酒食品'),'酿酒食品',ifs(inblock('农林牧渔'),'农林牧渔',
ifs(inblock('商业连锁'),'商业连锁',ifs(inblock('建材'),'建材',ifs(inblock('其他行业'),'其他行业',ifs(inblock('汽车类'),'汽车类',
ifs(inblock('机械'),'机械',ifs(inblock('医药'),'医药',ifs(inblock('外贸'),'外贸',ifs(inblock('教育传媒'),'教育传媒',ifs(inblock('仪电仪表'),'仪电仪表',
ifs(inblock('有色金属'),'有色金属',ifs(inblock('造纸印刷'),'造纸印刷',ifs(inblock('券商'),'券商',ifs(inblock('电力设备'),'电力设备',
ifs(inblock('通信'),'通信',ifs(inblock('运输物流'),'运输物流',ifs(inblock('保险'),'保险',''))))))))))))))))))))))))))))))));
{drawtextabs(10,5,'所属: '+板块+'指数'),coloryellow;}
drawtextabs(10,5,''+板块+''),coloryellow,linethick3;
收盘:zsc,linethick0,colorffffff,precis2;{好公式网www.goodgongshi.com}
开盘:zso,linethick0,color00ffff,precis2;
最高:zsh,linethick0,color0000ff,precis2;
最低:zsl,linethick0,color00ff00,precis2;
涨跌:收盘-ref(收盘,1),linethick0,precis2,colorffff00;
涨幅:sum(收盘/ref(收盘,1)*100-100,1),linethick0,precis2,colorff00ff;
ma5:ma(收盘,5),colorffffff,precis2;
ma10:ma(收盘,10),color00ffff,precis2;
ma20:ma(收盘,20),colorff00ff,precis2;
stickline(zsc>=zso,zso,zsc,7,1),colorred;
stickline(zso>zsc,zsc,zso,7,0),colorgreen;
stickline(zsc>=zso,zsc,zsh,0,1 ),colorred;
stickline(zsc>=zso,zso,zsl,0,1),colorred;
stickline(zso>zsc,zsc,zsl,0,0),colorgreen;
stickline(zso>zsc,zso,zsh,0,0),colorgreen;
mtm:=收盘-ref(收盘,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
买:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
drawtext(filter(买=1,5),最低,'反转'),colorffde00;
卖:=if(hhv(dx,2)=hhv(dx,7) and count(dx>0,2) and cross(ma(dx,3.618),dx),1,0);
drawtext(filter(卖=1,5),最高,'减仓'),colorffde00;
上一指标公式:自用效果不错见顶信号出点准备公式下载
下一指标公式:选取连续四天放量上涨股票的公式下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文个股K线同步对比板块公式下载仅供学习研究。