通达信大将军高级版全部公式源码

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

 通达信大将军高级版全部公式源码

{牛牛指标网提供:www.tdx001.com}复制内容到剪贴板
  1. 大盘抄底(主图)   
  2. Z:=MA(C,120);   
  3.         VAR3:=(MA(C,5)-Z)/Z;   
  4.         VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);   
  5.         D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*LOW ,'★B'),COLORRED;   
  6.         D2:DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*LOW ,'★B'),COLORGREEN;   
  7.         D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*LOW ,'★B'),COLORBLUE;   

 

C/C++ www.zegu.cn 择股网提供 Code复制内容到剪贴板
  1. 大盘逃顶(主图)   
  2. Z:=MA(C,120);   
  3.         VAR3:=(MA(H,5)-Z)/Z;   
  4.         VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);   
  5.         D1:DRAWTEXT(CROSS(95,VAR4) AND VAR3>0.3,1.01*HIGH ,'★S'),COLORRED;   
  6.         D2:DRAWTEXT( CROSS(93,VAR4) AND HHV(H,30)/LLV(L,30)>1.1 AND REF(Z,1)/Z>0.997 ,1.01*HIGH ,'★S'),COLORGREEN;   
  7.         D3:DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR4,1)>90 AND VAR4<REF(VAR4,1) AND REF(VAR4,1)>REF(VAR4,2) ,1.01*HIGH,'★S'),COLORBLUE;   

 

{牛牛指标网提供:www.tdx001.com}复制内容到剪贴板
  1. 大盘涨跌预测(附图)   
  2. WR1:=100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));   
  3.         WR2:=100*(HHV(HIGH,20)-HIGH)/(HHV(HIGH,20)-LLV(LOW,20));   
  4.         偏离:(CLOSE/MA(CLOSE,120)-1)*100,COLORSTICK;   
  5.         X:0,STICK,LINETHICK3;   
  6.         反弹:IF(WR1>97 ,偏离,0),STICK,LINETHICK3;   
  7.         调整:IF(WR1<3 ,偏离,0),STICK,LINETHICK3;   
  8.    

 

{牛牛指标网提供:www.tdx001.com}复制内容到剪贴板
  1. 主力成本(主图)   
  2.   
  3. ZJ:=(O+H+L+C)/4;   
  4.         YZ:=IF(BARSCOUNT(C)>60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));   
  5.         超短期:DMA(ZJ,YZ/0.125);   
  6.         短期:DMA(ZJ,YZ/0.25);   
  7.         中期:DMA(ZJ,YZ/0.50);   
  8.         长期:DMA(ZJ,YZ);        

 

复制内容到剪贴板
  1. 仓位风险(附图)   
  2. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  3.         K:=SMA(RSV,3,1);   
  4.         ZJ:=(O+H+L+C)/4;   
  5.         YZ:=IF(BARSCOUNT(C)>60,VOL/SUM(VOL,60),VOL/SUM(VOL,BARSCOUNT(C)));   
  6.         CYC50:=DMA(ZJ,YZ/0.50);   
  7.         CYC0:=DMA(ZJ,YZ);   
  8.         KPXS:=(CYC50/CYC0-1)*100;   
  9.         KP:=IF(KPXS<0,85,IF(KPXS>=0 AND KPXS<5,60,IF(KPXS>=5 AND KPXS<15,35,IF(KPXS>=15,15,90))));   
  10.         风险:(K+KP)/2;   
  11.         仓位:100-风险;     

 

复制内容到剪贴板
  1. 短线操盘(主图)   
  2. N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));   
  3.         STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORYELLOW;   
  4.         STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),4,0),COLORBLUE;   
  5.         DRAWKLINE(H,O,L,C);   

 

复制内容到剪贴板
  1. 中线操盘(主图)   
  2. N:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C));   
  3.         STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.78),4,0),COLORYELLOW;   
  4.         STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.78),4,0),COLORBLUE;   
  5.         DRAWKLINE(H,O,L,C);   

 

复制内容到剪贴板
  1. 个股操盘(附图)   
  2. Z:=MA(C,120);   
  3.         VAR3:=(MA(C,5)-Z)/Z;   
  4.         VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);   
  5.         波段进场:IF(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2),80,50);   
  6.         反弹进场:IF(REF(VAR4,1)<5 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.3,80,50);   
  7.         超跌进场:IF(CROSS(VAR4,5) AND VAR3<-0.4,80,50);   
  8.         STICKLINE(C>=MA(C,10),VAR4,REF(VAR4,1),4,0),COLORRED;   
  9.         STICKLINE(C<MA(C,10),VAR4,REF(VAR4,1),4,0),COLORGREEN;   
  10.    

 

复制内容到剪贴板
  1. 个股抄底(主图)   
  2. Z:=MA(C,120);   
  3.         VAR3:=(MA(C,5)-Z)/Z;   
  4.         VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);   
  5.         VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);   
  6.         D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,LOW ,'★B'),COLORRED;   
  7.         D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) AND REF(VAR5,1)<REF(VAR5,2) AND VAR3<-0.3,LOW ,'★B'),COLORGREEN;   
  8.         D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.4,LOW ,'★B'),COLORBLUE;   
  9.    

 

复制内容到剪贴板
  1. 个股逃顶(主图)   
  2. Z:=MA(C,120);   
  3.         VAR3:=(MA(C,5)-Z)/Z;   
  4.         VAR4:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);   
  5.         VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);   
  6.         D1:DRAWTEXT(CLOSE<Z AND Z<REF(Z,1) AND REF(VAR4,1)>80 AND VAR4<REF(VAR4,1) AND REF(VAR4,1)>REF(VAR4,2),HIGH,'★S'),COLORBLUE;   
  7.         D2:DRAWTEXT(CROSS(90,VAR4) AND VAR5>0.2,HIGH,'★S'),COLORGREEN;   
  8.         D3:DRAWTEXT(CROSS(95,VAR4) AND VAR3>0.5,HIGH ,'★S'),COLORRED;   
  9.    

743233547.jpg

743233547.jpg

回复

使用道具 举报

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

本版积分规则