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

[通达信指标/源码] [转载]绝对准确的波段买卖公式指标_万法归一波段王

[通达信指标/源码] [转载]绝对准确的波段买卖公式指标_万法归一波段王

N 1 10 3
N2 1 10 6
N3 -50 10 -23
N4 50   100  75

  1. stickline(c>0,0,100,100,0),color8ba410;
  2. VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
  3. VAR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18))) * 100);
  4. VAR4:=SMA(VAR3,9,1);
  5. VAR5:=SMA(VAR4,3,1);
  6. J:((3 * VAR4) - (2 * VAR5));
  7. VAR6:=(J > (1 * REF(J,1)));
  8. VAR7:=LLVBARS(LOW,50);
  9. VAR8:=SUM(VOL,VAR7);
  10. VAR9:=HHVBARS(HIGH,50);
  11. VAR10:=SUM(VOL,VAR9);
  12. VAR11:=(((CLOSE - REF(OPEN,VAR9)) / REF(OPEN,VAR9)) * 100);
  13. VAR12:=((VAR10 / CAPITAL) * 100);
  14. VAR13:=(((CLOSE - REF(OPEN,VAR7)) / REF(OPEN,VAR7)) * 100);
  15. VAR14:=((VAR8 / CAPITAL) * 100);
  16. VAR15:=(MA(WINNER(CLOSE),N) * 100);
  17. VAR16:=EMA(VAR4,N);
  18. A2:EMA(VAR4,N),colorFFDDCC;
  19. A3:=EMA(A2,N);
  20. A4:=EMA(A3,N);
  21. A5:=EMA(A4,N);
  22. A6:=EMA(A5,N);
  23. A7:=EMA(A6,N);
  24. VAR17:=EMA(A7,N);
  25. VAR18:=EMA(VAR17,N);
  26. VAR19:=EMA(VAR18,N);
  27. AA:=EMA(A5,N2);
  28. 中期大底:LLV(J,AA),LINETHICK2,color0000FF;
  29. 上:=((ema((MA(HIGH,3) * 1.05),30) * 10) - AA);
  30. 下:=((ema((MA(LOW,3) * 0.96),30) * 2) / 中期大底);
  31. 上上:=ema((MA(HIGH,3) * 1.05),30);
  32. 电:=J;
  33. DRAWTEXT((CROSS(A4,AA) AND (VAR11 < N3)),AA,'●底'),color00FF00;
  34. DRAWTEXT((CROSS(A2,J) AND (A2 > N4)),(A2 + 4.04),'●峰'),colorff00FF;
  35. DRAWTEXT(((((CROSS(J,A2) AND VAR6) AND (A2 < 20)) AND (VAR2 > 9)) OR (((A2 > (1 * REF(A2,1))) AND (VAR2 > 4)) AND (A2 < 60))),A2,'●拉'),colorFFFFCC;
  36. stickline((J >= A2),A2,J,8,0),color0000FF;
  37. stickline((J <= A2),J,A2,8,0),color00FF00;
  38. 压力:HHV(J,60),color00FFFF;
  39. 支撑:=LLV(AA,13);
  40. STICKLINE((((J <= 中期大底) AND ((上上 - REF(上上,1)) > 0)) AND (CLOSE >= (OPEN * 0.99))),1,88,3,0),color00FF00;
  41. DRAWICON((((J <= 中期大底) AND ((上上 - REF(上上,1)) > 0)) AND (CLOSE >= (OPEN * 0.99))),88,0);
  42. DRAWTEXT((((J <= 中期大底) AND ((上上 - REF(上上,1)) > 0)) AND (CLOSE >= (OPEN * 0.99))),85,'-绝对底部');
  43. STICKLINE(FILTER((CROSS(上,中期大底) AND ((上上 - REF(上上,1)) >= 0)),3),中期大底,70,3,0),color0000FF;
  44. DRAWICON(FILTER((CROSS(上,中期大底) AND ((上上 - REF(上上,1)) >= 0)),3),70,0);
  45. DRAWTEXT(FILTER((CROSS(上,中期大底) AND ((上上 - REF(上上,1)) >= 0)),3),64,'-买了不输'),colorFFFFFF;
  46. STICKLINE((CROSS(上,下) AND (CLOSE >= OPEN)),中期大底,60,2,0),colorFF0000;
  47. DRAWICON((CROSS(上,下) AND (CLOSE >= OPEN)),60,0);
  48. DRAWTEXT((CROSS(上,下) AND (CLOSE >= OPEN)),55,'-短线');
  49. DRAWTEXT((((J >= 压力) AND ((压力 - REF(压力,6)) > 25)) AND (CLOSE < OPEN)),(压力 + 4.22),'●头部'),color00FF00;
  50. MA1:=MA(CLOSE,P1);
  51. MA2:=MA(CLOSE,P2);
  52. N15HIGH:=REF(HIGH,15);
  53. N1LOW:=REF(LOW,1);
  54. FF:=(((N15HIGH - N1LOW) / N1LOW) > 0.15);
  55. STICKLINE((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((N15HIGH - N1LOW) / N1LOW) < 0.15)) AND (LOW <= MA(CLOSE,P1))) AND (CLOSE >= MA(CLOSE,P1))) AND (CLOSE >= OPEN)),中期大底,60,0,1),LINETHICK3,color0000FF;
  56. DRAWICON((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((N15HIGH - N1LOW) / N1LOW) < 0.15)) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW <= MA(CLOSE,P1))) AND (CLOSE >= OPEN)),60,1);
  57. DRAWTEXT((((((CROSS(MA(CLOSE,P1),MA(CLOSE,P2)) > 0) AND (((N15HIGH - N1LOW) / N1LOW) < 0.15)) AND (CLOSE >= MA(CLOSE,P1))) AND (LOW <= MA(CLOSE,P1))) AND (CLOSE >= OPEN)),60,'★^回头望月'),colorFF0000;
  58. X:=(CLOSE - REF(MA(CLOSE,20),11));
  59. LGL:=IF((((((EMA(CLOSE,5) / EMA(EMA(CLOSE,9),16)) <= 0.85) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),50,0);
  60. WR1:=((0 - ((100 * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) - LLV(LOW,34)))) + (100 * X));
  61. WR2:=((0 - ((100 * (HHV(HIGH,50) - CLOSE)) / (HHV(HIGH,50) - LLV(LOW,50)))) + 100);
  62. WR3:=((0 - ((100 * (HHV(HIGH,70) - CLOSE)) / (HHV(HIGH,70) - LLV(LOW,70)))) + (100 * X));
  63. BIAS1:=(((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100) + 10) * 5);
  64. BIAS2:=(((((CLOSE - MA(CLOSE,50)) / MA(CLOSE,50)) * 100) + 10) * 5);
  65. BIAS3:=(((((CLOSE - MA(CLOSE,70)) / MA(CLOSE,70)) * 100) + 10) * 5);
  66. S1:=(((((((WR1 + WR2) + WR3) + BIAS1) + BIAS2) + BIAS3) / 6) * X);
  67. S2:=EMA(S1,3);
  68. S3:=ABS((BIAS1 - BIAS3));
  69. SX:=((S1 + S3) / 2);
  70. XC1:=(((0 - 1) * (EMA((100 * (1 - WINNER(CLOSE))),1) - 50)) + 50);
  71. CCC:=(XC1 + SX);
  72. ZJZ:=(IF(((LGL > 0) AND (CCC < 0)),200,0) * X);
  73. LXL:=IF((((((SX < 0) AND (CLOSE = LLV(CLOSE,5))) AND ((CLOSE / REF(CLOSE,1)) > 0.905)) AND ((CLOSE / REF(CLOSE,1)) < 1.05)) AND (((VOL / CAPITAL) * 100) < 5)),(0 - 50),0);
  74. JBJ:=(IF(((CCC < 0) AND (LXL = (0 - 50))),100,0) * X);
  75. MA3:=MA(CLOSE,3);
  76. C0:=(REF(CLOSE,2) * 0.865);
  77. C1:=(REF(CLOSE,13) * 0.772);
  78. BOT:=MIN(C0,C1);
  79. HSL:=(((100 * VOL) / CAPITAL) * X);
  80. MA13:=(MA(CLOSE,13) * X);
  81. CXC:=IF(((((CLOSE - BOT) / CLOSE) < (3 / 100)) AND ((SUM(HSL,5) / 5) < 1.8)),1,0);
  82. VMC:=IF(((CXC > 0) AND ((LXL < 0) OR (LGL > 0))),10,0);
  83. 满仓:IF((VMC > 0),60,中期大底),color0000FF;
  84. DRAWTEXT((满仓 >= 60),59,'-满仓'),color0000FF;
  85. 半仓:IF((((((ZJZ > 0) AND (JBJ > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR ((CXC > 0) AND ((REF(CLOSE,1) / REF(CLOSE,2)) > 0.902))) OR ((((((ZJZ > 0) AND (JBJ > 0)) AND ((SUM(((VOL / CAPITAL) * 100),5) / 5) < 1)) OR (CXC > 0)) AND ((LXL < 0) OR (LGL > 0))) AND (VMC < 10))),50,中期大底),colorCC99FF;
  86. DRAWTEXT((半仓 >= 50),49,'-半仓'),colorCC99FF;
  87. B0:=MA(CLOSE,3);
  88. B01:=MA(CLOSE,4);
  89. B1:=(((HIGH + LOW) + CLOSE) / 3);
  90. B2:=HHV(B1,15);
  91. B3:=LLV(B1,15);
  92. B4:=(B2 - B3);
  93. B5:(MA(((B1 - B3) / B4),2) * 100);
  94. B6:=HHV(B1,(4 * 15));
  95. B7:=LLV(B1,(4 * 15));
  96. B8:=(B6 - B7);
  97. B9:(MA(((B1 - B7) / B8),2) * 100);
  98. BA:=HHV(B1,(16 * 15));
  99. BB:=LLV(B1,(16 * 15));
  100. BC:=(BA - BB);
  101. BD:(MA(((B1 - BB) / BC),2) * 100);
  102. 顶线:98;
  103. 底线:1;
  104. STICKLINE((((CROSS(B5,底线) AND ((B0 - REF(B0,1)) > 0)) AND ((J - REF(J,1)) > 0)) AND (CLOSE >= OPEN)),中期大底,50,2,0),color0000FF;
  105. DRAWICON((((CROSS(B5,底线) AND ((B0 - REF(B0,1)) > 0)) AND ((J - REF(J,1)) > 0)) AND (CLOSE >= OPEN)),50,0);
  106. DRAWTEXT((((CROSS(B5,底线) AND ((B0 - REF(B0,1)) > 0)) AND ((J - REF(J,1)) > 0)) AND (CLOSE >= OPEN)),45,'-开花一'),colorCC99FF;
  107. STICKLINE(((CROSS(B5,底线) AND CROSS(B9,底线)) AND ((B01 - REF(B01,1)) > 0)),中期大底,64,2,0),color00FF00;
  108. DRAWICON(((CROSS(B5,底线) AND CROSS(B9,底线)) AND ((B01 - REF(B01,1)) > 0)),64,0);
  109. DRAWTEXT(((CROSS(B5,底线) AND CROSS(B9,底线)) AND ((B01 - REF(B01,1)) > 0)),58,'-开花二');
  110. DRAWTEXT((CROSS(98,B5) AND (CLOSE < (HIGH / 1.03))),98,'-出局'),color00FF00;
  111. DRAWICON((CROSS(98,B5) AND (CLOSE < (HIGH / 1.03))),98,7);
  112. STICKLINE(((CROSS(BD,1) AND ((上上 - REF(上上,1)) > 0)) AND ((B5 - REF(B5,2)) > 0)),1,80,3,0);
  113. DRAWICON(((CROSS(BD,1) AND ((上上 - REF(上上,1)) > 0)) AND ((B5 - REF(B5,2)) > 0)),80,0);
  114. DRAWTEXT(((CROSS(BD,1) AND ((上上 - REF(上上,1)) > 0)) AND ((B5 - REF(B5,2)) > 0)),73,'-开花三'),color00FFFF;
  115. STICKLINE(((((CROSS(J,AA) AND (A2 >= A3)) AND ((上上 - REF(上上,1)) > 0)) AND (CLOSE >= OPEN)) AND (A3 >= A4)),中期大底,60,2,0),colorFFFFFF;
  116. DRAWTEXT(((((CROSS(J,AA) AND (A2 >= A3)) AND ((上上 - REF(上上,1)) > 0)) AND (CLOSE >= OPEN)) AND (A3 >= A4)),60,'●买'),color00FFFF;
  117. 均线:=MA(CLOSE,5);
  118. DRAWICON(((CROSS(B5,A2) AND ((上上 - REF(上上,1)) > 0)) AND ((均线 - REF(均线,1)) > 0)),98,6);
  119. DRAWTEXT(((CROSS(B5,A2) AND ((上上 - REF(上上,1)) > 0)) AND ((均线 - REF(均线,1)) > 0)),98,' 关注'),color0000FF;
  120. VARW2:=((((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100) AND ((上上 - REF(上上,1)) > 0));
  121. VARW3:=((((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100) AND ((上上 - REF(上上,1)) > 0));
  122. VARW4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
  123. VARW5:=(((VARW2 + (2 * VARW3)) + (3 * VARW4)) / 6);
  124. VARW6:=MA(VARW5,3);
  125. 犀牛王:=((70 * VARW6) <= (0 - 8));
复制代码

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   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

返回列表