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

[通达信指标/源码] 平台横盘突破指标[通达信公式]

[通达信指标/源码] 平台横盘突破指标[通达信公式]

  1. 平台突破VAR1AA:=((2)*(CLOSE)+OPEN+HIGH+LOW)/(5);
  2. VAR2AA:=VOL;
  3. 上升价格线:(SUM((VAR1AA)*(VAR2AA),8))/(SUM(VAR2AA,8)),COLOR0000FF;
  4. 下降价格线:LLV(上升价格线,8),COLOR00FF00;
  5. VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
  6. VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
  7. DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.94999998),'加仓'),COLOR00FFFF;
  8. DRAWTEXT(FILTER((VAR4AA>90),34),(LOW)*(0.99000001),''),COLOR00FFFF;
  9. A1AA:=9;
  10. A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
  11. DRAWTEXT(FILTER((A2AA>0),34),(HIGH)*(1.02),''),COLORGREEN;
  12. VAR1:=REF(CLOSE,1);
  13. VAR2:=MA(CLOSE,5);
  14. VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
  15. VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;
  16. VAR5:=SMA(MAX(CLOSE-VAR1,0),24,1)/SMA(ABS(CLOSE-VAR1),24,1)*100;
  17. VAR6:=IF(CROSS(VAR3,VAR5),LOW,REF(LOW,BARSLAST(CROSS(VAR3,VAR5))));
  18. VAR7:=IF(CROSS(VAR5,VAR3),HIGH,REF(HIGH,BARSLAST(CROSS(VAR5,VAR3))));
  19. VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);
  20. VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);
  21. VARA:=IF(VAR3<VAR8 AND REF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));
  22. VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));
  23. VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));
  24. VARD:=IF(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5)));
  25. VARE:=IF(VAR3>VAR9 AND REF(VAR3,1)<=VAR9,LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)-1),REF(LLV(REF(LOW,1),BARSLAST(VAR3<=VAR9 AND REF(VAR3,1)>VAR9)-1),BARSLAST(VAR3>VAR9 AND REF(VAR3,1))));
  26. VARF:=IF(LOW<VARE,HIGH,REF(HIGH,BARSLAST(LOW<VARE)));
  27. VAR10:=IF(LOW<VARE,VAR3,REF(VAR3,BARSLAST(LOW<VARE)));
  28. VAR11:=IF(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5,LOW,REF(LOW,BARSLAST(LOW<VARF AND VAR3>VAR10 AND VAR3>VAR5)));
  29. 支撑线: VAR11,COLORFF00FF ,LINETHICK2 ;
  30. 压力线: VARD, COLORBLUE,LINETHICK2 ;
  31. DING:=MAX(O,C);{实顶}
  32. DI:=MIN(O,C);{实底}
  33. YANG:=(DI>=REF(DING,1)) OR (C>O AND NOT(DING<=REF(DI,1))) OR (C>REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DING,1)=C);{阳线}
  34. YIN:=NOT(YANG);
  35. {YIN:=(C<O AND NOT(DI>=REF(DING,1))) OR (C>O AND DING<=REF(DI,1)) OR (C<REF(C,1) AND C=O) OR (C=REF(C,1) AND C=O AND REF(DI,1)=C);{阴线}}
  36. YANGSHENG:YANG AND C>=REF(DING,BARSLAST(YIN)) AND (V>REF(V,BARSLAST(YIN)) OR (BETWEEN(V,REF(V,BARSLAST(YIN))*0.95,REF(V,BARSLAST(YIN))*1.05))),NODRAW;
  37. LIANGJIABI:V/C,NODRAW;
  38. MALIANGJIABI:MA(LIANGJIABI,3),NODRAW;
  39. LIANGJIABIXISHU:=1.5;
  40. BLZ:=V>REF(V,1)*1.5;

  41. PLZ:=BETWEEN(V,REF(V,1)*0.95,REF(V,1)*1.05) OR BETWEEN(V,REFX(V,1)*0.95,REFX(V,1)*1.05) OR
  42. (BETWEEN(V,REF(V,2)*0.95,REF(V,2)*1.05) AND V>REF(V,1)*1.2) OR
  43. (BETWEEN(V,REF(V,3)*0.95,REF(V,3)*1.05) AND V>REF(MA(V,2),1)*1.2 AND V>REF(HHV(V,2),1)) OR
  44. (BETWEEN(V,REF(V,4)*0.95,REF(V,4)*1.05) AND V>REF(MA(V,3),1)*1.2 AND V>REF(HHV(V,3),1)) OR
  45. (BETWEEN(V,REF(V,5)*0.95,REF(V,5)*1.05) AND V>REF(MA(V,4),1)*1.2 AND V>REF(HHV(V,4),1)) OR
  46. (BETWEEN(V,REF(V,6)*0.95,REF(V,6)*1.05) AND V>REF(MA(V,5),1)*1.2 AND V>REF(HHV(V,5),1)) OR
  47. (BETWEEN(V,REF(V,7)*0.95,REF(V,7)*1.05) AND V>REF(MA(V,6),1)*1.2 AND V>REF(HHV(V,6),1)) OR
  48. (BETWEEN(V,REF(V,8)*0.95,REF(V,8)*1.05) AND V>REF(MA(V,7),1)*1.2 AND V>REF(HHV(V,7),1)) OR
  49. (BETWEEN(V,REF(V,9)*0.95,REF(V,9)*1.05) AND V>REF(MA(V,8),1)*1.2 AND V>REF(HHV(V,8),1)) OR
  50. (BETWEEN(V,REF(V,10)*0.95,REF(V,10)*1.05) AND V>REF(MA(V,9),1)*1.2 AND V>REF(HHV(V,9),1)) OR
  51. (BETWEEN(V,REF(V,11)*0.95,REF(V,11)*1.05) AND V>REF(MA(V,10),1)*1.2 AND V>REF(HHV(V,10),1)) OR
  52. (BETWEEN(V,REF(V,12)*0.95,REF(V,12)*1.05) AND V>REF(MA(V,11),1)*1.2 AND V>REF(HHV(V,11),1));
  53. GLZ:=V=HHV(V,3) AND V=REFX(HHV(V,3),2);
  54. TLZ:=(V*1.1<REFX(V,1) AND REFX(V,1)*1.1<REFX(V,2)) OR (V>REF(V,1)*1.1 AND V*1.1<REFX(V,1)) OR (V>REF(V,1)*1.1 AND REF(V,1)>REF(V,2)*1.1);
  55. JSLS:=C<=REFX(C,1) AND REFX(C,1)<=REFX(C,2) AND LIANGJIABI>REFX(LIANGJIABI,1) AND REFX(LIANGJIABI,1)>REFX(LIANGJIABI,2);
  56. JZ:=BLZ OR GLZ OR PLZ OR TLZ,NODRAW;
  57. JJZ:=CURRBARSCOUNT>=4 AND YANG AND (YANGSHENG) AND JZ AND REFX(LLV(DI,3),3)>=DI AND (REFX(MA(LIANGJIABI,3),3)<=LIANGJIABIXISHU*LIANGJIABI OR REFX(JSLS,1)) AND REFX(C,3)>=DING,NODRAW;
  58. HJZ1:=JJZ AND REFX(MA(C,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3);
  59. HJZ2:=YANG AND YANGSHENG AND JZ AND REFX(DI,1)>=DI AND REFX(JJZ,2) AND REFX(C,2)>DING AND REFX(LIANGJIABI,1)<LIANGJIABI;
  60. HJZ3:=YANG AND YANGSHENG AND JZ AND REFX(LLV(DI,2),2)>=DI AND REFX(JJZ,3) AND REFX(C,3)>DING AND REFX(MA(LIANGJIABI,2),2)<LIANGJIABI;
  61. HJZ4:=JJZ AND REFX(LLV(DI,3),3)>=DING AND REFX(MA(LIANGJIABI,3),3)<=LIANGJIABI AND REFX(YANG,3) AND (REFX(YANG,1) OR REFX(YANG,2));
  62. WP:JJZ OR HJZ1 OR HJZ4 OR HJZ2 OR HJZ3,NODRAW;
  63. CONDJJZ:=JJZ AND REF(NOT(WP),1);
  64. CONDHJZ1:=(HJZ1 OR HJZ2 OR HJZ3) AND REF(NOT(WP),1);
  65. STICKLINE(CONDJJZ,C,O,1,0),COLORYELLOW;
  66. STICKLINE(CONDHJZ1,C,O,1,0),COLORMAGENTA;
  67. DRAWTEXT(HJZ4 AND REF(NOT(HJZ4),1),L*0.98,'H'),COLORRED;
  68. DRAWLINE(CONDJJZ,DING,REF(CONDJJZ,1),REF(DING,1),1),COLORBROWN;
  69. DRAWLINE(CONDJJZ,DI,REF(CONDJJZ,1),REF(DI,1),1),COLORBROWN;
  70. DRAWLINE(CONDHJZ1,DING,REF(CONDHJZ1,1),REF(DING,1),1),COLORBROWN;
  71. DRAWLINE(CONDHJZ1,DI,REF(CONDHJZ1,1),REF(DI,1),1),COLORBROWN;
  72. VOL5:=MA(VOL,5),COLORWHITE;
  73. VOL10:=MA(VOL,10),COLORYELLOW;
  74. VOL40:=MA(VOL,40),COLORFF00FF ;
  75. MA5:=MA(CLOSE,5),COLORWHITE;
  76. MA10:=MA(CLOSE,10),COLORYELLOW;
  77. MA20:=MA(CLOSE,20),COLORMAGENTA;
  78. MA60:=MA(CLOSE,60),COLORGREEN;
  79. MA120:=MA(CLOSE,120),COLORLIMAGENTA;
  80. MA240:=MA(CLOSE,240),COLORBLUE,NODRAW;
  81. 量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1);
  82. DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;
  83. AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10));
  84. BB1:=REF(COUNT(C<MA60,AA1)=AA1,1);
  85. CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3;
  86. 芙蓉出水:=BB AND CC1,COLOR00FF00;
  87. DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;
  88. STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;
  89. STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF;
  90. MA1:=MA(CLOSE,14);
  91. MA2:=MA(CLOSE,25);
  92. MA3:=MA(CLOSE,99);
  93. ZJ:=AMOUNT/10000;{资金}
  94. TM:=V-MA(V,10);{量填满}
  95. 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ;
  96. DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF;
  97. TY:=C;
  98. A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
  99. A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
  100. 前期高位:=REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
  101. STICKLINE(C,前期高位,前期高位,8,0),COLORRED;
  102. STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE;
  103. 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
  104. 三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3));
  105. 三日价涨A:=C>=REF(C,1);
  106. 三日价涨B:=C<REF(C,1);
  107. 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
  108. TIM:=IF(DATE<1140214,1,0);
  109. 缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;
  110. 百日低量:=(VOL=LLV(VOL,100))*TIM;
  111. 倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;
  112. 四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;
  113. 四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;
  114. 前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
  115. 倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
  116. 高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
  117. 黄金柱:=倍量黄金柱 OR 高量黄金柱;
  118. 次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
  119. 次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
  120. 次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;
  121. 准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立;
  122. 准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;
  123. 准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;
  124. 倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
  125. 高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
  126. 将军柱:=倍量将军柱 OR 高量将军柱;
  127. 次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
  128. 次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
  129. 次将军柱:=次倍量将军柱 OR 次高量将军柱;
  130. 准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;
  131. 准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;
  132. 准将军柱:=准倍量将军柱 OR 准高量将军柱;
  133. BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);
  134. FILTER100:=FILTER(BACKSET100,3),NODRAW;
  135. BACKSET101:=BACKSET(黄金柱,4);
  136. FILTER101:=FILTER(BACKSET101,3);
  137. BACKSET102:=BACKSET(次黄金柱,4);
  138. FILTER102:=FILTER(BACKSET102,3);
  139. BACKSET103:=BACKSET(准黄金柱,4);
  140. FILTER103:=FILTER(BACKSET103,3);
  141. BACKSET104:=BACKSET(将军柱,4);
  142. FILTER104:=FILTER(BACKSET104,3);
  143. BACKSET105:=BACKSET(次将军柱,4);
  144. FILTER105:=FILTER(BACKSET105,3);
  145. BACKSET106:=BACKSET(准将军柱,4);
  146. FILTER106:=FILTER(BACKSET106,3);
  147. 黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3);
  148. 黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0;
  149. 黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3);
  150. 黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3);
  151. 黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3));
  152. 黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));
  153. 黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));
  154. 黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));
  155. BACKSET201:=BACKSET(黄金线下影线,4);
  156. FILTER201:=FILTER(BACKSET201,3),NODRAW;
  157. BACKSET202:=BACKSET(黄金线实体下端,4);
  158. FILTER202:=FILTER(BACKSET202,3),NODRAW;
  159. BACKSET203:=BACKSET(黄金线上影线,4);
  160. FILTER203:=FILTER(BACKSET203,3),NODRAW;
  161. BACKSET204:=BACKSET(黄金线实体上端,4);
  162. FILTER204:=FILTER(BACKSET204,3),NODRAW;
  163. BACKSET205:=BACKSET(黄金线实体中间,4);
  164. FILTER205:=FILTER(BACKSET205,3),NODRAW;
  165. BACKSET2051:=BACKSET(黄金线实体中间1,4);
  166. FILTER2051:=FILTER(BACKSET2051,3),NODRAW;
  167. BACKSET2052:=BACKSET(黄金线实体中间2,4);
  168. FILTER2052:=FILTER(BACKSET2052,3),NODRAW;
  169. BACKSET2053:=BACKSET(黄金线实体中间3,4);
  170. FILTER2053:=FILTER(BACKSET2053,3),NODRAW;
  171. BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));
  172. BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202));
  173. BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));
  174. BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
  175. BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205));
  176. BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051));
  177. BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052));
  178. BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053));
  179. 最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);
  180. DAY1:=SUMBARS(FILTER100,1),NODRAW;
  181. HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW;
  182. HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
  183. HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW;
  184. HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
  185. HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;
  186. HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;
  187. HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;
  188. 黄金线:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW;
  189. 立桩量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);
  190. 立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
  191. 立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));
  192. BACKSET300:=BACKSET(立桩量三日不破,4);
  193. BACKSET301:=BACKSET(立桩量三日突破,4);
  194. 立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;
  195. DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLORRED;
  196. DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;
  197. DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;
  198. DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;{STICKLINE(CLOSE/REF(C,1)>=1.09,O,C,2.7,0),COLORYELLOW;};DRAWICON(CROSS(C,前期高位),前期高位,1);{突破前期高位};N1:=20;
  199. N2:=10;
  200. N3:=5;LAA:=REF(H,N2)=HHV(H,2*N2+1);
  201. LQY:=BACKSET(LAA,N2+1);
  202. LCC:=FILTER(LQY,N2) AND H=HHV(H,N2+1);
  203. LDDD:=BARSLAST(LCC);
  204. LGDTS:=IF(LCC,CURRBARSCOUNT,0);
  205. LDINGBU:=IF(LDDD,REF(H,LDDD),H);{顶部}
  206. LDINGBUTS:=IF(LDDD,REF(LGDTS,LDDD),LGDTS);
  207. LDINGBU1:=REF(LDINGBU,LDDD+1);
  208. LGDCS1:=CONST(LDINGBUTS);
  209. LDINGBUTS1:=REF(LDINGBUTS,LDDD+1);
  210. LGDCS2:=CONST(LDINGBUTS1);
  211. LDINGBU2:=REF(LDINGBU1,LDDD+1);
  212. LMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);
  213. 压力:DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBARSCOUNT=LGDCS1,H,1) COLORWHITE;
  214. DRAWLINE(CURRBARSCOUNT=LGDCS2,H,ISLASTBAR,REF(H,LGDCS2-1),1),COLOR0055FF,POINTDOT;
  215. DRAWLINE(CURRBARSCOUNT=LGDCS1,H,ISLASTBAR,REF(H,LGDCS1-1),1),COLORYELLOW,POINTDOT;
复制代码

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

这公式好长啊!!!

TOP

谢谢群主无私奉献

TOP

返回列表