通达信加仓减仓金叉老鼠仓主图 源码

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

 通达信加仓减仓金叉老鼠仓主图 源码

{牛牛指标网提供:www.tdx001.com}

复制内容到剪贴板
  1. 空:=EMA(C,5);   
  2.  均衡:EMA(空,5),COLORWHITE;   
  3.  中轨:HHV(MA(H,13),13),COLORYELLOW,LINETHICK1;   
  4.  趋势:LLV(MA(H,13),1),COLORRED,LINETHICK1;   
  5.  VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;    
  6. VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);   
  7.  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,'买入');   
  8.  VARC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;   
  9.     
  10. VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;   
  11.  VAR2:=REF(VAR1,1);   
  12.  VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;   
  13.  VAR4:=FILTER(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),5);   
  14.  DRAWICON(VAR4,LOW,1);   
  15.  VAR5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);   
  16.  DRAWTEXT(VAR5,LOW*0.985,'加仓'),COLORYELLOW;   
  17.  DRAWTEXT(VAR5,LOW*0.995,'^' ),COLORYELLOW;   
  18.  VAR6:=REF(CLOSE,1);    
  19. VAR7:=SMA(MAX(CLOSE-VAR6,0),6,1)/SMA(ABS(CLOSE-VAR6),6,1)*100;    
  20. DRAWTEXT(CROSS(84,VAR7),H*1.035,'减仓'),COLOR00FF00 ;   
  21.  DRAWTEXT(CROSS(84,VAR7),H*1.015,'◇' ),COLOR00FF00;   
  22.  IF(MA(CLOSE,20)>REF(MA(CLOSE,20),1),MA(CLOSE,20),DRAWNULL),COLORRED,LINETHICK5;   
  23.  IF(MA(CLOSE,20)<REF(MA(CLOSE,20),1),MA(CLOSE,20),DRAWNULL),COLORGREEN,LINETHICK5;   
  24.  KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);   
  25.  买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);   
  26.  买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));   
  27.  买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);   
  28.  买0:=买1+买2+买3;   
  29.  {买:IF(买0>1,买0,0);}   
  30.     
  31. DRAWICON(买0>1,L*0.98,16);   
  32.     
  33. BDX:EMA(C,6);   
  34.  BDX1:REF(EMA(C,6),1);   
  35.  【黄金通道】:IF(BDX>BDX1,1,0),NODRAW,COLORRED;   
  36.  AA1:=AMOUNT/V;    
  37. BB1:=L<AA1*0.9;    
  38. CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;    
  39. DD1:=L<MA(C,5)*0.921;    
  40. EE1:=V<MA(V,5)*1.5;    
  41. FF1:=BB1 AND CC1 AND DD1 AND EE1;    
  42. DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;    

B19122496.png

B19122496.png

回复

使用道具 举报

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

本版积分规则