通达信极品组合逍遥操盘同花顺通用公式

[复制链接]
查看386 | 回复0 | 2022-7-24 09:05:19 | 显示全部楼层 |阅读模式

通达信极品组合逍遥操盘同花顺通用公式

做波段用此指标再+成交量指标+极品主图公式足亦
   本指标{筹码}这部分有未来函数,这部分可删除,不影响使用
   通达信,同花顺通用{牛牛指标网提供:www.tdx001.com}
   用在同花顺中请删除所有{}部分
   本指标集主力进出,抄底,逃顶,短,中长趋势,即时盘中筹码于一体
   本指标用来做权证应该相当不错,当然用在股票上也不错的
   本指标可用在分时
   可用买警1,2,3进行选股(选出的股票保证是阶段底部)
   强势股的卖点配合成交量,主图均线系统决定是否卖出
未来函数:
WINNER
获利盘比例.
用法:
WINNER(CLOSE),表示以当前收市价卖出的获利盘比例,例如返回0.1表示10%获利盘;WINNER(10.5)表示10.5元价格的获利盘比例该函数仅对日线分析周期有效
CAPITAL  
当前流通股本  
这两个未来函数不影响波段操作
   
   
原码如下(图附后):
 

复制内容到剪贴板
  1. {秘密筹码}   
  2. VAR22:=REF(LOW,1);   
  3. VAR23:=((SMA(ABS((LOW - VAR22)),3,1) / SMA(MAX((LOW - VAR22),0),3,1)) * 100);   
  4. VAR24:=EMA(IF((CLOSE * 1.2),(VAR23 * 10),(VAR23 / 10)),3);   
  5. VAR25:=LLV(LOW,38);   
  6. VAR26:=HHV(VAR24,38);   
  7. VAR27:=IF(LLV(LOW,90),1,0);   
  8. VAR28:=((EMA(IF((LOW <= VAR25),((VAR24 + (VAR26 * 2)) / 2),0),3) / 618) * VAR27);    
  9. 主力秘密筹码:STICKLINE(VAR28,0,VAR28,6,1),COLORRED;    
  10. 动态底部:EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),30,1),0),3)*10,STICK,COLORYELLOW,LINETHICK2;   
  11. {浮动筹码}   
  12. VAR111:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;   
  13. VAR112:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  14. VAR113:=(SMA(VAR112,3,1)-18)*1.55;   
  15. VAR114:=SMA(VAR113,3,1);   
  16. VAR115:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;   
  17. VAR116:=SMA(VAR115,10,1);   
  18. VAR117:=(EMA(SMA(VAR116,8,1),34)-25)*2.6;   
  19. VAR118:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);   
  20. VAR119:=POW(MA(LOW,5),2)+MA(LOW,5);   
  21. VAR11A:=POW(MA(HIGH,5),2)+MA(HIGH,5);   
  22. VAR11B:=((VAR118-LLV(VAR119,64))/(HHV(VAR11A,64)-LLV(VAR119,64))*150+65-10)/2;   
  23. VAR11C:=SMA(VAR11B,3,1)*1.5-46;   
  24. VAR11D:=SMA(VAR11C,3,1);   
  25. VAR11E:=3*VAR11C-2*VAR11D;   
  26. VAR11F:=(VAR111+VAR112+VAR115)/3;   
  27. VAR1110:=((VAR113+VAR113+VAR116+VAR11C)/4-15)*1.67;   
  28. VAR1111:=((VAR114+VAR114+VAR117+VAR11D)/4-15)*1.67;   
  29. VAR1112:=((VAR111+VAR115*2+VAR11F+VAR1110+VAR1111+VAR11B+VAR11C+VAR11D+VAR11E)/10-15)*1.67;   
  30. VAR1113:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;   
  31. VAR1114:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;   
  32. VAR1115:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;   
  33. VAR1116:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;   
  34. VAR1117:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;   
  35. VAR1118:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;   
  36. VAR1119:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;   
  37. VAR111A:=((VAR1113*8+VAR1114*8+VAR1115*8+VAR1116+VAR1117+VAR1118+VAR1119)/28-0.1)*185;   
  38. VAR111B:=SMA(VAR111A,3,1);   
  39. VAR111C:=(SMA(VAR111B,8,1)-8)*1.18;   
  40. 浮动筹码: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/13,COLORWHITE,POINTDOT;   
  41. 浮动筹码1: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/21,COLORWHITE,POINTDOT ;   
  42. 浮动筹码2: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/34,COLORWHITE,POINTDOT;   
  43. {主要部分}   
  44. 止损:=CLOSE/(1.04),COLOR00FF00;   
  45. 逃命:=CLOSE/1.06,COLOREE8400;   
  46. 趋势: 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),LINETHICK2,COLORWHITE;   
  47. 买警: IF(趋势<=30,40,0),LINETHICK1,COLORGREEN;   
  48. 买警1: IF(趋势<=25,30,0),LINETHICK1,COLORYELLOW;   
  49. 买警2: IF(趋势<=15,20,0),LINETHICK1,COLORMAGENTA;   
  50. 买警3: IF(趋势<=10,10,0),LINETHICK1,COLORRED;   
  51. 卖1: IF(趋势>=95,86,95),LINETHICK2,COLORRED;   
  52. 底部: 18;   
  53. 地板: 5,LINETHICK3,COLORGREEN;   
  54. 卖2: IF(趋势>=88,79,88),LINETHICK2,COLORLIMAGENTA;   
  55. 买入:=C,COLORRED;   
  56. 卖3: IF(趋势>=81,66,81),LINETHICK2,COLORMAGENTA;   
  57. 卖4: IF(趋势>=74,57,74),LINETHICK2,COLORBLUE;   
  58. {中长趋势}   
  59. RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;   
  60. K1:=SMA(RSV1,6,1);   
  61. D1:=SMA(K1,6,1);   
  62. STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,3 ,0),COLORRED;   
  63. STICKLINE(EMA(D1,3)<REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,3 ,0 ),COLORYELLOW;   
  64. RSV2:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;   
  65. K2:=SMA(RSV2,12,1);   
  66. D2:=SMA(K2,12,1);   
  67. STICKLINE(EMA(D2,6)>REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0),COLORMAGENTA;   
  68. STICKLINE(EMA(D2,6)<REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0 ),COLORGREEN;   
  69. {筹码}   
  70. VAR1:=1;   
  71. VAR2:=1/WINNER(CLOSE);   
  72. VAR3:=MA(CLOSE,13);   
  73. VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);   
  74. VAR5:=LLV(LOW,75);   
  75. VAR6:=HHV(HIGH,75);   
  76. VAR7:=(VAR6-VAR5)/100;   
  77. VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);   
  78. VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);   
  79. VARA:=3*VAR8-2*SMA(VAR8,15,1);   
  80. VARB:=3*VAR9-2*SMA(VAR9,15,1);   
  81. VARC:=100-VARB;   
  82. 主力:= (100-VARA)*VAR1,COLOR0099FF;   
  83. 散户:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW;   
  84. 新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT ;   
  85. VARD:=散户>VAR4;   
  86. VARE:=REF(LOW,1)*0.9;   
  87. VARF:=LOW*0.9;   
  88. VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;   
  89. VAR11:=EMA(VAR10,30);   
  90. VAR12:=CLOSE-REF(CLOSE,1);   
  91. VAR13:=MAX(VAR12,0);   
  92. VAR14:=ABS(VAR12);   
  93. VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;   
  94. VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;   
  95. VAR17:=BARSCOUNT(CLOSE);   
  96. VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;   
  97. VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;   
  98. VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;   
  99. VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);   
  100. VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;   
  101. VAR1D:=SMA(VAR1C,4,1);   
  102. VAR1E:=SMA(VAR1D,3,1);   
  103. VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;   
  104. 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;   
  105. STICKLINE(VARD,VAR4,散户,5,0),COLORWHITE;   
  106. STICKLINE(1,新庄,100,3,0),COLORYELLOW;   
  107. STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3;   
  108. VAR1Z:=3;   
  109. VAR2Z:=(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));   
  110. 股价启动在即:IF(CROSS(VAR2Z,VAR1Z),100,0),COLORYELLOW;   

 

C/C++ www.zegu.cn 择股网提供 Code复制内容到剪贴板
  1. 大智慧L2用   
  2. {秘密筹码}   
  3. VAR22:=REF(LOW,1);   
  4. VAR23:=((SMA(ABS((LOW - VAR22)),3,1) / SMA(MAX((LOW - VAR22),0),3,1)) * 100);   
  5. VAR24:=EMA(IF((CLOSE * 1.2),(VAR23 * 10),(VAR23 / 10)),3);   
  6. VAR25:=LLV(LOW,38);   
  7. VAR26:=HHV(VAR24,38);   
  8. VAR27:=IF(LLV(LOW,90),1,0);   
  9. VAR28:=((EMA(IF((LOW <= VAR25),((VAR24 + (VAR26 * 2)) / 2),0),3) / 618) * VAR27);    
  10. 主力秘密筹码:STICKLINE(VAR28,-20,VAR28-20,6,1),COLORRED;    
  11. AAAAAA:-20,LINETHICK3;   
  12. {浮动筹码}   
  13. VAR111:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;   
  14. VAR112:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  15. VAR113:=(SMA(VAR112,3,1)-18)*1.55;   
  16. VAR114:=SMA(VAR113,3,1);   
  17. VAR115:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100;   
  18. VAR116:=SMA(VAR115,10,1);   
  19. VAR117:=(EMA(SMA(VAR116,8,1),34)-25)*2.6;   
  20. VAR118:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);   
  21. VAR119:=POW(MA(LOW,5),2)+MA(LOW,5);   
  22. VAR11A:=POW(MA(HIGH,5),2)+MA(HIGH,5);   
  23. VAR11B:=((VAR118-LLV(VAR119,64))/(HHV(VAR11A,64)-LLV(VAR119,64))*150+65-10)/2;   
  24. VAR11C:=SMA(VAR11B,3,1)*1.5-46;   
  25. VAR11D:=SMA(VAR11C,3,1);   
  26. VAR11E:=3*VAR11C-2*VAR11D;   
  27. VAR11F:=(VAR111+VAR112+VAR115)/3;   
  28. VAR1110:=((VAR113+VAR113+VAR116+VAR11C)/4-15)*1.67;   
  29. VAR1111:=((VAR114+VAR114+VAR117+VAR11D)/4-15)*1.67;   
  30. VAR1112:=((VAR111+VAR115*2+VAR11F+VAR1110+VAR1111+VAR11B+VAR11C+VAR11D+VAR11E)/10-15)*1.67;   
  31. VAR1113:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5))*(-1)+0.9;   
  32. VAR1114:=(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10))*(-1)+0.92;   
  33. VAR1115:=(HHV(HIGH,15)-CLOSE)/(HHV(HIGH,15)-LLV(LOW,15))*(-1)+0.93;   
  34. VAR1116:=(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55))*(-1)+0.94;   
  35. VAR1117:=(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89))*(-1)+0.95;   
  36. VAR1118:=(HHV(HIGH,120)-CLOSE)/(HHV(HIGH,120)-LLV(LOW,120))*(-1)+0.91;   
  37. VAR1119:=(HHV(HIGH,180)-CLOSE)/(HHV(HIGH,180)-LLV(LOW,180))*(-1)+0.96;   
  38. VAR111A:=((VAR1113*8+VAR1114*8+VAR1115*8+VAR1116+VAR1117+VAR1118+VAR1119)/28-0.1)*185;   
  39. VAR111B:=SMA(VAR111A,3,1);   
  40. VAR111C:=(SMA(VAR111B,8,1)-8)*1.18;   
  41. 浮动筹码: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/13,COLORWHITE,POINTDOT;   
  42. 浮动筹码1: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/21,COLORWHITE,POINTDOT ;   
  43. 浮动筹码2: (VAR1110+VAR1111+VAR1112+VAR11C+VAR11D+VAR11E+VAR111C+VAR117)/34,COLORWHITE,POINTDOT;   
  44. {主要部分}   
  45. 止损:=CLOSE/(1.04);   
  46. 逃命:=CLOSE/1.06;   
  47. 趋势: 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),LINETHICK2,COLORWHITE;   
  48. 买警: IF(趋势<=30,40,0),LINETHICK1,COLORGREEN;   
  49. 买警1: IF(趋势<=25,30,0),LINETHICK1,COLORYELLOW;   
  50. 买警2: IF(趋势<=15,20,0),LINETHICK1,COLORMAGENTA;   
  51. 买警3: IF(趋势<=10,10,0),LINETHICK3,COLORRED;   
  52. 卖1: IF(趋势>=95,86,95),LINETHICK2,COLORRED;   
  53. 底部: 18;   
  54. 地板: 5,LINETHICK3,COLORGREEN;   
  55. 卖2: IF(趋势>=88,79,88),LINETHICK2,COLORYELLOW;   
  56. 买入:=C;   
  57. 卖3: IF(趋势>=81,66,81),LINETHICK2,COLORMAGENTA;   
  58. 卖4: IF(趋势>=74,57,74),LINETHICK2,COLORBLUE;   
  59. {中长趋势}   
  60. RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;   
  61. K1:=SMA(RSV1,6,1);   
  62. D1:=SMA(K1,6,1);   
  63. STICKLINE(EMA(D1,3)>REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,3 ,0),COLORRED;   
  64. STICKLINE(EMA(D1,3)<REF(EMA(D1,3),1) ,EMA(D1,3) ,REF(EMA(D1,3),1) ,3 ,0 ),COLORYELLOW;   
  65. RSV2:=(CLOSE-LLV(LOW,120))/(HHV(HIGH,120)-LLV(LOW,120))*100;   
  66. K2:=SMA(RSV2,12,1);   
  67. D2:=SMA(K2,12,1);   
  68. STICKLINE(EMA(D2,6)>REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0),COLORMAGENTA;   
  69. STICKLINE(EMA(D2,6)<REF(EMA(D2,6),1) ,EMA(D2,6) ,REF(EMA(D2,6),1) ,3 ,0 ),COLORGREEN;   
  70. {筹码}   
  71. VAR1:=1;   
  72. VAR2:=1/WINNER(CLOSE);   
  73. VAR3:=MA(CLOSE,13);   
  74. VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);   
  75. VAR5:=LLV(LOW,75);   
  76. VAR6:=HHV(HIGH,75);   
  77. VAR7:=(VAR6-VAR5)/100;   
  78. VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);   
  79. VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);   
  80. VARA:=3*VAR8-2*SMA(VAR8,15,1);   
  81. VARB:=3*VAR9-2*SMA(VAR9,15,1);   
  82. VARC:=100-VARB;   
  83. 主力:= (100-VARA)*VAR1;   
  84. 散户:=MA(WINNER(CLOSE*0.95)*100,3)*VAR1;   
  85. 新庄:=(100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1;   
  86. VARD:=散户>VAR4;   
  87. VARE:=REF(LOW,1)*0.9;   
  88. VARF:=LOW*0.9;   
  89. VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;   
  90. VAR11:=EMA(VAR10,30);   
  91. VAR12:=CLOSE-REF(CLOSE,1);   
  92. VAR13:=MAX(VAR12,0);   
  93. VAR14:=ABS(VAR12);   
  94. VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;   
  95. VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;   
  96. VAR17:=BARSCOUNT(CLOSE);   
  97. VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;   
  98. VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;   
  99. VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;   
  100. VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);   
  101. VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;   
  102. VAR1D:=SMA(VAR1C,4,1);   
  103. VAR1E:=SMA(VAR1D,3,1);   
  104. VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;   
  105. 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;   
  106. STICKLINE(VARD,VAR4,散户,5,0),COLORWHITE;   
  107. STICKLINE(1,新庄,100,3,0),COLORYELLOW;   
  108. STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3;   
  109. VAR1Z:=3;   
  110. VAR2Z:=(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));   
  111. 股价启动在即:IF(CROSS(VAR2Z,VAR1Z),100,0),COLORYELLOW;   

128339914.png

128339914.png  

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则