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

[大智慧指标] [转载]组合拳牛股跑不了(主图+副图指标、源码、附图、有用法说明)

[大智慧指标] [转载]组合拳牛股跑不了(主图+副图指标、源码、附图、有用法说明)

微信截图_20181020091039.png
主图
  1. [拾金主图]

  2. MMS:=MA(SMA((L+H+2*C)/4-REF((L+H+2*C)/4,1),5,1)/SMA(ABS((L+H+2*C)/4-REF((L+H+2*C)/4,1)),5,1)*100,1)+50;
  3. G1:=IF(-MMS>95,0,20);
  4. UOO:=(-(((CLOSE-LLV(CLOSE,7))/(HHV(CLOSE,7)-LLV(CLOSE,7))*100=100)>0 AND G1)+1);
  5. 明日均线:=REF(C,2)*2-REF(C,5),LINETHICK0,COLOR550055 ;
  6. 后日均线:=REF(C,1)*2-REF(C,4),LINETHICK0,COLOR008800;
  7. 大后天均线:=C*2-REF(C,3),LINETHICK0,COLOR008888;
  8. KS:=(((CLOSE - EMA(CLOSE,13)) / EMA(CLOSE,13)) * (0 - 100));
  9. KS1:=IF(BARSCOUNT(C)=1,C/10000,(1-C/SMA(C,13,1))*100);
  10. 趋势线:=EMA(((KS / 10) + EMA(CLOSE,10)),3);
  11. AA:=-100*(趋势线-CLOSE)/趋势线;
  12. AC:=(EMA(AA,5) );
  13. SSL:=EMA(CLOSE,3);
  14. MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
  15. MM:=MA(MMV,1);
  16. STICKLINE(((SSL>MM)),SSL,MM,0.01,0),COLORRED;
  17. SA:=(MM*0.985);
  18. SS:=(MA(CLOSE,5));
  19. DD:=(MA(CLOSE,13));
  20. GG:=(MA(CLOSE,21));
  21. 捞钱手:IF(((SSL>MM)),MM,SA),LINETHICK2,COLORFF00FF;
  22. {IF(SSL<MM,捞钱手,DRAWNULL),LINETHICK2,COLORFFFFFF;}
  23. VAR2Y:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
  24. VAR3Y:=(((CLOSE - REF(OPEN,29)) / REF(OPEN,29)) * 100);
  25. VAR4Y:=REF(CLOSE,1);
  26. VAR5Y:=((SMA(MAX((CLOSE - VAR4Y),0),6,1) / SMA(ABS((CLOSE - VAR4Y)),6,1)) * 100);
  27. VAR6Y:=((SMA(MAX((CLOSE - VAR4Y),0),12,1) / SMA(ABS((CLOSE - VAR4Y)),12,1)) * 100);
  28. VAR7Y:=((SMA(MAX((CLOSE - VAR4Y),0),24,1) / SMA(ABS((CLOSE - VAR4Y)),24,1)) * 100);
  29. VAR8Y:=(((CLOSE - LLV(LOW,45)) / (HHV(HIGH,45) - LLV(LOW,45))) * 100);
  30. VAR9Y:=SMA(VAR8Y,3,1);
  31. VARAY:=SMA(VAR9Y,3,1);
  32. VARBY:=((3 * VAR9Y) - (2 * VARAY));
  33. VARCY:=(CROSS(VAR5Y,10) AND (VAR3Y < (0 - (28 * 20))));
  34. VARDY:=((100 - CROSS(76,VAR5Y)) AND (VAR3Y > (5*20)));
  35. DRAWICON(((CROSS(76,VAR5Y) AND (VAR3Y>5))),(HIGH*1.01),2),COLORFFFFFF;
  36. VAREY:=((((CROSS(VAR9Y,VARAY) AND (VARAY < 10)) AND (VAR3Y < (0 - 30))) AND (VAR2Y > 3)) * 30);
  37. VARFY:= - ((((VARAY < 11) AND (VAR5Y < 15)) AND (VAR3Y < (0 - 26))) * 10);
  38. DRAWICON((CROSS(VARFY,(0 - 9))),(LOW * 0.998),1);
  39. 能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
  40. 上开:=O;
  41. 上收:=C;
  42. 上高:=H;
  43. 上低:=L;
  44. JJ:=(上开+上高+上低)/3;
  45. A:=EMA(JJ,4);
  46. 智能黄金线:A,COLORYELLOW,LINETHICK1;
  47. B:=REF(A,1);
  48. STICKLINE(((SSL<MM)),捞钱手,智能黄金线,0.01,0),COLORFFFF00;
  49. VA1:=EMA(上收,8);
  50. VA2:=EMA(上收,20);
  51. DRAWTEXT(CROSS(VA2,VA1),VA1*1.10,'止 损'),COLORYELLOW;
  52. DRAWTEXT(CROSS(VA1,VA2)AND(C>=O)AND 智能黄金线>REF(智能黄金线,1),VA1*0.98,'★买入'),COLOR00FF00;
  53. 选手A:=MA(上收,3);
  54. 箱顶A:=MA(REF(HHV(上收,6),1),3);
  55. 箱底A:=MA(REF(LLV(上收,3),1),3);
  56. T1:=MA(上收,20)>=REF(MA(上收,20),1);
  57. T2:=CROSS(选手A,箱底A) AND 箱顶A/箱底A>100/100 AND T1;
  58. T3:=CROSS(箱顶A,选手A) AND 箱顶A/箱底A>100/100;
  59. 选手:=MA(上收,2);
  60. 箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK2;
  61. 箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK2;
  62. T4:=CROSS(选手,箱底) AND 箱顶/箱底>110/100;
  63. T5:=CROSS(箱顶,选手) AND 箱顶/箱底>110/100;
  64. VAR1:=(上收-LLV(上低,27))/(HHV(上高,27)-LLV(上低,27))*100;
  65. VAR2:=SMA(VAR1,3,1);
  66. VAR3:=SMA(VAR2,3,1);
  67. VAR4:=SMA(VAR3,3,1);
  68. {DRAWTEXT(VAR3 >=VAR4 ,箱顶,'--中期好'),COLOR00FFFF;
  69. DRAWTEXT(VAR3<VAR4 ,箱顶,'--中期坏'),COLORF0F000;
  70. DRAWTEXT(A>B ,箱底,'--短期好'),COLOR00FFFF;
  71. DRAWTEXT(A<B ,箱底,'--短期坏'),COLORF0F000;}
  72. DRAWTEXT(CROSS(VAR3,VAR4)AND(C>=O)AND VAR3<40 AND UOO>0,箱底,'★'),COLORF00FF0;
  73. DRAWTEXT(CROSS(VAR4,VAR3) AND VAR4>75 ,箱顶*1.03,'★减磅'),COLORF0F000;
  74. STICKLINE(C>=O,C,O,5,0),COLORRED;
  75. STICKLINE(C>=O,C,O,3,0),COLORB0B0FF;
  76. STICKLINE(C>=O,C,O,1,0),COLORYELLOW;
  77. STICKLINE(C>=O,H,L,0,0),COLORYELLOW;
  78. STICKLINE(C<=O,C,O,5,0),colorFFAA00;
  79. STICKLINE(C<=O,C,O,3,0),COLORFFFF00;
  80. STICKLINE(C<=O,C,O,1,0),COLORFFFF00;
  81. STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
  82. {K线卖提示}
  83. QC0:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
  84. STICKLINE(QC0>=91 AND (CLOSE-LLV(CLOSE,5))/(HHV(CLOSE,5)-LLV(CLOSE,5))*100>99.9,OPEN,CLOSE,3,0),COLOR3366FF;
  85. {K线超卖提示}
  86. SQ1:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
  87. SQ2:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(ABS(C-REF(C,1)),7,1)*100;
  88. CM1:=IF(SQ1<12,30,0);
  89. CM2:=IF(SQ2<12,30,0);
  90. ZB1:=(CLOSE-LLV(CLOSE,10))/(HHV(CLOSE,10)-LLV(CLOSE,10))*100;
  91. WWW:=ZB1<1;
  92. W:=IF(WWW,-20,0);
  93. A01:=SMA(ABS((LOW - REF(LOW,1))),3,1) / SMA(MAX((LOW - REF(LOW,1)),0),3,1) *100;
  94. A02:=EMA(IF(CLOSE *1.3,A01 *10,A01 /10),3);
  95. A03:=LLV(LOW, 30);
  96. A04:=HHV(A02, 30);
  97. A05:=EMA(IF((LOW <= A03),(A02 + A04*2)/2,0),3) /6180 *2.5;
  98. A06:=IF((A05 >15),15,A05);
  99. KX:=IF(A06>=1.7,-20,0);
  100. ZY:=MA(((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+2*(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100+3*(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100)/6,3);
  101. ZY1:=IF(ZY<-6,-20,0);
  102. RKS:=REF(KS,1);
  103. MLS:=((((RKS / KS) > 1.23) AND (RKS > 13)) AND ((CLOSE / REF(CLOSE,1)) > 1.03));
  104. {超卖一}STICKLINE(CM1 AND IF(KX AND W AND ZY1,-16,10)<0,L,L*0.998,7,0),COLOR0089FF{超卖一:橙};
  105. {超卖二}STICKLINE(IF(KX AND W AND ZY1,-16,10)<0 AND CM1,L*0.998,L*0.996,7,0),COLORGREEN{超卖二:绿};
  106. {超跌}STICKLINE(CM1 AND IF(KX AND W AND ZY1,-16,10)<0 AND(KS>13),L*0.996,L*0.994,7,0),COLORYELLOW{超跌};
  107. {反弹}STICKLINE((MLS=1),L,L*0.998,7,0),COLORFFFF00;
  108. {K线买提示}
  109. VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
  110. VARE :=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  111. VARF :=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  112. VAR10 :=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  113. VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  114. VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  115. VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  116. VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  117. VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  118. VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  119. VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  120. VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  121. VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
  122. FK:=100*(C-REF(C,1))/REF(C,1);
  123. PK1:=IF(C<REF(O,1) AND FK<0,1,0);
  124. PK2:=IF(C<REF(O,2) AND FK<0,1,0);
  125. STICKLINE((PK1=0 AND REF(PK1,1)=1 AND PK2=0 AND REF(PK2,1)=1)AND(趋势线>REF(趋势线,1)OR 智能黄金线>REF(智能黄金线,1)),OPEN,CLOSE,3,0),COLORFF00FF;
  126. PK3:=(((CLOSE / OPEN) > 1.04) AND (CLOSE <(SMA(HIGH,21,2) * 1.05))) AND ((CLOSE - REF(CLOSE,1)) > 0);
  127. STICKLINE(PK3 AND(趋势线>REF(趋势线,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORFF00FF;
  128. STICKLINE(VAR19 AND(趋势线>REF(趋势线,1)OR 智能黄金线>REF(智能黄金线,1)),CLOSE,OPEN,3,0),COLORFF00FF;
  129. 买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
  130. 买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);
  131. STICKLINE(买进条件 AND 捞钱手>智能黄金线 AND 智能黄金线>REF(智能黄金线,1),L,L*0.998,7,0),COLORWHITE;
  132. 买线:=EMA(C,2);
  133. 卖线:=EMA(SLOPE(C,21)*20+C,42);  
  134. DRAWTEXT(CROSS(买线,卖线)AND 箱顶>=REF(箱顶,1),箱底,'★'),COLOR00FFFF;
  135. STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,3,0),COLOR00FFFF;
复制代码


副图
1、【十九无敌】

  1. i:=MA(BARSLAST(HIGH=HHV(HIGH,16))*IF(CLOSE<OPEN,VOL,1),3);
  2. r:=MA(BARSLAST(LOW=LLV(LOW,18))*IF(CLOSE>OPEN,VOL,1),4);
  3. 短线逃顶:=IF(i,0,1),color00ff00;
  4. DRAWICON(短线逃顶,98,8);


  5. Var1jo:=IF(DATE<1090830 AND DATE>900101,1,0);
  6. Var2jo:=LLV(LOW,10);
  7. Var3jo:=HHV(HIGH,25);
  8. 警戒线:= 2.8*Var1jo;
  9. 减仓线:= 3.2*Var1jo;
  10. 动力线:=EMA((CLOSE-Var2jo)/(Var3jo-Var2jo)*4,4)*Var1jo;
  11. DRAWICON(CROSS(动力线,警戒线),99,5);

  12. {黑码发现的底部}{}
  13. Vaz4:=(CLOSE-LLV(CLOSE,126))/(HHV(CLOSE,126)-LLV(CLOSE,126))*100;
  14. Vaz24:=Vaz4=0;
  15. STICKLINE(Vaz24>0,-3,-9,1,2), ,colorred,linethick3 ;
  16. Vaz25:=Vaz4=100;
  17. STICKLINE(Vaz25>0,101,105,1,2), ,colorgreen,linethick2;

  18. {睡猫买入}
  19. {n:DMA(AMOUNT/VOL/100,VOL/CAPITAL)/close;}{n日平均:ema(成本比,n);}
  20. 睡猫:if(c<MA(EMA(CLOSE,34)*0.82,5) and close/DMA(AMOUNT/VOL/100,VOL/CAPITAL)<0.64{下轴成本为0.64},30,0),linethick2,COLORffff00;

  21. {南极}
  22. 南极:((((MA(CLOSE,5))-CLOSE)/CLOSE>3/100) AND (((MA(CLOSE,10))-(MA(CLOSE,5)))/(MA(CLOSE,5))>0.03) AND (LLV(CLOSE,30)=LLV(CLOSE,120)))*40,linethick2,colorF00FF0;

  23. {一剑封喉}
  24. Var9a:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),0-VOL,0)),0);
  25. Var9b:=SUMBARS(VOL,CAPITAL);
  26. Var9c:=IF(CLOSE>LLV(CLOSE,Var9b),1,-1);
  27. Var9d:=IF(Var9a>LLV(Var9a,Var9b),1,-1);
  28. Var9e:=Var9c*Var9d;
  29. var9f:=IF(Var9e=-1,1,0);
  30. yjfh:(var9f AND CLOSE=LLV(CLOSE,120))*48,linethick1,stick,colorred;


  31. {等待底部买入}
  32. 买入: IF(CROSS((4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)-
  33. 3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),58,0),stick,color0099ff,linethick6;
  34. drawtext(买入,45,'我买'),color66ffcc;

  35. {导弹}
  36. Var1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
  37. Var1B:=SMA((SMA(Var1A,4,1)-50)*2,3,1);
  38. Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
  39. Var1D:=SMA(Var1C,4,1);
  40. Var1E:=SMA(Var1D,3,1);
  41. Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
  42. VarE:=REF(LOW,1)*0.9;
  43. VarF:=LOW*0.9;
  44. Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
  45. Var11:=EMA(Var10,30);
  46. Var12:=CLOSE-REF(CLOSE,1);
  47. Var13:=MAX(Var12,0);
  48. Var14:=ABS(Var12);
  49. Var15:=SMA(Var13,7,1)/SMA(Var14,7,1)*100;
  50. Var16:=SMA(Var13,13,1)/SMA(Var14,13,1)*100;
  51. Var17:=BARSCOUNT(CLOSE);
  52. Var18:=SMA(MAX(Var12,0),6,1)/SMA(ABS(Var12),6,1)*100;
  53. Var19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
  54. Var20:=Var18<=25 AND Var19<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var11-CLOSE>=-0.25 AND Var15<22 AND Var16<28 AND Var17>50;
  55. STICKLINE(Var20,0,95,5,0),LINETHICK2,COLORRED,;
  56. DRAWTEXT(CROSS(Var20,0.5) AND COUNT(Var20=1,10)=1,60,'发射导弹 '),LINETHICK7 , COLORwhite;

  57. {我卖}{}
  58. Vat3:=REF(CLOSE,1);
  59. Vat4:=SMA(MAX(CLOSE-Vat3,0),6,1)/SMA(ABS(CLOSE-Vat3),6,1)*100;
  60. 我卖:(CROSS(80,Vat4))*82,stick,LINETHICK6,color9900CC ;
  61. drawtext(我卖,80,'我卖'),colorred;

  62. {玄黄卖出}
  63. 减磅: IF(CROSS((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)),90),60,0),stick,linethick4,colorgreen;
  64. drawtext(减磅,50,'减磅'),colorwhite;

  65. {底部雷达}
  66. Varo2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;
  67. Varo3:=SMA(SMA(Varo2,3,1),3,1);
  68. Varo4:=EMA(Varo3,5);
  69. Varo5:=LLV(LOW,26);
  70. Varo6:=HHV(HIGH,34);
  71. Varo7:=EMA((CLOSE-Varo5)/(Varo6-Varo5)*4,4)*25;
  72. STICKLINE(CROSS(Varo4,10) AND Varo4>10,25,0,8,0),coloryellow,;
  73. 建仓区: IF((Varo7<10),80,100), ,linethick2 ,color00ccff;
  74. 派发区: IF((Varo7>90),20,0), , linethick2 ,color6699ff;

  75. {庄家踪迹中的买卖信号成功率为80-95 %}
  76. Vay3:=(CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100;
  77. VayA:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
  78. 成功率:IF(CROSS(((CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100),(EMA(Vay3,18))) AND CLOSE<VayA,50,0),STICK,COLORF0F000;

  79. STICKLINE(CROSS(((CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100),(EMA(Vay3,18))) AND CLOSE<VayA,high+75,0,8,0),COLORF0F000;
  80. DRAWICON(CROSS(((CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100),(EMA(Vay3,18))) AND CLOSE<VayA,high+82,1);
  81. DRAWTEXT(CROSS(((CLOSE-MA(CLOSE,30))/STD(CLOSE,15)*100),(EMA(Vay3,18))) AND CLOSE<VayA,high+60,'成功80-95%'),coloryellow;{★←-买卖信号成功率为80-95%}

  82. {Z马神君}
  83. 天马行空线:=ma(cost(85),5);
  84. 训马线:=ma(cost(15),5);
  85. 黑码线:=ma(cost(50),5);
  86. 天马踏地线:=ma(cost(1),7);
  87. 牵马绳:=ema(close,3);
  88. DRAWICON(cross(牵马绳,天马踏地线) ,-5, 6);
  89. DRAWICON(count(cross(天马行空线,牵马绳),20)=2 and 天马行空线/天马踏地线>1.6 ,95 , 10)
  90. {}
复制代码


2、【盘中参考】
  1. Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
  2. Var2:=2*ABS(Var1);
  3. Var3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
  4. Var4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
  5. Var5:=(HIGH+LOW+CLOSE)/3;
  6. Var6:=(Var5-MA(Var5,14))/(0.015*AVEDEV(Var5,14));
  7. Var7:=(Var5-MA(Var5,70))/(0.015*AVEDEV(Var5,70));
  8. Var8:=IF(Var6>=150 AND Var6<200 AND Var7>=150 AND Var7<200,10,0);
  9. Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);
  10. VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
  11. VarB:=100-ABS(VarA);
  12. VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
  13. VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
  14. VarE:=REF(LOW,1)*0.9;
  15. VarF:=LOW*0.9;
  16. Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
  17. Var11:=EMA(Var10,30);
  18. Var12:=Var11-CLOSE;
  19. Var13:=REF(CLOSE,1);
  20. Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;
  21. Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;
  22. Var16:=BARSCOUNT(CLOSE);
  23. Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
  24. Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
  25. Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
  26. Var1A:=(SMA(Var19,4,1)-50)*2;
  27. Var1B:=SMA(Var1A,3,1);
  28. Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
  29. Var1D:=SMA(Var1C,4,1);
  30. Var1E:=SMA(Var1D,3,1);
  31. Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
  32. Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var12>=-0.25 AND Var14<22 AND Var15<28 AND Var16>50,80,0);
  33. 情报: Var3;
  34. 天线: IF(VarB<90,VarB,100);
  35. 红军: IF(Var1>0,Var1,0),colorred, LINESTICK;
  36. 绿军: IF(Var1<0,Var2,0),colorgreen,LINESTICK;
  37. 导弹: Var20;
  38. 预警系统: IF(Var7>=200 AND Var6>=150,15,IF(Var7<=-200 AND Var6<=-150,-15,Var9))+60;
  39. STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0);
  40. STICKLINE(Var3<REF(Var4,1),Var3,Var4,8,0);
  41. Var21:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);
  42. Var22:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1);
  43. Var23:=红军>50 AND 预警系统>60 AND 天线=100;
  44. Var24:=红军>48 AND 预警系统>60 AND 天线<100;
  45. Var25:=绿军>38 AND 预警系统<55;
  46. Var26:=导弹>50 AND 天线<90;
  47. Var27:=Var3<REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
  48. Var28:=Var3>=REF(Var4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=60 AND 导弹=0 AND 绿军>=REF(绿军,1) AND VarC<REF(VarD,1);
  49. DRAWTEXT(Var21 AND COUNT(Var21,30)=1,100,'上升通道,持股待长或高抛低吸!');
  50. DRAWTEXT(Var22 AND COUNT(Var22,30)=1,90,'下降通道,小心无量阴跌! ');
  51. DRAWTEXT(Var23 AND COUNT(Var23,30)=1,70,'上涨过急,需要调整,短线先抛出! ');
  52. DRAWTEXT(Var24 AND COUNT(Var24,30)=1,80,'庄家出货,大跌在即,中线抛出! ');
  53. DRAWTEXT(Var25 AND COUNT(Var25,30)=1,50,'不必杀跌,应有小反弹 ,跌停除外!');
  54. DRAWTEXT(Var26 AND COUNT(Var26,30)=1,30,'坚决抢反弹,但巨量封跌停除外 ');
  55. DRAWTEXT(Var27 AND COUNT(Var27,30)=1,40,'有大资金进场迹象,关注!');
  56. DRAWTEXT(Var28 AND COUNT(Var28,30)=1,20,'见顶回落');
复制代码


3、【庄家行踪】
  1. Var1:=EMA(EMA(CLOSE,13),13);
  2. 控盘:= (Var1-REF(Var1,1))/REF(Var1,1)*1000,colorffcccc,pointdot;
  3. STICKLINE(控盘<0,控盘,0,4,0),colorwhite;
  4. 无庄控盘:控盘<0,colorwhite;
  5. STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,4,1),colorred;
  6. 有庄控盘: 控盘>REF(控盘,1) AND 控盘>0,colorred;
  7. Var2:=100*WINNER(CLOSE*0.95);
  8. STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,4,0),color00ff00;
  9. 主力出货: 控盘<REF(控盘,1) AND 控盘>0,color00ff00;
  10. STICKLINE(Var2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,4,0),colorff00ff;
  11. 高度控盘: Var2>50 AND COST(85)<CLOSE AND 控盘>0,colorff00ff;
  12. a10:=CROSS(控盘,0);
  13. 开始控盘:if(a10,6,0),coloryellow;
  14. VARF:=TROUGHBARS(3,15,1)<4;
  15. 多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
  16. 0,COLORRED;
  17. STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,30,0),COLORRED;
  18. STICKLINE(FILTER(VARF=1,5),50,0,10,0),COLORRED;
  19. DRAWICON(FILTER(VARF=1,3),50,1);
  20. DRAWTEXT(FILTER(VARF=1,3),25,'关▲注'),COLORYELLOW;
复制代码

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

返回列表