通达信指标主图转换优化组合源码

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

 通达信指标主图转换优化组合源码

{牛牛指标网提供:www.tdx001.com}复制内容到剪贴板
  1. VAR4:=(LOW+HIGH+CLOSE)/3;   
  2. 操作:= MA(VAR4,5);   
  3. 〖压力〗:= HHV(操作,60),LINETHICK2,COLORCYAN;   
  4. 【拉升】: HHV(操作,13),LINETHICK2,COLORYELLOW;   
  5. 〖目前压力〗:IF(【拉升】,〖压力〗,DRAWNULL),LINETHICK2,COLORCYAN;   
  6. 〓铁底〓: LLV(LOW,60)*1.02,LINETHICK3,COLORLIGREEN;   
  7. 〓顶部〓: HHV(HIGH,60)*0.98,LINETHICK3,COLORBLUE;   
  8. 多:=EMA(C,3),COLORYELLOW;{引用}   
  9. 空:=EMA(C,5),COLORBLUE;   
  10. 均衡:=EMA(空,5),COLORWHITE,;   
  11. VARF1:=COUNT(CROSS(多,均衡),2)=1;   
  12. VARF2:=COUNT(CROSS(空,均衡),2)=1;   
  13. ZAI:=FILTER(VARF1 AND VARF2,2);   
  14.   
  15. VV2:=REF(CLOSE,1);   
  16. VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;   
  17. DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);   
  18. DRAWTEXT(REF(VV3,1)>81 AND VV3<80,〓顶部〓,'★'),COLORYELLOW;   
  19. VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;   
  20. DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;   
  21. VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;   
  22. VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);   
  23. DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');   
  24. VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;   
  25. DRAWICON(CROSS(82,VARR1),HIGH,2);   
  26. DRAWTEXT(CROSS(82,VARR1),〓顶部〓,'★'),COLORYELLOW;   
  27. VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;   
  28. VAR2:=REF(VAR1,1);   
  29. VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;   
  30. HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);   
  31. DRAWTEXT(HY3,LOW,'注意买入'),COLORRED;   
  32. S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;   
  33. A:=MA(S,5),COLORGREEN,,LINETHICK2;   
  34. BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;   
  35. F:=MA(S,121);   
  36. RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;   
  37. K:=SMA(RSV,15,1);   
  38. D:=SMA(K,15,1);   
  39. J:=3*K-2*D;   
  40. LC:=REF(CLOSE,1);   
  41. RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;   
  42. DRAWTEXT(CROSS(84,RSI) , 〓顶部〓,'★'),COLORYELLOW ;   
  43. S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;   
  44. DRAWTEXT(S1=2,LOW-0.3,'关注'), COLORGREEN;   
  45.   
  46. 趋势:=LLV(MA(H,13),1),COLORBROWN,LINETHICK2;   
  47. VL:=REF(LOW,1);{引用}   
  48. VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;   
  49. VAR14:=MA(VAR12,13);   
  50. VAR15:=LLV(LOW,34);   
  51. VAR18:=EMA(IF(LOW<=VAR15,VAR14,0),3);   
  52. VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);   
  53. VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;   
  54. T:=FILTER(IF(VAR111<=VAR110 AND VAR18>REF(VAR18,1),VAR18*8,0),20);   
  55. DRAWTEXT(T,〓铁底〓-0.5,'^⊙^'),COLORYELLOW;   
  56. VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;    
  57. VAR22:=SMA(VAR21,3,1);    
  58. VAR23:=SMA(VAR22,3,1);    
  59. VAR24:=SMA(VAR23,3,1);    
  60. VAR25:=CROSS(VAR23,VAR24) AND VAR23<20;    
  61. DRAWTEXT(FILTER(VAR25,10)=1,LOW-0.5,'←抄底');   
  62. VAR29:=CROSS(VAR24,VAR23) AND VAR23>80;    
  63. DRAWTEXT(FILTER(VAR29,5)=1,〓顶部〓,'★');{引用};   
  64. DRAWTEXT((MA(CLOSE,3) > MA(CLOSE,13)),MA(CLOSE,13),'↑↑'),COLORGREEN;   
  65. DRAWTEXT((MA(CLOSE,3) <= MA(CLOSE,13)),MA(CLOSE,13),'↓↓'),COLORBLUE;   
  66. 底部支撑:LLV(LOW,34),COLOR6666FF;   
  67. DRAWTEXT(CROSS(〓铁底〓,底部支撑),〓铁底〓-0.2,'大盘在绿色(↑)区 进场和持股'),COLORYELLO   

F37120104.png

F37120104.png

回复

使用道具 举报

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

本版积分规则