: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[通达信指标/源码] 九转序列公式源码[通达信公式]

[通达信指标/源码] 九转序列公式源码[通达信公式]

  1. 流通市值:FINANCE(40)/100000000,NODRAW;
  2. MA5角度:ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*180/3.142,NODRAW,COLORRED;
  3. 循环年位置:(CLOSE-LLV(CLOSE,225))/(HHV(CLOSE,225)-LLV(CLOSE,225))*100,NODRAW,COLORGREEN;
  4. XA_1:=AMOUNT/VOL/100;
  5. XA_2:=CLOSE>OPEN AND REF(CLOSE,1)>XA_1 AND CLOSE>XA_1 AND CLOSE<300;
  6. STICKLINE(XA_2,OPEN,CLOSE,1,0),COLORLICYAN;
  7. XA_3:=OPEN>CLOSE AND CLOSE<XA_1 AND XA_1>REF(CLOSE,1);
  8. STICKLINE(XA_3,OPEN,CLOSE,1,0),COLORRED;
  9. XA_4:=VOL>REF(VOL,1)*0.95 AND VOL<REF(VOL,1)*1.05;
  10. XA_5:=WINNER(CLOSE)-WINNER(OPEN)>=0.2 AND XA_4;
  11. STICKLINE(XA_5,OPEN,CLOSE,1,0),COLORBLUE;
  12. XA_6:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
  13. XA_7:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND XA_6>=4.945;
  14. XA_8:=NAMELIKE(1) OR NAMELIKE(2) OR NAMELIKE(3) AND XA_6<=(-4.945);
  15. 涨停价:IF(XA_7,REF(CLOSE,1)*1.05,REF(CLOSE,1)*1.1),NODRAW,COLORRED;
  16. 跌停价:IF(XA_8,REF(CLOSE,1)*0.95,REF(CLOSE,1)*0.9),NODRAW,COLORGREEN;
  17. XA_9:=REF(CLOSE,1);
  18. XA_10:=CLOSE=ZTPRICE(REF(CLOSE,1),0.1);
  19. STICKLINE(XA_10,OPEN,CLOSE,2,0),COLORMAGENTA;
  20. STICKLINE(XA_10,OPEN,CLOSE,1,0),COLORMAGENTA;
  21. XA_11:=CLOSE=DTPRICE(REF(CLOSE,1),0.1);
  22. STICKLINE(XA_11,OPEN,CLOSE,2,0),COLORGREEN;
  23. STICKLINE(XA_11,HIGH,LOW,0,1),COLORGREEN;
  24. XA_12:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5);
  25. XA_13:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3) AND REFX(CLOSE,8)<REFX(CLOSE,4);
  26. XA_14:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6);
  27. XA_15:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2) AND REFX(CLOSE,7)<REFX(CLOSE,3);
  28. XA_16:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7);
  29. XA_17:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1) AND REFX(CLOSE,6)<REFX(CLOSE,2);
  30. XA_18:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8);
  31. XA_19:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE AND REFX(CLOSE,5)<REFX(CLOSE,1);
  32. XA_20:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9);
  33. XA_21:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1) AND REFX(CLOSE,4)<CLOSE;
  34. XA_22:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10);
  35. XA_23:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2) AND REFX(CLOSE,3)<REF(CLOSE,1);
  36. XA_24:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11);
  37. XA_25:=REFX(CLOSE,1)<REF(CLOSE,3) AND REFX(CLOSE,2)<REF(CLOSE,2);
  38. XA_26:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12);
  39. XA_27:=REFX(CLOSE,1)<REF(CLOSE,3);
  40. XA_28:=CLOSE<REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12) AND REF(CLOSE,9)>REF(CLOSE,13);
  41. XA_29:=IF(PERIOD<4,LOW*(1-(PERIOD+1)/10*0.01),LOW*0.98);
  42. XA_30:=IF(PERIOD<4,HIGH*(1+(PERIOD+1)/10*0.01),HIGH*1.05);
  43. XA_31:=CURRBARSCOUNT-1;
  44. DRAWNUMBER(XA_12 AND (XA_13 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25) OR (XA_31=3 AND XA_23) OR (XA_31=4 AND XA_21) OR (XA_31=5 AND XA_19) OR (XA_31=6 AND XA_17) OR (XA_31=7 AND XA_15)),XA_29,1),COLORMAGENTA;
  45. DRAWNUMBER(XA_14 AND (XA_15 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25) OR (XA_31=3 AND XA_23) OR (XA_31=4 AND XA_21) OR (XA_31=5 AND XA_19) OR (XA_31=6 AND XA_17)),XA_29,2),COLORMAGENTA;
  46. DRAWNUMBER(XA_16 AND (XA_17 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25) OR (XA_31=3 AND XA_23) OR (XA_31=4 AND XA_21) OR (XA_31=5 AND XA_19)),XA_29,3),COLORMAGENTA;
  47. DRAWNUMBER(XA_18 AND (XA_19 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25) OR (XA_31=3 AND XA_23) OR (XA_31=4 AND XA_21)),XA_29,4),COLORMAGENTA;
  48. DRAWNUMBER(XA_20 AND (XA_21 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25) OR (XA_31=3 AND XA_23)),XA_29,5),COLORMAGENTA;
  49. DRAWNUMBER(XA_22 AND (XA_23 OR XA_31=0 OR (XA_31=1 AND XA_27) OR (XA_31=2 AND XA_25)),XA_29,6),COLORMAGENTA;
  50. DRAWNUMBER(XA_24 AND (XA_25 OR XA_31=0 OR (XA_31=1 AND XA_27)),XA_29,7),COLORMAGENTA;
  51. DRAWNUMBER(XA_26 AND (XA_27 OR XA_31<1),XA_29,8),COLORMAGENTA;
  52. DRAWNUMBER(XA_28,XA_29,9),COLORGREEN;
  53. XA_32:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)<REF(CLOSE,5);
  54. XA_33:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3) AND REFX(CLOSE,8)>REFX(CLOSE,4);
  55. XA_34:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)<REF(CLOSE,6);
  56. XA_35:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2) AND REFX(CLOSE,7)>REFX(CLOSE,3);
  57. XA_36:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)<REF(CLOSE,7);
  58. XA_37:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1) AND REFX(CLOSE,6)>REFX(CLOSE,2);
  59. XA_38:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)<REF(CLOSE,8);
  60. XA_39:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE AND REFX(CLOSE,5)>REFX(CLOSE,1);
  61. XA_40:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)<REF(CLOSE,9);
  62. XA_41:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1) AND REFX(CLOSE,4)>CLOSE;
  63. XA_42:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)<REF(CLOSE,10);
  64. XA_43:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2) AND REFX(CLOSE,3)>REF(CLOSE,1);
  65. XA_44:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)<REF(CLOSE,11);
  66. XA_45:=REFX(CLOSE,1)>REF(CLOSE,3) AND REFX(CLOSE,2)>REF(CLOSE,2);
  67. XA_46:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)<REF(CLOSE,12);
  68. XA_47:=REFX(CLOSE,1)>REF(CLOSE,3);
  69. XA_48:=CLOSE>REF(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,5) AND REF(CLOSE,2)>REF(CLOSE,6) AND REF(CLOSE,3)>REF(CLOSE,7) AND REF(CLOSE,4)>REF(CLOSE,8) AND REF(CLOSE,5)>REF(CLOSE,9) AND REF(CLOSE,6)>REF(CLOSE,10) AND REF(CLOSE,7)>REF(CLOSE,11) AND REF(CLOSE,8)>REF(CLOSE,12) AND REF(CLOSE,9)<REF(CLOSE,13);
  70. DRAWNUMBER(XA_32 AND (XA_33 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45) OR (XA_31=3 AND XA_43) OR (XA_31=4 AND XA_41) OR (XA_31=5 AND XA_39) OR (XA_31=6 AND XA_37) OR (XA_31=7 AND XA_35)),XA_30,1),COLORMAGENTA;
  71. DRAWNUMBER(XA_34 AND (XA_35 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45) OR (XA_31=3 AND XA_43) OR (XA_31=4 AND XA_41) OR (XA_31=5 AND XA_39) OR (XA_31=6 AND XA_37)),XA_30,2),COLORMAGENTA;
  72. DRAWNUMBER(XA_36 AND (XA_37 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45) OR (XA_31=3 AND XA_43) OR (XA_31=4 AND XA_41) OR (XA_31=5 AND XA_39)),XA_30,3),COLORMAGENTA;
  73. DRAWNUMBER(XA_38 AND (XA_39 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45) OR (XA_31=3 AND XA_43) OR (XA_31=4 AND XA_41)),XA_30,4),COLORMAGENTA;
  74. DRAWNUMBER(XA_40 AND (XA_41 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45) OR (XA_31=3 AND XA_43)),XA_30,5),COLORMAGENTA;
  75. DRAWNUMBER(XA_42 AND (XA_43 OR XA_31=0 OR (XA_31=1 AND XA_47) OR (XA_31=2 AND XA_45)),XA_30,6),COLORMAGENTA;
  76. DRAWNUMBER(XA_44 AND (XA_45 OR XA_31=0 OR (XA_31=1 AND XA_47)),XA_30,7),COLORMAGENTA;
  77. DRAWNUMBER(XA_46 AND (XA_47 OR XA_31<1),XA_30,8),COLORMAGENTA;
  78. DRAWNUMBER(XA_48,XA_30,9),COLORGREEN;
  79. XA_49:=CONST(HHV(REF(HIGH,1),240));
  80. XA_50:=CONST(LLV(REF(LOW,1),240));
  81. XA_51:=XA_49-XA_50;
  82. XA_52:=LOW-XA_51*0.03;
  83. XA_53:=HIGH+XA_51*0.03;
  84. XA_54:=CLOSE>500;
  85. XA_55:=MAX(CLOSE,OPEN);
  86. XA_56:=MIN(CLOSE,OPEN);
  87. XA_57:=0;
  88. XA_58:=1;
  89. XA_59:=IF(XA_54,HIGH,XA_55);
  90. XA_60:=IF(XA_54,LOW,XA_56);
  91. XA_61:=IF(CLOSE>OPEN,IF(XA_58=0,LOW,XA_60),IF(XA_58=0,HIGH,XA_59));
  92. XA_62:=2/1000;
  93. XA_63:=CURRBARSCOUNT;
  94. XA_64:=120;
  95. XA_65:=XA_63<=XA_64;
  96. XA_66:=LOW;
  97. XA_67:=IF(XA_57=0,XA_66,REF(XA_57,XA_57));
  98. 基准价:IF(XA_65,CONST(XA_67),DRAWNULL),DOTLINE,COLORRED;
  99. XA_68:=基准价;
  100. XA_69:=XA_68*XA_62;
  101. XA_70:=ABS(LOW-XA_68)<=XA_69;
  102. XA_71:=ABS(OPEN-XA_68)<=XA_69;
  103. XA_72:=ABS(CLOSE-XA_68)<=XA_69;
  104. XA_73:=ABS(HIGH-XA_68)<=XA_69;
  105. XA_74:=XA_70 OR XA_71 OR XA_72 OR XA_73 AND XA_65 AND XA_63!=1;
  106. XA_75:=COUNT(XA_74,XA_64);
  107. 精准点个数:IF(XA_75>0,XA_75+1,0),NODRAW,COLORRED;
复制代码

001.png

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

返回列表