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

[大智慧指标] 股指佛手箱指标公式源码 通达信 飞狐 大智慧通用指标[大智慧公式]

[大智慧指标] 股指佛手箱指标公式源码 通达信 飞狐 大智慧通用指标[大智慧公式]

股指佛手箱指标公式源码

飞狐的源码:


  1. 【H】:HHV(HIGH,14),LINETHICK3,COLORWHITE;
  2. 【L】:LLV(LOW,14),LINETHICK3,COLORWHITE;
  3. T:(【H】+【L】)/2 ,LINETHICK1,COLORWHITE;

  4. STICKLINE(C>=COST(50)AND C<=COST(58)AND C>O,O,C,2,0),COLORRED;
  5. STICKLINE(C>=COST(97)AND C<=COST(100)AND C>O,O,C,2,0),COLORWHITE;
  6. DRAWTEXT(C>=COST(97)AND C<=COST(100) AND C>O,C,'--获利大于97%'),COLORRED;
  7. DRAWTEXT(C>=COST(50)AND C<=COST(58) AND C>O,C,'--获利50%'),COLORYELLOW;
  8. JJ:=(H+L+3*C)/5;
  9. VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
  10. 成本和谐:MA(H1A,5),COLORRED,LINETHICK0;
  11. LL:=LLV(C,100);
  12. TJ:=IF((C-ref(C,1))/ref(C,1)>0.025,1,0);
  13. STICKLINE(C>ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),10,0),COLORGREEN,LINETHICK1;
  14. 黄昏之星:=((((((ref(CLOSE,2) / ref(OPEN,2)) > 1.03) AND (ref(OPEN,1) >
  15. ref(CLOSE,2))) AND ((ABS((ref(OPEN,1) - ref(CLOSE,1))) /
  16. ref(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <ref(CLOSE,2)));
  17. 射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 *
  18. (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
  19. 锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  20. MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5)));
  21. 吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  22. MIN(OPEN,CLOSE))))));
  23. 穿头破脚:=((((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN)
  24. < 0.96)) AND (CLOSE < ref(OPEN,1))) AND (OPEN > ref(CLOSE,1))) OR
  25. (((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  26. 1.04)) AND (CLOSE > ref(OPEN,1))) AND (OPEN < ref(CLOSE,1))));
  27. 身怀六甲:=(((((ABS((ref(CLOSE,1) - ref(OPEN,1))) / ref(CLOSE,1)) > 0.04)
  28. AND ((ABS((CLOSE - OPEN)) / CLOSE) < 0.005)) AND (MAX(CLOSE,OPEN) <
  29. MAX(ref(CLOSE,1),ref(OPEN,1)))) AND (MIN(CLOSE,OPEN) > MIN(ref(CLOSE,1),ref(OPEN,1))));
  30. 乌云盖顶:=(((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) <
  31. 0.97)) AND (OPEN > ref(CLOSE,1))) AND (CLOSE < ref(CLOSE,1)));
  32. 曙光初现:=(((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  33. 1.03)) AND (OPEN < ref(CLOSE,1))) AND (CLOSE > ref(CLOSE,1)));
  34. 倾盆雨:=(((((ref(CLOSE,1) / ref(OPEN,1)) >= 1.03) AND (OPEN <
  35. ref(CLOSE,1))) AND (OPEN > ref(OPEN,1))) AND (CLOSE < ref(OPEN,1)));
  36. DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
  37. DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
  38. DRAWTEXT(射击之星,H*1.03,'射击之星高位见顶'),COLORCYAN;
  39. DRAWTEXT(锤头,L-L*0.02,'锤头低位见底'),COLORGREEN;
  40. DRAWTEXT(吊颈,H*1.03,'吊颈高位见顶'),COLORCYAN;
  41. DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
  42. DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
  43. DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量见涨)'),COLORGREEN;
  44. DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
  45. 阳长下影线:=(O-L)/O>0.06 AND C>O;
  46. 阴长下影线:=(C-L)/C>0.06 AND C<O;
  47. 阳长上影线:=(H-C)/C>0.06 AND C>O;
  48. 阴长上影线:=(H-O)/O>0.06 AND C<O;
  49. 光头阳长下影线:=C=H AND (O-L)/O>0.06 AND C>O;
  50. 光脚阴长上影线:=C=L AND (H-O)/O>0.06 AND C<O;
  51. 白色十字星:=C=O AND H>C AND C>L;
  52. DRAWTEXT(阳长下影线,H*1.01,'阳长下影线'),COLORCYAN;
  53. DRAWTEXT(阴长下影线,H*1.04,'阴长下影线'),COLORWHITE;
  54. DRAWTEXT(阳长上影线,H*1.06,'阳长上影线'),COLORRED;
  55. DRAWTEXT(光头阳长下影线,H*1.07,'光头阳长下影线'),COLORCYAN;
  56. DRAWTEXT(光脚阴长上影线,H*1.08,'光脚阴长上影线'),COLORYELLOW;
  57. DRAWTEXT(白色十字星,H*1.02,'白色十字星'),COLORWHITE;
  58. S下:=HHV(MA(HIGH,2),2),COLORGREEN,LINETHICK0;
  59. S上:=LLV(MA(HIGH,2),1),COLORRED,LINETHICK0;
  60. SPPP:=-(S上-S下)/ref(C,1)*100;
  61. SPTEM1:=(MIN(O,C)-L)/(H-L)*100;
  62. SPTEM2:=(H-MAX(O,C))/(H-L)*100;
  63. SPTEM3:=(C-O)/(H-L)*100;
  64. SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;
  65. SKJ2:=(SPTEM3<=49 AND SPTEM3>20 AND SPTEM1>SPTEM2);
  66. SKJ3:=(SPTEM3<=20 AND SPTEM3>-20 AND SPTEM1>1.2*SPTEM2);
  67. SKJ4:=(SPTEM3<-20 AND SPTEM3>-40 AND SPTEM1>2*SPTEM2);
  68. SKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (SPPP>2 OR ref(SPPP,1)>2 );
  69. 短买:=IF(SUM(SPPP>0,5)=5 AND SUM(SKJ>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4),5*SKJ),COLORRED;
  70. DRAWTEXT(短买,L,'短买'),COLORWHITE;
  71. X1:=(C+L+H)/3;
  72. BB13:=ATAN(EMA(X1,13)-ref(EMA(X1,13),1))*3.1416*10;
  73. EMA8:=EMA(C,8);
  74. DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>ref(EMA(X1,8),1),10),
  75. EMA8,'∠45'),COLORWHITE;
  76. RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
  77. K:=SMA(RSV,5,1);
  78. D:=SMA(K,5,1);
  79. J:=3*K-2*D;
  80. X:=ref(J,1)<10 AND H>ref(H,1) AND C>ref(C,1) AND C>ref(O,1) AND L>ref(L,1);
  81. STICKLINE(X,L ,L,2,0),COLOR008888;
  82. STICKLINE(X,L ,H,0,0),COLORFF00FF;
  83. STICKLINE(X,C ,O,2,0),COLORFF00FF;
  84. 天量:=VOL=HHV(VOL,0);
  85. DRAWTEXT(天量,C,'-------高位天量卖'),COLORYELLOW;
  86. BIAS1:=(C-MA(C,6))/MA(C,6)*100;
  87. BIAS2:=(C-MA(C,12))/MA(C,12)*100;
  88. BIAS3:=(C-MA(C,24))/MA(C,24)*100;
  89. BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
  90. 乖离:=MA(BIAS,3);
  91. DRAWTEXT(CROSS(BIAS,乖离) AND 乖离<-9,C,'---------二次BIAS乖离底买'),COLORGREEN;
  92. COST(50),COLORGREEN,CIRCLEDOT;
  93. TY:=C;
  94. HD:=FILTER(BACKSET(FILTER(ref(TY,10)=HHV(TY,2*10+1),10),10+1),10);
  95. LD:=FILTER(BACKSET(FILTER(ref(TY,10)=LLV(TY,2*10+1),10),10+1),10);
  96. A:=ref(C,BARSLAST(HD));
  97. B:=ref(C,BARSLAST(LD));
  98. T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
  99. T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
  100. 波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
  101. STICKLINE(T1,A,A,9,0),COLORFF00FF;
  102. 波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
复制代码


大智慧L2源码:
{股指佛手箱}

  1. 【H】:HHV(HIGH,14),LINETHICK3,COLORWHITE;
  2. 【L】:LLV(LOW,14),LINETHICK3,COLORWHITE;
  3. T:(【H】+【L】)/2 ,LINETHICK1,COLORWHITE;

  4. STICKLINE(C>=COST(50)AND C<=COST(58)AND C>O,O,C,2,0),COLORRED;
  5. STICKLINE(C>=COST(97)AND C<=COST(100)AND C>O,O,C,2,0),COLORWHITE;
  6. DRAWTEXT(C>=COST(97)AND C<=COST(100) AND C>O,C,'--获利大于97%'),COLORRED;
  7. DRAWTEXT(C>=COST(50)AND C<=COST(58) AND C>O,C,'--获利50%'),COLORYELLOW;
  8. JJ:=(H+L+3*C)/5;
  9. VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
  10. 成本和谐:MA(H1A,5),COLORRED,LINETHICK0;
  11. LL:=LLV(C,100);
  12. TJ:=IF((C-ref(C,1))/ref(C,1)>0.025,1,0);
  13. STICKLINE(C>ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),10,0),COLORGREEN,LINETHICK1;
  14. 黄昏之星:=((((((ref(CLOSE,2) / ref(OPEN,2)) > 1.03) AND (ref(OPEN,1) >
  15. ref(CLOSE,2))) AND ((ABS((ref(OPEN,1) - ref(CLOSE,1))) /
  16. ref(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <ref(CLOSE,2)));
  17. 射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 *
  18. (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
  19. 锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  20. MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5)));
  21. 吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  22. MIN(OPEN,CLOSE))))));
  23. 穿头破脚:=((((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN)
  24. < 0.96)) AND (CLOSE < ref(OPEN,1))) AND (OPEN > ref(CLOSE,1))) OR
  25. (((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  26. 1.04)) AND (CLOSE > ref(OPEN,1))) AND (OPEN < ref(CLOSE,1))));
  27. 身怀六甲:=(((((ABS((ref(CLOSE,1) - ref(OPEN,1))) / ref(CLOSE,1)) > 0.04)
  28. AND ((ABS((CLOSE - OPEN)) / CLOSE) < 0.005)) AND (MAX(CLOSE,OPEN) <
  29. MAX(ref(CLOSE,1),ref(OPEN,1)))) AND (MIN(CLOSE,OPEN) > MIN(ref(CLOSE,1),ref(OPEN,1))));
  30. 乌云盖顶:=(((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) <
  31. 0.97)) AND (OPEN > ref(CLOSE,1))) AND (CLOSE < ref(CLOSE,1)));
  32. 曙光初现:=(((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  33. 1.03)) AND (OPEN < ref(CLOSE,1))) AND (CLOSE > ref(CLOSE,1)));
  34. 倾盆雨:=(((((ref(CLOSE,1) / ref(OPEN,1)) >= 1.03) AND (OPEN <
  35. ref(CLOSE,1))) AND (OPEN > ref(OPEN,1))) AND (CLOSE < ref(OPEN,1)));
  36. DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
  37. DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
  38. DRAWTEXT(射击之星,H*1.03,'射击之星高位见顶'),COLORCYAN;
  39. DRAWTEXT(锤头,L-L*0.02,'锤头低位见底'),COLORGREEN;
  40. DRAWTEXT(吊颈,H*1.03,'吊颈高位见顶'),COLORCYAN;
  41. DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
  42. DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
  43. DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量见涨)'),COLORGREEN;
  44. DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
  45. 阳长下影线:=(O-L)/O>0.06 AND C>O;
  46. 阴长下影线:=(C-L)/C>0.06 AND C<O;
  47. 阳长上影线:=(H-C)/C>0.06 AND C>O;
  48. 阴长上影线:=(H-O)/O>0.06 AND C<O;
  49. 光头阳长下影线:=C=H AND (O-L)/O>0.06 AND C>O;
  50. 光脚阴长上影线:=C=L AND (H-O)/O>0.06 AND C<O;
  51. 白色十字星:=C=O AND H>C AND C>L;
  52. DRAWTEXT(阳长下影线,H*1.01,'阳长下影线'),COLORCYAN;
  53. DRAWTEXT(阴长下影线,H*1.04,'阴长下影线'),COLORWHITE;
  54. DRAWTEXT(阳长上影线,H*1.06,'阳长上影线'),COLORRED;
  55. DRAWTEXT(光头阳长下影线,H*1.07,'光头阳长下影线'),COLORCYAN;
  56. DRAWTEXT(光脚阴长上影线,H*1.08,'光脚阴长上影线'),COLORYELLOW;
  57. DRAWTEXT(白色十字星,H*1.02,'白色十字星'),COLORWHITE;
  58. S下:=HHV(MA(HIGH,2),2);
  59. S上:=LLV(MA(HIGH,2),1);
  60. SPPP:=-(S上-S下)/ref(C,1)*100;
  61. SPTEM1:=(MIN(O,C)-L)/(H-L)*100;
  62. CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
  63. WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=2 OR CXH=7));
  64. SPTEM2:=(H-MAX(O,C))/(H-L)*100;
  65. SPTEM3:=(C-O)/(H-L)*100;
  66. SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;
  67. SKJ2:=(SPTEM3<=49 AND SPTEM3>20 AND SPTEM1>SPTEM2);
  68. SKJ3:=(SPTEM3<=20 AND SPTEM3>-20 AND SPTEM1>1.2*SPTEM2);
  69. SKJ4:=(SPTEM3<-20 AND SPTEM3>-40 AND SPTEM1>2*SPTEM2);
  70. SKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (SPPP>2 OR ref(SPPP,1)>2 );
  71. 短买:=IF(SUM(SPPP>0,5)=5 AND SUM(SKJ>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4),5*SKJ);
  72. DRAWTEXT(短买,L,'短买'),COLORWHITE;
  73. X1:=(C+L+H)/3;
  74. BB13:=ATAN(EMA(X1,13)-ref(EMA(X1,13),1))*3.1416*10;
  75. EMA8:=EMA(C,8);
  76. DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>ref(EMA(X1,8),1),10),
  77. EMA8,'∠45'),COLORWHITE;
  78. RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
  79. K:=SMA(RSV,5,1);
  80. D:=SMA(K,5,1);
  81. J:=3*K-2*D;
  82. X:=ref(J,1)<10 AND H>ref(H,1) AND C>ref(C,1) AND C>ref(O,1) AND L>ref(L,1);
  83. STICKLINE(X,L ,L,2,0),COLOR008888;
  84. STICKLINE(X,L ,H,0,0),COLORFF00FF;
  85. STICKLINE(X,C ,O,2,0),COLORFF00FF;
  86. 天量:=VOL=HHV(VOL,0);
  87. DRAWTEXT(天量,C,'-------高位天量卖'),COLORYELLOW;
  88. BIAS1:=(C-MA(C,6))/MA(C,6)*100;
  89. BIAS2:=(C-MA(C,12))/MA(C,12)*100;
  90. BIAS3:=(C-MA(C,24))/MA(C,24)*100;
  91. BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
  92. 乖离:=MA(BIAS,3);
  93. DRAWTEXT(CROSS(BIAS,乖离) AND 乖离<-9,C,'---------二次BIAS乖离底买'),COLORGREEN;
  94. COST(50),COLORGREEN,CIRCLEDOT;
  95. TY:=C;
  96. HD:=FILTER(BACKSET(FILTER(ref(TY,10)=HHV(TY,2*10+1),10),10+1),10);
  97. LD:=FILTER(BACKSET(FILTER(ref(TY,10)=LLV(TY,2*10+1),10),10+1),10);
  98. A:=ref(C,BARSLAST(HD));
  99. B:=ref(C,BARSLAST(LD));
  100. T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
  101. T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
  102. 波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
  103. STICKLINE(T1,A,A,9,0),COLORFF00FF;
  104. 波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
复制代码


通达信源码:


  1. 【H】:HHV(HIGH,14),LINETHICK3,COLORWHITE;
  2. 【L】:LLV(LOW,14),LINETHICK3,COLORWHITE;
  3. T:(【H】+【L】)/2 ,LINETHICK1,COLORWHITE;

  4. STICKLINE(C>=COST(50)AND C<=COST(58)AND C>O,O,C,2,0),COLORRED;
  5. STICKLINE(C>=COST(97)AND C<=COST(100)AND C>O,O,C,2,0),COLORWHITE;
  6. DRAWTEXT(C>=COST(97)AND C<=COST(100) AND C>O,C,'--获利大于97%'),COLORRED;
  7. DRAWTEXT(C>=COST(50)AND C<=COST(58) AND C>O,C,'--获利50%'),COLORYELLOW;
  8. JJ:=(H+L+3*C)/5;
  9. VAR21:=EMA(JJ,5);VAR22:=EMA(JJ,13);VAR23:=EMA(JJ,21);VAR24:=EMA(JJ,34);H1A:=(VAR21+VAR22+VAR23+VAR24)/4;
  10. 成本和谐:MA(H1A,5),COLORRED,LINETHICK0;
  11. LL:=LLV(C,100);
  12. TJ:=IF((C-ref(C,1))/ref(C,1)>0.025,1,0);
  13. STICKLINE(C>ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),ref(O,BARSLAST(TJ =1)),10,0),COLORGREEN,LINETHICK1;
  14. 黄昏之星:=((((((ref(CLOSE,2) / ref(OPEN,2)) > 1.03) AND (ref(OPEN,1) >
  15. ref(CLOSE,2))) AND ((ABS((ref(OPEN,1) - ref(CLOSE,1))) /
  16. ref(CLOSE,1)) < 0.02)) AND ((CLOSE / OPEN) < 0.97)) AND (CLOSE <ref(CLOSE,2)));
  17. 射击之星:=(((MIN(OPEN,CLOSE) = LOW) AND ((HIGH - LOW) > (3 *
  18. (MAX(OPEN,CLOSE) - LOW)))) AND (CLOSE > MA(CLOSE,5)));
  19. 锤头:=(((HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  20. MIN(OPEN,CLOSE))))) AND (CLOSE < MA(CLOSE,5)));
  21. 吊颈:=(( (HIGH = MAX(OPEN,CLOSE)) AND ((HIGH - LOW) > (3 * (HIGH -
  22. MIN(OPEN,CLOSE))))));
  23. DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
  24. 穿头破脚:=((((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN)
  25. < 0.96)) AND (CLOSE < ref(OPEN,1))) AND (OPEN > ref(CLOSE,1))) OR
  26. (((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  27. 1.04)) AND (CLOSE > ref(OPEN,1))) AND (OPEN < ref(CLOSE,1))));
  28. 身怀六甲:=(((((ABS((ref(CLOSE,1) - ref(OPEN,1))) / ref(CLOSE,1)) > 0.04)
  29. AND ((ABS((CLOSE - OPEN)) / CLOSE) < 0.005)) AND (MAX(CLOSE,OPEN) <
  30. MAX(ref(CLOSE,1),ref(OPEN,1)))) AND (MIN(CLOSE,OPEN) > MIN(ref(CLOSE,1),ref(OPEN,1))));
  31. 乌云盖顶:=(((((ref(CLOSE,1) / ref(OPEN,1)) > 1.03) AND ((CLOSE / OPEN) <
  32. 0.97)) AND (OPEN > ref(CLOSE,1))) AND (CLOSE < ref(CLOSE,1)));
  33. 曙光初现:=(((((ref(CLOSE,1) / ref(OPEN,1)) < 0.97) AND ((CLOSE / OPEN) >
  34. 1.03)) AND (OPEN < ref(CLOSE,1))) AND (CLOSE > ref(CLOSE,1)));
  35. 倾盆雨:=(((((ref(CLOSE,1) / ref(OPEN,1)) >= 1.03) AND (OPEN <
  36. ref(CLOSE,1))) AND (OPEN > ref(OPEN,1))) AND (CLOSE < ref(OPEN,1)));
  37. DRAWTEXT(倾盆雨,H*1.03,'倾盆大雨'),COLORCYAN;
  38. DRAWTEXT(黄昏之星,H*1.02,'黄昏之星'),COLORCYAN;
  39. DRAWTEXT(射击之星,H*1.03,'射击之星高位见顶'),COLORCYAN;
  40. DRAWTEXT(锤头,L-L*0.02,'锤头低位见底'),COLORGREEN;
  41. DRAWTEXT(吊颈,H*1.03,'吊颈高位见顶'),COLORCYAN;
  42. DRAWTEXT(穿头破脚,H*1.05,'穿头破脚'),COLORCYAN;
  43. DRAWTEXT(乌云盖顶,H*1.03,'乌云盖顶'),COLORCYAN;
  44. DRAWTEXT(曙光初现,L-L*0.02,'曙光初现(放量见涨)'),COLORGREEN;
  45. DRAWTEXT(身怀六甲,L-L*0.02,'身怀六甲,底升顶落'),COLORGREEN;
  46. 阳长下影线:=(O-L)/O>0.06 AND C>O;
  47. 阴长下影线:=(C-L)/C>0.06 AND C<O;
  48. 阳长上影线:=(H-C)/C>0.06 AND C>O;
  49. 阴长上影线:=(H-O)/O>0.06 AND C<O;
  50. 光头阳长下影线:=C=H AND (O-L)/O>0.06 AND C>O;
  51. 光脚阴长上影线:=C=L AND (H-O)/O>0.06 AND C<O;
  52. 白色十字星:=C=O AND H>C AND C>L;
  53. DRAWTEXT(阳长下影线,H*1.01,'阳长下影线'),COLORCYAN;
  54. DRAWTEXT(阴长下影线,H*1.04,'阴长下影线'),COLORWHITE;
  55. DRAWTEXT(阳长上影线,H*1.06,'阳长上影线'),COLORRED;
  56. DRAWTEXT(光头阳长下影线,H*1.07,'光头阳长下影线'),COLORCYAN;
  57. DRAWTEXT(光脚阴长上影线,H*1.08,'光脚阴长上影线'),COLORYELLOW;
  58. DRAWTEXT(白色十字星,H*1.02,'白色十字星'),COLORWHITE;
  59. S下:=HHV(MA(HIGH,2),2);
  60. S上:=LLV(MA(HIGH,2),1);
  61. SPPP:=-(S上-S下)/ref(C,1)*100;
  62. SPTEM1:=(MIN(O,C)-L)/(H-L)*100;
  63. SPTEM2:=(H-MAX(O,C))/(H-L)*100;
  64. SPTEM3:=(C-O)/(H-L)*100;
  65. SKJ1:=(SPTEM3>49 AND SPTEM1>0.3*SPTEM2) OR SPTEM3>80;
  66. SKJ2:=(SPTEM3<=49 AND SPTEM3>20 AND SPTEM1>SPTEM2);
  67. SKJ3:=(SPTEM3<=20 AND SPTEM3>-20 AND SPTEM1>1.2*SPTEM2);
  68. SKJ4:=(SPTEM3<-20 AND SPTEM3>-40 AND SPTEM1>2*SPTEM2);
  69. SKJ:=(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4) AND (SPPP>2 OR ref(SPPP,1)>2 );
  70. 短买:=IF(SUM(SPPP>0,5)=5 AND SUM(SKJ>0,5)=0,5*(SKJ1 OR SKJ2 OR SKJ3 OR SKJ4),5*SKJ);
  71. DRAWTEXT(短买,L,'短买'),COLORWHITE;
  72. X1:=(C+L+H)/3;
  73. BB13:=ATAN(EMA(X1,13)-ref(EMA(X1,13),1))*3.1416*10;
  74. EMA8:=EMA(C,8);
  75. DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>ref(EMA(X1,8),1),10),
  76. EMA8,'∠45'),COLORWHITE;
  77. RSV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
  78. K:=SMA(RSV,5,1);
  79. D:=SMA(K,5,1);
  80. J:=3*K-2*D;
  81. X:=ref(J,1)<10 AND H>ref(H,1) AND C>ref(C,1) AND C>ref(O,1) AND L>ref(L,1);
  82. STICKLINE(X,L ,L,2,0),COLOR008888;
  83. STICKLINE(X,L ,H,0,0),COLORFF00FF;
  84. STICKLINE(X,C ,O,2,0),COLORFF00FF;
  85. 天量:=VOL=HHV(VOL,0);
  86. DRAWTEXT(天量,C,'-------高位天量卖'),COLORYELLOW;
  87. BIAS1:=(C-MA(C,6))/MA(C,6)*100;
  88. BIAS2:=(C-MA(C,12))/MA(C,12)*100;
  89. BIAS3:=(C-MA(C,24))/MA(C,24)*100;
  90. BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
  91. 乖离:=MA(BIAS,3);
  92. DRAWTEXT(CROSS(BIAS,乖离) AND 乖离<-9,C,'---------二次BIAS乖离底买'),COLORGREEN;
  93. COST(50),COLORGREEN,CIRCLEDOT;
  94. TY:=C;
  95. HD:=FILTER(BACKSET(FILTER(ref(TY,10)=HHV(TY,2*10+1),10),10+1),10);
  96. LD:=FILTER(BACKSET(FILTER(ref(TY,10)=LLV(TY,2*10+1),10),10+1),10);
  97. A:=ref(C,BARSLAST(HD));
  98. B:=ref(C,BARSLAST(LD));
  99. T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
  100. T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
  101. 波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
  102. STICKLINE(T1,A,A,9,0),COLORFF00FF;
  103. 波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
复制代码


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

返回列表