当前位置:→ 股海网大智慧公式 → 正文
  • 板块同步个股K线指标

  • 相关简介:板块同步个股K线指标 能力实在有限,也写不出什么好指标,在网上搜寻过N个指标再测试,结果都不是很满意。以前发过一个大盘同步个股的指标,我看了下没什么人喜欢,哎,你懂就懂了,不懂就算了。还是要说明下的,你买的个股还是需要了解下它相对大盘,相对板块处在什么位置,比之强度如何。不说了自己研究。 源码 {板块K线} ZSC:=IF(INBLOCK('工程建筑'),991002$CLOSE,IF(INBLOCK('电力'),991003$CLOSE,IF(INBLOCK('计算机'),991004$CLO

  • 文章来源:股海网作者:股海网发布时间:2016-07-02浏览次数:下载次数:0

板块同步个股K线指标

能力实在有限,也写不出什么好指标,在网上搜寻过N个指标再测试,结果都不是很满意。以前发过一个大盘同步个股的指标,我看了下没什么人喜欢,哎,你懂就懂了,不懂就算了。还是要说明下的,你买的个股还是需要了解下它相对大盘,相对板块处在什么位置,比之强度如何。不说了自己研究。

源码

{板块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;
开盘: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;

板块同步个股K线指标

 ☟问题反馈 ☞┄┄┄┄┄┄┄┄┄┄→收藏资源:

板块同步个股K线指标

  • 下载资源所需积分

    0

  • 当前拥有积分

    0

上传会员: 
股海网
文件大小: 
Bytes
上传时间: 
2016-07-02
下载积分: 
-
免责声明: 
请仔细阅读并同意后才能下载
本附件为用户分享上传,股海网没有对文件进行验证,不能保证下载资源的准确性、安全性和完整性,也不保证下载资源能正常安装和使用,且下载后扣除的积分无法退还,除非您充分理解并完全接受本声明,否则您无权下载。
本站对提供下载的软件、指标、资料等不拥有任何权利,其版权归该下载资源的合法拥有者所有。本附件仅供学习和研究使用,不得用于商业或者非法用途,如有侵犯您的版权, 请参看 《股海网侵权处理流程》《股海网免责声明条款》
点击下载无反应时,更换主流浏览器重新登录操作,如360浏览器、Edge浏览器、谷歌浏览器,个别浏览器有不兼容现象。
勾选以下表示您已经阅读并同意以上声明才能下载本文件,扣除积分无法退还!
我已阅读所有条款规定, 请点我同意 所有条款内容!我自愿下载!
提示:如下载失败,请点关闭刷新此页面或提交问题反馈给管理员→
关闭

关于我们 - 联系我们 - 隐私政策 - 免责声明 - 下载帮助 - 广告合作 - SiteMap - TOP
增值电信业务经营ICP许可证:湘B2-20210269 湘ICP备09016573号-10 湘公网安备43108102000040号
Copyright © 2021 铭网科技,All Rights Reserved.