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

[通达信指标/源码] 抄底逆转公式源码[通达信公式]

[通达信指标/源码] 抄底逆转公式源码[通达信公式]

  1. DRAWGBK(O>C,RGB(48,41,124),RGB(0,0,0),0,'1',0);
  2. VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
  3. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
  4. XG:=(FILTER((VAR4AA>90),45)),COLORYELLOW;
  5. STICKLINE(XG,150,0,4,0),COLOR000099;
  6. STICKLINE(XG,150,0,2,0),COLOR0000BB;
  7. STICKLINE(XG,150,0,1,0),COLOR0000DD;
  8. STICKLINE(XG,150,0,0.9,0),COLOR0000FF;
  9. DRAWTEXT(XG>0,130,'SI起暴点'),COLOR00C5FF;
  10. DIFF :=( EMA(CLOSE,12) - EMA(CLOSE,26))*100;
  11. DEA :=EMA(DIFF,9);
  12. MACD :=2*(DIFF-DEA);
  13. 抄底1:=ABS((CROSS("MACD.DIF","MACD.DEA")
  14. &&"MACD.DEA"<=-0.07)*"MACD.DIF")*1.09,COLORLIMAGENTA,LINETHICK2;
  15. STICKLINE(抄底1,0,50,4,0),COLOR770077;
  16. STICKLINE(抄底1,0,50,3,0),COLOR990099;
  17. STICKLINE(抄底1,0,50,2,0),COLORBB00BB;
  18. STICKLINE(抄底1,0,50,1,0),COLORDD00DD;
  19. STICKLINE(抄底1,0,50,0.3,0),COLORFF00FF;
  20. DRAWTEXT(抄底1>0,38,'超级拐点'),COLOR00C5FF;
  21. 反向钟摆线:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,20);
  22. DK:=CROSS(-5,反向钟摆线);
  23. STICKLINE(DK,0,50,4,0),COLOR770077;
  24. STICKLINE(DK,0,50,3,0),COLOR990099;
  25. STICKLINE(DK,0,50,2,0),COLORBB00BB;
  26. STICKLINE(DK,0,50,1,0),COLORDD00DD;
  27. STICKLINE(DK,0,50,0.3,0),COLORFF00FF;
  28. DRAWTEXT(DK>0,48,'终极低点'),COLOR00C5FF;
  29. VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
  30. VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
  31. VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
  32. VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);
  33. VAR6:=MA(VAR5,3);
  34. VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));
  35. VAR8:=(((CLOSE - VAR7) / VAR7) * 100);
  36. VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));
  37. VARD:=REF(CLOSE,1);
  38. VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);
  39. VARF:=(((HIGH + LOW) + CLOSE) / 3);
  40. VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));
  41. VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));
  42. VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));
  43. VAR13:=(VAR11 AND VAR12);
  44. VAR14:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 10))) AND (VAR3 <= (0 - 15))) AND (VAR4 <= (0 - 20)));
  45. VAR15:=(COUNT(VAR14,1) >= 1);
  46. VAR16:=(VAR13 AND VAR15);
  47. VAR17:=1;
  48. VAR18:=(CLOSE * VOL);
  49. VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);
  50. VAR1A:=(1 * VAR19);
  51. VAR1B:=(VAR19 * 0.92);
  52. VAR1C:=EMA(CLOSE,34);
  53. VAR1D:=MA((VAR1C * 1.12),5);
  54. VAR1E:=MA((VAR1C * 0.82),5);
  55. VAR1F:=(CLOSE < VAR1E);
  56. VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));
  57. VAR21:=HHV(HIGH,500);
  58. VAR22:=LLV(LOW,500);
  59. VAR23:=HHV(HIGH,250);
  60. VAR24:=LLV(LOW,250);
  61. VAR25:=HHV(HIGH,125);
  62. VAR26:=LLV(LOW,125);
  63. VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);
  64. VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);
  65. VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);
  66. VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);
  67. VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);
  68. VAR2C:=VAR27;
  69. VAR2D:=VAR28;
  70. VAR2E:=VAR29;
  71. VAR2F:=VAR2A;
  72. VAR30:=VAR2B;
  73. VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));
  74. VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);
  75. VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);
  76. VAR37:=EMA(VAR35,10);
  77. VAR38:=EMA(VAR36,10);
  78. VAR39:=EMA(VAR37,10);
  79. VAR3A:=EMA(VAR38,20);
  80. VAR3B:=EMA(VAR37,3);
  81. VAR3C:=EMA(VAR39,6);
  82. VAR3D:=EMA(VAR3A,2);
  83. VAR3E:=(VAR3C - VAR3D);
  84. VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));
  85. VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);
  86. VAR41:=VAR40;
  87. VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);
  88. VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);
  89. VAR44:=(CLOSE - REF(MA(CLOSE,20),11));
  90. VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));
  91. VAR4B:=(((HIGH + LOW) + CLOSE) / 3);
  92. VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));
  93. VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));
  94. VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));
  95. VAR4F:=(VAR11 AND VAR12);
  96. VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));
  97. VAR51:=(COUNT(VAR50,1) >= 1);
  98. VAR52:=(VAR4F AND VAR51);
  99. VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);
  100. VAR5B:=((((((VAR2 >= (0 - 15.8)) AND (VAR2 <= (0 - 12.2))) AND (VAR3 <= (0 - 20.8))) AND (VAR4 <= (0 - 27.5))) AND (VARE <= 11.7)) AND (VAR4C <= (0 - 145)));
  101. VAR5C:=9.999999884842E+0.26;
  102. VAR5D:=(COST(10) * 0);
  103. VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));
  104. VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);
  105. VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));
  106. VAR61:=MA(CLOSE,3);
  107. VAR62:=(REF(CLOSE,2) * 0.865);
  108. VAR63:=(REF(CLOSE,13) * 0.772);
  109. VAR64:=MIN(VAR62,VAR63);
  110. VAR65:=((100 * VOL) / CAPITAL);
  111. 抄底:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),80,0),LINETHICK4,COLORRED;
  112. DRAWTEXT(抄底>0,抄底,'宁波游资买点'),COLOR00C5FF;
  113. 小V逆转:=REF(C,1)<REF(O,1) AND O>REF(C,1) AND C>=REF(C,1)*1.08;
  114. STICKLINE(小V逆转,20,0,4,0),COLOR000099;
  115. STICKLINE(小V逆转,30,0,2,0),COLOR0000BB;
  116. STICKLINE(小V逆转,40,0,1,0),COLOR0000DD;
  117. STICKLINE(小V逆转,60,0,0.9,0),COLOR0000FF;
  118. DRAWICON(小V逆转,60,34);
  119. DRAWTEXT(小V逆转>0,30,'小V逆转'),COLOR00C5FF;
复制代码

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

201212012011408343.png
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

返回列表