当前位置:→ 公式网 > 大智慧公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是能量对比分析——捕捉龙头股的最佳良方(无源码的请下载附件导入)

本公式有3条线:个股能量线(红色)、大盘能量线(黄色)和行业能量线(绿色),如果行业线在大盘线之上,且能量线上穿行业线或大盘线时为买入点;如果配合公式的买点信号(白色),便得到捕捉龙头股的最佳点!!(见附图1-4)
本人理想币太少,望坛友多给加分,拜托了!!
公式源码如下:
 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. INPUT:N(70,1,999),M(5,1,120);   
  2. ZSC:=IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",   
  3. IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",   
  4. IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",   
  5. IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",   
  6. IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",   
  7. IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",   
  8. IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('汽车类'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",   
  9. IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",   
  10. IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",   
  11. IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",   
  12. IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));   
  13.   
  14. ZSH:=IF(INBLOCK('工程建筑'),"991002$HIGH",IF(INBLOCK('电力'),"991003$HIGH",IF(INBLOCK('计算机'),"991004$HIGH",   
  15. IF(INBLOCK('电子信息'),"991006$HIGH",IF(INBLOCK('房地产'),"991007$HIGH",IF(INBLOCK('纺织服装'),"991008$HIGH",   
  16. IF(INBLOCK('钢铁'),"991009$HIGH",IF(INBLOCK('供水供气'),"991010$HIGH",IF(INBLOCK('化工化纤'),"991011$HIGH",   
  17. IF(INBLOCK('电器'),"991014$HIGH",IF(INBLOCK('交通设施'),"991016$HIGH",IF(INBLOCK('银行类'),"991017$HIGH",   
  18. IF(INBLOCK('旅游酒店'),"991018$HIGH",IF(INBLOCK('煤炭石油'),"991019$HIGH",IF(INBLOCK('酿酒食品'),"991020$HIGH",   
  19. IF(INBLOCK('农林牧渔'),"991021$HIGH",IF(INBLOCK('商业连锁'),"991023$HIGH",IF(INBLOCK('建材'),"991024$HIGH",   
  20. IF(INBLOCK('其他行业'),"991025$HIGH",IF(INBLOCK('汽车类'),"991026$HIGH",IF(INBLOCK('机械'),"991027$HIGH",   
  21. IF(INBLOCK('医药'),"991028$HIGH",IF(INBLOCK('外贸'),"991031$HIGH",IF(INBLOCK('教育传媒'),"991032$HIGH",   
  22. IF(INBLOCK('仪电仪表'),"991033$HIGH",IF(INBLOCK('有色金属'),"991034$HIGH",IF(INBLOCK('造纸印刷'),"991035$HIGH",   
  23. IF(INBLOCK('券商'),"991036$HIGH",IF(INBLOCK('电力设备'),"991037$HIGH",IF(INBLOCK('通信'),"991135$HIGH",   
  24. IF(INBLOCK('运输物流'),"991136$HIGH",IF(INBLOCK('保险'),"991255$HIGH",0))))))))))))))))))))))))))))))));   
  25.   
  26. ZSL:=IF(INBLOCK('工程建筑'),"991002$LOW",IF(INBLOCK('电力'),"991003$LOW",IF(INBLOCK('计算机'),"991004$LOW",   
  27. IF(INBLOCK('电子信息'),"991006$LOW",IF(INBLOCK('房地产'),"991007$LOW",IF(INBLOCK('纺织服装'),"991008$LOW",   
  28. IF(INBLOCK('钢铁'),"991009$LOW",IF(INBLOCK('供水供气'),"991010$LOW",IF(INBLOCK('化工化纤'),"991011$LOW",   
  29. IF(INBLOCK('电器'),"991014$LOW",IF(INBLOCK('交通设施'),"991016$LOW",IF(INBLOCK('银行类'),"991017$LOW",   
  30. IF(INBLOCK('旅游酒店'),"991018$LOW",IF(INBLOCK('煤炭石油'),"991019$LOW",IF(INBLOCK('酿酒食品'),"991020$LOW",   
  31. IF(INBLOCK('农林牧渔'),"991021$LOW",IF(INBLOCK('商业连锁'),"991023$LOW",IF(INBLOCK('建材'),"991024$LOW",   
  32. IF(INBLOCK('其他行业'),"991025$LOW",IF(INBLOCK('汽车类'),"991026$LOW",IF(INBLOCK('机械'),"991027$LOW",   
  33. IF(INBLOCK('医药'),"991028$LOW",IF(INBLOCK('外贸'),"991031$LOW",IF(INBLOCK('教育传媒'),"991032$LOW",   
  34. IF(INBLOCK('仪电仪表'),"991033$LOW",IF(INBLOCK('有色金属'),"991034$LOW",IF(INBLOCK('造纸印刷'),"991035$LOW",   
  35. IF(INBLOCK('券商'),"991036$LOW",IF(INBLOCK('电力设备'),"991037$LOW",IF(INBLOCK('通信'),"991135$LOW",   
  36. IF(INBLOCK('运输物流'),"991136$LOW",IF(INBLOCK('保险'),"991255$LOW",0))))))))))))))))))))))))))))))));   
  37.   
  38.   
  39. Var12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;   
  40. 能量线:SMA(Var12,3,1)*(-1)+100,colorRED,linethick2;   
  41. KNX:=SMA(Var12,3,1);   
  42. MK:=MA(KNX,M);   
  43. 买点:IF(KNX>N AND CROSS(MK , KNX),50,0),COLORWHITE,LINETHICK1;   
  44.   
  45. Var13:=(HHV(ZSH,34)-ZSC)/(HHV(ZSH,34)-LLV(ZSL,34))*100;   
  46. 行业线:SMA(Var13,3,1)*(-1)+100,colorgreen,linethick1;   
  47.   
  48. Var11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100;   
  49. 大盘线:SMA(Var11,3,1)*(-1)+100,colorYELLOW,linethick1;   
  50.   
  51. 板块:=IFS(INBLOCK('工程建筑'),'工程建筑',IFS(INBLOCK('电力'),'电力',IFS(INBLOCK('计算机'),'计算机',IFS(INBLOCK('电子信息'),'电子信息',   
  52. IFS(INBLOCK('房地产'),'房地产',IFS(INBLOCK('纺织服装'),'纺织服装',IFS(INBLOCK('钢铁'),'钢铁',IFS(INBLOCK('供水供气'),'供水供气',   
  53. IFS(INBLOCK('化工化纤'),'化工化纤',IFS(INBLOCK('电器'),'电器',IFS(INBLOCK('交通设施'),'交通设施',IFS(INBLOCK('银行类'),'银行类',   
  54. IFS(INBLOCK('旅游酒店'),'旅游酒店',IFS(INBLOCK('煤炭石油'),'煤炭石油',IFS(INBLOCK('酿酒食品'),'酿酒食品',IFS(INBLOCK('农林牧渔'),'农林牧渔',   
  55. IFS(INBLOCK('商业连锁'),'商业连锁',IFS(INBLOCK('建材'),'建材',IFS(INBLOCK('其他行业'),'其他行业',IFS(INBLOCK('汽车类'),'汽车类',   
  56. IFS(INBLOCK('机械'),'机械',IFS(INBLOCK('医药'),'医药',IFS(INBLOCK('外贸'),'外贸',IFS(INBLOCK('教育传媒'),'教育传媒',IFS(INBLOCK('仪电仪表'),'仪电仪表',   
  57. IFS(INBLOCK('有色金属'),'有色金属',IFS(INBLOCK('造纸印刷'),'造纸印刷',IFS(INBLOCK('券商'),'券商',IFS(INBLOCK('电力设备'),'电力设备',   
  58. IFS(INBLOCK('通信'),'通信',IFS(INBLOCK('运输物流'),'运输物流',IFS(INBLOCK('保险'),'保险',''))))))))))))))))))))))))))))))));   
  59. DRAWTEXTABS(10,5,'所属: '+板块+'指数'),COLORYELLOW;   

2.jpg



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识