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

系列指标: 密码系列 (源码)

发布时间:2010/5/25 7:30:29  浏览次数:

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. VAR1:=("399139$C");   
  2. VAR2:=("399190$C");   
  3. VAR3:=("399132$C");   
  4. VAR4:=("399150$C");   
  5. VAR5:=("399138$C");   
  6. VAR6:=("399200$C");   
  7. VAR7:=("399110$C");   
  8. VAR8:=("399136$C");   
  9. VAR9:=("399135$C");   
  10. VAR10:=("399130$C");   
  11. VAR11:=("399160$C");   
  12. VAR12:=("999999$C");   
  13. VAR13:=("399137$C");   
  14. 医药:=SUM((VAR1/REF(VAR1,1)-1)*100,0);   
  15. 金融:=SUM((VAR2/REF(VAR2,1)-1)*100,0);   
  16. 纺织:=SUM((VAR3/REF(VAR3,1)-1)*100,0);   
  17. 建筑:=SUM((VAR4/REF(VAR4,1)-1)*100,0);   
  18. 机械:=SUM((VAR5/REF(VAR5,1)-1)*100,0);   
  19. 地产:=SUM((VAR6/REF(VAR6,1)-1)*100,0);   
  20. 农林:=SUM((VAR7/REF(VAR7,1)-1)*100,0);   
  21. 电子:=SUM((VAR8/REF(VAR8,1)-1)*100,0);   
  22. 石化:=SUM((VAR9/REF(VAR9,1)-1)*100,0);   
  23. 制造:=SUM((VAR10/REF(VAR10,1)-1)*100,0);   
  24. 运输:=SUM((VAR11/REF(VAR11,1)-1)*100,0);   
  25. 上证:SUM((VAR12/REF(VAR12,1)-1)*100,0),COLORRED;   
  26. 金属:=SUM((VAR13/REF(VAR13,1)-1)*100,0);   
  27. VAR17:=CONST(MA(医药,N));   
  28. VAR18:=CONST(MA(金融,N));   
  29. VAR19:=CONST(MA(纺织,N));   
  30. VAR20:=CONST(MA(建筑,N));   
  31. VAR21:=CONST(MA(机械,N));   
  32. VAR22:=CONST(MA(地产,N));   
  33. VAR23:=CONST(MA(农林,N));   
  34. VAR24:=CONST(MA(电子,N));   
  35. VAR25:=CONST(MA(石化,N));   
  36. VAR26:=CONST(MA(制造,N));   
  37. VAR27:=CONST(MA(运输,N));   
  38. VAR28:=CONST(MA(上证,N));   
  39. VAR29:=CONST(MA(金属,N));   
  40. PQ:=VAR29;   
  41. P1:=IF(BARSLAST(CURRBARSCOUNT=4),1,0);   
  42. P2:=IF(BARSLAST(CURRBARSCOUNT=6),1,0);   
  43. P3:=IF(BARSLAST(CURRBARSCOUNT=8),1,0);   
  44. P4:=IF(BARSLAST(CURRBARSCOUNT=10),1,0);   
  45. P5:=IF(BARSLAST(CURRBARSCOUNT=12),1,0);   
  46. P6:=IF(BARSLAST(CURRBARSCOUNT=14),1,0);   
  47. P7:=IF(BARSLAST(CURRBARSCOUNT=16),1,0);   
  48. P8:=IF(BARSLAST(CURRBARSCOUNT=18),1,0);   
  49. P9:=IF(BARSLAST(CURRBARSCOUNT=20),1,0);   
  50. P10:=IF(BARSLAST(CURRBARSCOUNT=22),1,0);   
  51. P11:=IF(BARSLAST(CURRBARSCOUNT=24),1,0);   
  52. P12:=IF(BARSLAST(CURRBARSCOUNT=26),1,0);   
  53. P13:=IF(BARSLAST(CURRBARSCOUNT=28),1,0);   
  54. P14:=IF(BARSLAST(CURRBARSCOUNT=2),1,0);   
  55. STICKLINE(医药,VAR17,IF(P2-P1,CONST(医药),DRAWNULL),5,-2),COLORFF00FF;   
  56. STICKLINE(金融,VAR18,IF(P3-P2,CONST(金融),DRAWNULL),5,-2),COLORFF00FF;   
  57. STICKLINE(纺织,VAR19,IF(P4-P3,CONST(纺织),DRAWNULL),5,-2),COLORFF00FF;   
  58. STICKLINE(建筑,VAR20,IF(P5-P4,CONST(建筑),DRAWNULL),5,-2),COLORFF00FF;   
  59. STICKLINE(机械,VAR21,IF(P6-P5,CONST(机械),DRAWNULL),5,-2),COLORFF00FF;   
  60. STICKLINE(地产,VAR22,IF(P7-P6,CONST(地产),DRAWNULL),5,-2),COLORFF00FF;   
  61. STICKLINE(农林,VAR23,IF(P8-P7,CONST(农林),DRAWNULL),5,-2),COLORFF00FF;   
  62. STICKLINE(电子,VAR24,IF(P9-P8,CONST(电子),DRAWNULL),5,-2),COLORFF00FF;   
  63. STICKLINE(石化,VAR25,IF(P10-P9,CONST(石化),DRAWNULL),5,-2),COLORFF00FF;   
  64. STICKLINE(制造,VAR26,IF(P11-P10,CONST(制造),DRAWNULL),5,-2),COLORFF00FF;   
  65. STICKLINE(运输,VAR27,IF(P12-P11,CONST(运输),DRAWNULL),5,-2),COLORFF00FF;   
  66. STICKLINE(上证,VAR28,IF(P1-P14,CONST(上证),DRAWNULL),5,-1),COLORFF00FF;   
  67. STICKLINE(金属,VAR29,IF(P13-P12,CONST(金属),DRAWNULL),5,-2),COLORFF00FF;   
  68. STICKLINE(医药,PQ,IF(P2-P1,VAR17,DRAWNULL),4,0),COLORRED;   
  69. STICKLINE(金融,PQ,IF(P3-P2,VAR18,DRAWNULL),4,0),COLORRED;   
  70. STICKLINE(纺织,PQ,IF(P4-P3,VAR19,DRAWNULL),4,0),COLORRED;   
  71. STICKLINE(建筑,PQ,IF(P5-P4,VAR20,DRAWNULL),4,0),COLORRED;   
  72. STICKLINE(机械,PQ,IF(P6-P5,VAR21,DRAWNULL),4,0),COLORRED;   
  73. STICKLINE(地产,PQ,IF(P7-P6,VAR22,DRAWNULL),4,0),COLORRED;   
  74. STICKLINE(农林,PQ,IF(P8-P7,VAR23,DRAWNULL),4,0),COLORRED;   
  75. STICKLINE(电子,PQ,IF(P9-P8,VAR24,DRAWNULL),4,0),COLORRED;   
  76. STICKLINE(石化,PQ,IF(P10-P9,VAR25,DRAWNULL),4,0),COLORRED;   
  77. STICKLINE(制造,PQ,IF(P11-P10,VAR26,DRAWNULL),4,0),COLORRED;   
  78. STICKLINE(运输,PQ,IF(P12-P11,VAR27,DRAWNULL),4,0),COLORRED;   
  79. STICKLINE(医药,PQ,IF(P2-P1,CONST(MA(医药,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  80. STICKLINE(金融,PQ,IF(P3-P2,CONST(MA(金融,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  81. STICKLINE(纺织,PQ,IF(P4-P3,CONST(MA(纺织,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  82. STICKLINE(建筑,PQ,IF(P5-P4,CONST(MA(建筑,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  83. STICKLINE(机械,PQ,IF(P6-P5,CONST(MA(机械,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  84. STICKLINE(地产,PQ,IF(P7-P6,CONST(MA(地产,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  85. STICKLINE(农林,PQ,IF(P8-P7,CONST(MA(农林,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  86. STICKLINE(电子,PQ,IF(P9-P8,CONST(MA(电子,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  87. STICKLINE(石化,PQ,IF(P10-P9,CONST(MA(石化,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  88. STICKLINE(制造,PQ,IF(P11-P10,CONST(MA(制造,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  89. STICKLINE(运输,PQ,IF(P12-P11,CONST(MA(运输,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  90. STICKLINE(金属,PQ,IF(P13-P12,CONST(MA(金属,M)),DRAWNULL),0.8,0),COLORAAAAFF;   
  91. DRAWTEXT(P2-P1,PQ-2,'医药'),COLORYELLOW;   
  92. DRAWTEXT(P3-P2,PQ-2,'金融'),COLORYELLOW;   
  93. DRAWTEXT(P4-P3,PQ-2,'纺织'),COLORYELLOW;   
  94. DRAWTEXT(P5-P4,PQ-2,'建筑'),COLORYELLOW;   
  95. DRAWTEXT(P6-P5,PQ-2,'机械'),COLORYELLOW;   
  96. DRAWTEXT(P7-P6,PQ-2,'地产'),COLORYELLOW;   
  97. DRAWTEXT(P8-P7,PQ-2,'农林'),COLORYELLOW;   
  98. DRAWTEXT(P9-P8,PQ-2,'电子'),COLORYELLOW;   
  99. DRAWTEXT(P10-P9,PQ-2,'石化'),COLORYELLOW;   
  100. DRAWTEXT(P11-P10,PQ-2,'制造'),COLORYELLOW;   
  101. DRAWTEXT(P12-P11,PQ-2,'运输'),COLORYELLOW;   
  102. DRAWTEXT(P13-P12,PQ-2,'金属'),COLORYELLOW;   

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);    
  2. DEA : EMA(DIFF,M);    
  3. MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;    
  4. DD:=C=HHV(C,180);    
  5. EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;    
  6. CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;    
  7. 上升背离:(CC AND EE)*DEA,COLOR00FFFF;    
  8. 顶背离:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;    
  9. FF:=C=LLV(C,180);    
  10. GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;    
  11. LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;    
  12. 下降背离:(LL AND GG)*DEA,COLORMAGENTA;    
  13. 底背离:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;    
  14. MM:=IF(MACD< 0,MACD,0);    
  15. JJ:=MM> REF(MM,1);    
  16. ZZ:=REF(JJ,1)=1;    
  17. 介入区:(JJ AND ZZ)*DEA,POINTDOT,COLORYELLOW;{MACD蓝柱缩短---指今日比昨天短}    
  18. STICKLINE(介入区=DEA,DEA,DIFF,0.5,1),COLORYELLOW;   
  19. DRAWTEXT(CROSS(DIFF,DEA ),0,'金↗'),COLORYELLOW;   
  20. DRAWTEXT(CROSS(DEA,DIFF ),0,'死↘'),COLORFFFF00;   

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. 短趋势线:MA(CLOSE,13),COLORRED,LINETHICK3;   
  2. 中线:=MA(CLOSE,33),LINETHICK1;   
  3. 中趋势线:MA(CLOSE,55),LINETHICK1,COLORGRAY;   
  4. 年线:MA(CLOSE,250),LINETHICK1,COLORLIGRAY,POINTDOT;   
  5. 涨:IF(短趋势线>REF(短趋势线,1),短趋势线,DRAWNULL),COLORRED,LINETHICK3;   
  6. 平:=IF(短趋势线=REF(短趋势线,1),短趋势线,DRAWNULL),COLOR00FFFF,LINETHICK3;   
  7. 跌:IF(短趋势线<REF(短趋势线,1),短趋势线,DRAWNULL),COLORGREEN,LINETHICK3;   
  8. 上极限:=((C-REF(MA(CLOSE,20),1))/20+短趋势线)*1.20;   
  9. DRAWTEXT(CROSS(CLOSE,上极限),H*1.02,'减仓'),COLORGREEN;   
  10. DRAWTEXT(CROSS(CLOSE,MA(C,13)) AND 短趋势线<REF(短趋势线 ,1) AND 短趋势线<中趋势线 ,H*1.02,'减仓'),COLORGREEN;   
  11. DRAWTEXT(CROSS(短趋势线,C) AND INDEXC>MA(INDEXC,13) AND 短趋势线>REF(短趋势线 ,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L*0.97,'买入'),COLORRED;   
  12. STICKLINE(CROSS(短趋势线,C) AND 短趋势线>REF(短趋势线 ,1) AND V<REF(V,1) AND 短趋势线>中趋势线 ,L,L*0.99,2,0),COLORYELLOW;   
  13. VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;   
  14. DRAWTEXT(VAR1>9 AND V<REF(V,1) AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'洗盘'),COLORYELLOW;   
  15. DRAWTEXT(VAR1>9 AND V>REF(V,1) AND FILTER(VAR1<REF(VAR1,1),5),H*1.02,'减仓'),COLORGREEN;   
  16. DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),H*1.06,'卖出'),COLORYELLOW;   
  17. VAR2:=HHV(VAR1>20,10);    
  18. DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18) AND V>REF(V,1),L*0.98,'反弹'),COLORRED;   
  19. DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),L*0.95,'抄底'),COLORYELLOW;   
  20. DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),H*1.1,'危险'),COLORYELLOW;   
  21.   
  22. VAR12:=(HIGH - LOW);   
  23. VAR3:=ABS((OPEN - CLOSE));   
  24. VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN));   
  25. VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW);   
  26. VAR6:=((VAR3 / VAR12) * VOL);   
  27. VAR7:=((VAR4 / VAR12) * VOL);   
  28. VAR8:=((VAR5 / VAR12) * VOL);   
  29. VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60)));   
  30. VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100);   
  31. DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND 短趋势线>REF(短趋势线 ,1) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)) ,L*0.98,'主力介入'),COLORMAGENTA;   

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. VA1:=HHV(HIGH,9)-LLV(LOW,9);    
  2. VA2:=HHV(HIGH,9)-CLOSE;   
  3. VA3:=CLOSE-LLV(LOW,9);   
  4. VA4:=VA2/VA1*100-70;   
  5. VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;   
  6. VA6:=(2*CLOSE+HIGH+LOW)/4;   
  7. VA7:=SMA(VA3/VA1*100,3,1);   
  8. VA8:=LLV(LOW,34);   
  9. VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);   
  10. VARA:=IF(VA9>100,VA9-100,0);   
  11. VARB:=HHV(HIGH,34);   
  12. VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);   
  13. VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);   
  14. VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;   
  15. VARF:=MA(VARE,3);   
  16. 生命线:EMA(VARD,1), COLORFF00FF;   
  17. VAR1:=HHV(HIGH,9)-LLV(LOW,9);   
  18. VAR2:=HHV(HIGH,9)-CLOSE;   
  19. VAR3:=CLOSE-LLV(LOW,9);   
  20. VAR4:=((VAR2)/(VAR1))*(100)-70;   
  21. VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);   
  22. VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);   
  23. VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);   
  24. VAR8:=LLV(LOW,34);   
  25. VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);   
  26. VAR10:=IF((VAR9>100),VAR9-100,0);   
  27. VAR11:=HHV(HIGH,34);   
  28. B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);   
  29. B2:EMA(B1,5),COLORFF7000;   
  30. STICKLINE(B1-B2>0,B1,B2,2,0),COLORFFFFFF;   
  31. STICKLINE(B1-B2<0,B1,B2,2,0),COLOR00FF00;   
  32. V1:=MA(C,5)=HHV(MA(C,5),20);   
  33. V2:=MA(C,5)>MA(C,10);   
  34. V3:=MA(V,5)>MA(V,40)*1.01;   
  35. V4:=COUNT(MA(C,1)>REF(C,1),2)=2;   
  36. VV:=V1 AND V2 AND V3 AND V4;   
  37. STICKLINE(V1 AND V2 AND V3 AND V4,100,110,2,0),COLOR00FF00;   
  38. A1:=EMA(CLOSE,8);   
  39. A2:=EMA(A1,20);   
  40. A3:=CROSS(A1,A2);   
  41. A4:=A1<EMA(CLOSE,120);   
  42. STICKLINE(A3 AND A4,100,110,2,0),COLOR00FF00;   
  43. A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*   
  44. SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);   
  45. 安全位:=20;   
  46. 低位转强:IF(CROSS(A5,安全位),50,0),COLORRED,STICK,LINETHICK4;   
  47. 开始拉升:IF(CROSS(VARC,生命线) AND VARC>VARD AND VARC<55 AND C>O,50,0),COLORFF00FF,STICK,LINETHICK4;   
  48. A6:=LLV(C,500)=LLV(C,5) AND C/REF(C,1)>(1+9.8/100);   
  49. 极低涨:IF(A6,50,0),COLORYELLOW,STICK,LINETHICK4;{出现黄柱,呈现底部}   

资源下载链接   资源大小:3KB

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