公式指标平台 股票指标公式源码分享 登录 注册
公式指标平台
未来函数检测
首 页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 操盘手公式 东财通公式 飞狐公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式指标平台 > 通达信公式 > 正文 → 正文

融合的一个副图

发布时间:2010/2/22 7:39:45  浏览次数:

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. 长期趋势:ZIG(3,N1),  COLOR00FF00,LINETHICK2;   
  2. 短期趋势:ZIG(3,N2),COLORYELLOW,LINETHICK2;   
  3. 短涨天数:BARSLASTCOUNT(短期趋势>REF(短期趋势,1)),NODRAW;   
  4. VAR771:=(C-REF(C,短涨天数))/REF(C,短涨天数)*100;   
  5. 短涨幅度%:IF(短涨天数>0,VAR771, DRAWNULL),NODRAW;   
  6. 回调天数:BARSLASTCOUNT(短期趋势<REF(短期趋势,1)),NODRAW;   
  7. VAR772:=(C-REF(C,回调天数))/REF(C,回调天数)*100;   
  8. 回调幅度%:IF(回调天数>0,VAR772, DRAWNULL),NODRAW;   
  9. 上涨天数:BARSLASTCOUNT(长期趋势>REF(长期趋势,1)),NODRAW;   
  10. VAR773:=(C-REF(C,上涨天数))/REF(C,上涨天数)*100;   
  11. 上涨幅度%:IF(上涨天数>0,VAR773, DRAWNULL),NODRAW;   
  12. 下跌天数:BARSLASTCOUNT(长期趋势<REF(长期趋势,1)),NODRAW;   
  13. VAR774:=(C-REF(C,下跌天数))/REF(C,下跌天数)*100;   
  14. 下跌幅度%:IF(下跌天数>0,VAR774, DRAWNULL),NODRAW;   
  15. VAR1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  16. VAR2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  17. VAR3:=SUM(VAR1,5);   
  18. VAR4:=SUM(VAR2,5);   
  19. VAR5:=IF(VAR3>VAR4,(VAR3-VAR4)/VAR3,IF(VAR3=VAR4,0,(VAR3-VAR4)/VAR4));   
  20. VAR6:=MA(VAR5,5);   
  21. VAR8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  22. VAR9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  23. VARA:=SUM(VAR8,3);   
  24. VARB:=SUM(VAR9,3);   
  25. VARC:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  26. VARD:=MA(VARC,3);   
  27. 火: BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)),  COLORRED;   
  28. VARE:=HHV(CLOSE,2);   
  29. VARF:=BARSLAST(VARE<REF(VARE,2));   
  30. VAR10:=IF(VARF>=1,LLV(VARE,VARF),LOW);   
  31. VAR11:=VAR10+VAR10*VARF*0.5/100;   
  32. VAR12:=IF(VAR11<REF(VAR11,1),MA(LOW,3),VAR11);   
  33. VAR13:=VAR10+VAR10*(VARF-1)*1.618/100;   
  34. 山: COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5);   
  35. VAR14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  36. VAR15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  37. VAR16:=SUM(VAR8,3);   
  38. VAR17:=SUM(VAR9,3);   
  39. VAR18:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  40. VAR19:=MA(VARC,3);   
  41. 买入或持股: STICKLINE(山>0,火,0,2,0),  COLORRED;   
  42. VAR1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  43. VAR1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  44. VAR1C:=SUM(VAR8,3);   
  45. VAR1D:=SUM(VAR9,3);   
  46. VAR1E:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  47. VAR1F:=MA(VARC,3);   
  48. 下跌→抛出: STICKLINE(山>0,火,山,2,1),  COLORF0F000;   
  49. VAR20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  50. VAR21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  51. VAR22:=SUM(VAR8,3);   
  52. VAR23:=SUM(VAR9,3);   
  53. VAR24:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  54. VAR25:=MA(VARC,3);   
  55. 观望: STICKLINE(山=0 AND 火=0,0,1,4,1),  COLORBLUE;   
  56. VAR26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  57. VAR27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  58. VAR28:=SUM(VAR8,3);   
  59. VAR29:=SUM(VAR9,3);   
  60. VAR2A:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  61. VAR2B:=MA(VARC,3);   
  62. 植被: STICKLINE(山<火,火,山,1,0),  COLOR00FF00;   
  63. VAR2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  64. VAR2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  65. VAR2E:=SUM(VAR8,3);   
  66. VAR2F:=SUM(VAR9,3);   
  67. VAR30:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  68. VAR31:=MA(VARC,3);   
  69. VAR32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;   
  70. K: SMA(SMA(VAR32,2,1),2,1),COLOR00FF00 , ;   
  71. D: SMA(SMA(SMA(VAR32,2,1),2,1),3,1),  COLORYELLOW;   
  72. J: (3*SMA(SMA(VAR32,2,1),2,1)-2*SMA(SMA(SMA(VAR32,2,1),2,1),3,1)),  COLORF00FF0;   
  73. VAR33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));   
  74. VAR34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));   
  75. VAR35:=SUM(VAR8,3);   
  76. VAR36:=SUM(VAR9,3);   
  77. VAR37:=IF(VARA>VARB,(VARA-VARB)/VARA,IF(VARA=VARB,0,(VARA-VARB)/VARB));   
  78. VAR38:=MA(VARC,3);   
  79. STICKLINE(REF(山,1)=0 AND 山>0,0,-1,2,0),  COLORRED;   
  80. DRAWTEXT(REF(火,3)>0 AND REF(火,2)>0 AND REF(火,1)>0 AND 火=0 AND REF(火,1)>山,REF(火,1),'调整'),COLORYELLOW , ;   
  81. {PP3:EMA(C,3),COLORRED,LINETHICK2;   
  82. PP5:EMA(C,5),COLOR00FF00,LINETHICK2;   
  83. PPP:EMA(PP5,5),COLORWHITE,LINETHICK2;}   
  84. NX:=MA(C,250),COLORRED,LINETHICK3;   
  85. QSX:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;   
  86. HHV1:=HHV(HIGH,60);   
  87. LLV1:=LLV(LOW,60);   
  88. VAR881:=(HIGH+LOW+OPEN+2*CLOSE)/5;   
  89. VAR882:=REF(VAR881,1);   
  90. VAR883:=SMA((CLOSE-VAR882),6,1)/SMA(ABS(CLOSE-VAR882),6,1)*100;   
  91. VAR884:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;   
  92. VAR885:=EMA(0.667*REF(VAR884,1)+0.333*VAR884,5);   
  93. VAR886:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR884>=VAR885 AND VAR884<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);   
  94. VAR887:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;   
  95. VAR888:=SMA(MAX(VAR881-VAR882,0),10,1)/SMA(ABS(VAR881-VAR882),10,1)*100;   
  96. VAR889:=IF(COUNT(VAR888<20,5)>=1 AND COUNT(VAR881=LLV(VAR881,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);   
  97. AA1:=MA(C,5);   
  98. BB1:=MA(C,15);   
  99. AF:=CROSS(AA1,BB1);   
  100. VAR01:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);   
  101. VAR02:=HIGH-REF(HIGH,1);   
  102. VAR03:=REF(LOW,1)-LOW;   
  103. VAR04:=SUM(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),25);   
  104. VAR05:=SUM(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),25);   
  105. VAR06:=VAR04*100/VAR01;   
  106. VAR07:=VAR05*100/VAR01;   
  107. VAR08:=MA(ABS(VAR07-VAR06)/(VAR07+VAR06)*100,15);   
  108. VAR09:=(VAR08+REF(VAR08,15))/2;   
  109. A88:=(VAR07>VAR06 AND VAR07>25 AND VAR06<25);   
  110. B88:=ZIG(3,50/5)*100,COLORRED,LINETHICK2;   
  111. G88:=MA(B88,2),COLORGREEN,LINETHICK2;   
  112. D88:=CROSS(B88,G88)*1000,COLORRED;   
  113. W88:=CROSS(G88,B88)*1000,COLORBLUE;   
  114. E88:=REF(INDEXC,1);   
  115. F88:=SMA(MAX(INDEXC-E88,0),3,1)/SMA(ABS(INDEXC-E88),3,1);   
  116. VAR8810:=F88 AND F88<8;   
  117. VAR8811:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  118. VAR8812:=SMA(VAR8811,3,1);   
  119. VAR8813:=SMA(VAR8812,3,1);   
  120. VAR8814:=VAR8813 AND VAR8813<20;   
  121. MM:=A88 AND D88 AND VAR8810 AND VAR8814 ;   
  122. DRAWTEXT(W88=1000,H*1.05,'卖' ),COLOR00FF00;   
  123. DRAWTEXT(D88=1000,L*0.95,'买'),COLORRED;    
  124. KA0:=(HHV(C,45)-LLV(C,45))/45;   
  125. KA1:=SMA(C,3,1);   
  126. KA2:=SMA(C-KA0*3,3,1);   
  127. KA3:=SMA(KA1-KA0*3,3,1);   
  128. 短期策略:=KA2>=KA3,NODRAW;   
  129. 短期拐点:=REF(短期策略,1)=0 AND 短期策略=1,NODRAW;   
  130. CSAR:=SAR(10,2,20);    
  131. 持股:=IF(CSAR<=L,CSAR,0);   
  132. 涅磐:=EMA(SLOPE(C,21)*20+C,42);    
  133. 般若:=EMA(C,5);   
  134. VAR1GG:=(C+H+O+L)/4;   
  135. 卖出:=XMA(VAR1GG,20)*(1+80/1000);   
  136. 买入:=XMA(VAR1GG,32)*(1-100/1000);    
  137. 菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};    
  138. 开悟:=IF(般若>=REF(般若,1),般若,DRAWNULL);   
  139. 抛物线转向:=CROSS(L,CSAR) AND 开悟>0 AND H<菩提 AND 持股>0 AND H>涅磐;   
  140. DRAWICON(抛物线转向,(H),16);{趋势底};   
  141. 般:=XMA(CLOSE,7);    
  142. 若:=MEMA(CLOSE,3);    
  143. 趋势延伸:=短期拐点 AND 菩提>H AND NOT(抛物线转向);   
  144. DRAWICON(趋势延伸,H,5);   
  145. DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H,17);   
  146. DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H,2);   

 

资源下载链接   资源大小:unknow

关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © GSZB.COM ,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识