通达信龙虎霸副图公式源码

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

通达信龙虎霸副图公式源码

{牛牛指标网提供:www.tdx001.com}
龙为吉祥物,虎出必伤人。
信号指标,一目了然。
【选准股票,认定指标,信号出现,坚决执行,波段操作,必有收益】
 

复制内容到剪贴板
  1. STICKLINE(C>0,0,120,15,0),COLORBLUE;   
  2. RSV:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;   
  3. FASTK:=SMA(RSV,3,1);   
  4. 龙:SMA(FASTK,2,1);   
  5. 龙D:=SMA(龙,5,1);   
  6. DRAWBAND(龙D,RGB(0,104,154),龙,RGB(255,0,0));   
  7. STICKLINE(龙>=龙D,龙D,龙,3,0),COLOR000085;   
  8. STICKLINE(龙<龙D,龙D,龙,3,0),COLOR324800;   
  9. DRAWTEXT(CROSS(龙D,龙) AND 龙>70,50,'卖'),COLORGREEN;   
  10. L1:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60;   
  11. 凤:SMA(L1,3,1),COLORYELLOW;   
  12. 凤D:=SMA(凤,3,1),COLORRED;   
  13. DRAWBAND(凤D,RGB(0,128,0),凤,RGB(255,97,0));   
  14. DRAWTEXT(CROSS(凤D,凤)AND 凤>78,凤,'←快卖');   
  15. DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);   
  16. DEA:=EMA(DIFF,9);   
  17. MACD:=1000* (2*(DIFF-DEA))/EMA(C,30);   
  18. VARA:=EMA(REF(CLOSE,1),4);    
  19. VAR1:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100);    
  20. VAR2:=FILTER(MACD<0 AND MACD>REF(MACD,1) AND VAR1<20,5);   
  21. VAR3:=CROSS(VAR1,90);   
  22. 准备:IF(VAR1<3.5,15,0),COLORCYAN,LINETHICK2;   
  23. DRAWTEXT(VAR1<3.5,7,'准备'),COLORCYAN;   
  24. 钱进:IF(VAR2,20,0),COLORMAGENTA,LINETHICK3;   
  25. DRAWTEXT(VAR2,10,'“钱”进'),COLORRED;   
  26. DRAWTEXT(VAR3,70,'凤舞ラ小心'),COLORCYAN;   
  27. VAR4:=LLV(LOW,10);   
  28. VAR5:=HHV(H,25);   
  29. VAR6:=EMA((C-VAR4)/(VAR5-VAR4)*4,4);   
  30. DRAWTEXT(CROSS(3.5,VAR6),110,'急卖');   
  31. 恭喜:STICKLINE(CROSS(VAR6,0.3),-50,-30,3,0), COLOR00AAFF,LINETHICK1;   
  32. STICKLINE(CROSS(VAR6,0.3),-40,-30,3,0),COLORRED,LINETHICK1;   
  33. DRAWTEXT(CROSS(VAR6,0.3),-45,'恭喜'),COLORMAGENTA;   
  34. 发财:STICKLINE(CROSS(3.5,VAR6),100,120,2,0), COLORRED,LINETHICK2;   
  35. STICKLINE(CROSS(3.5,VAR6),110,120,2,0),COLORYELLOW,LINETHICK2;   
  36. DRAWTEXT(CROSS(3.5,VAR6),90,'发财'),COLORYELLOW;   
  37. 龙行凤影:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)   
  38. -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)   
  39. -LLV(LOW,27))*100,5,1),3,1);   
  40. 龙飞:IF(龙行凤影<=10,-20,-40),COLOR0000FF,LINETHICK2;   
  41. DRAWTEXT(龙行凤影<=10,-25,'龙飞'),COLORYELLOW;   
  42. DRAWTEXT(CROSS( 0,MACD)AND VAR1>75,110,'☆高空'),COLORFFFFFF;   
  43. 红红的天:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)   
  44. -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)   
  45. -LLV(LOW,27))*100,5,1),3,1);   
  46. 花开:IF(CROSS(红红的天,2),70,-50),COLORLIMAGENTA,LINETHICK2;   
  47. DRAWTEXT(CROSS(红红的天,2),75,'花开了'),COLORMAGENTA;   
  48. IF(CROSS(红红的天,2),70,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF77FF;   
  49. IF(CROSS(红红的天,2),70,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;   
  50. RSV1:=(((CLOSE - LLV(LOW,29)) / (HHV(HIGH,29) - LLV(LOW,29))) * 100);   
  51. K1:=MA(RSV1,5);   
  52. D1:=MA(K1,2);   
  53. J1:=((3 * K1) - (2 * D1));   
  54. 明天涨:IF((J1 < 5),25,0),COLORRED,LINETHICK2;   
  55. DRAWTEXT((J1 < 5),30,'明天涨'),COLORYELLOW;   
  56. R:=RSI;   
  57. MAR:=MA(R,3);   
  58. F:=100*(C-REF(C,1))/REF(C,1);   
  59. HHH:=EMA(R,25)+6,COLORBLUE;   
  60. GAODIAN:=REF(R,1)>REF(R,2) AND REF(R,1)>R;   
  61. DIDIAN:=(REF(R,1)<REF(R,2) AND REF(R,1)<R) OR (REF(R,1)=REF(R,2) AND REF(R,1)<R AND REF(R,2)<REF(R,3));   
  62. BIAOJI:=CROSS(HHH,R);   
  63. JIN:STICKLINE(REF(R,2)>REF(R,3) AND REF(R,2)>REF(R,1) AND R>REF(R,1)   
  64. AND MAR>REF(MAR,1)+1 AND REF(MAR,2)-REF(MAR,1)>-1   
  65. AND REF(R,1)<REF(MAR,1) AND REF(R,2)-REF(MAR,2)>-3   
  66. AND REF(R,1)<38 AND R<HHH AND F<8,100,120,2,0),COLORRED;   
  67. DRAWTEXT(JIN,110,'RSI买'),COLORYELLOW;   
  68. VAR7:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);   
  69. VAR8:=EMA(VAR7,5), LINETHICK2,COLOR6600FF;   
  70. VAR9:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK2;   
  71. STICKLINE(CROSS(VAR8,VAR9),0,20,2,0);   
  72. DRAWTEXT(CROSS(VAR8,VAR9),20,'追涨');   
  73. VOLUME:=VOL/10000,VOLSTICK;   
  74. MAVOL1:=MA(VOLUME,5)/10000;   
  75. MAVOL2:=MA(VOLUME,35)/10000;   
  76. MAVOL3:=MA(VOLUME,135)/10000;   
  77. 地量:IF(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),-25,-50),COLORMAGENTA,LINETHICK3;   
  78. DRAWTEXT(CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0),-29,' 地量'),COLORRED;   
  79. DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),-45,'CCI买点'),COLORYELLOW;   
  80. A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);   
  81. LC:=REF(CLOSE,1);   
  82. RSI2:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);   
  83. FF:=EMA(CLOSE,3);   
  84. MA15:=EMA(CLOSE,21);   
  85. 出局:IF(CROSS(88,RSI2),100,120),COLORLIGREEN,LINETHICK3;   
  86. DRAWTEXT(CROSS(88,RSI2),100,'虎'),COLORGREEN;   
  87. RSV3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;   
  88. K:=SMA(RSV3,3,1);   
  89. D:=SMA(K,3,1);   
  90. J:=3*K-2*D;   
  91. X:=LLV(J,2)=LLV(J,8);   
  92. 进场:IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,0,-20),COLORYELLOW,LINETHICK2;   
  93. DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,-10,'龙'),COLORYELLOW;   
  94. WZ:=100=CURRBARSCOUNT;   
  95. DRAWTEXT(WZ=1,-30,'【选准股票,认定指标,信号出现,坚决执行,波段操作,必有收益】'),COLORYELLOW;   

832322465.png

832322465.png

回复

使用道具 举报

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

本版积分规则