当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是散人线主图结合(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. 生命线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),45),COLORYELLOW,LINETHICK2;   
  2. IF(C<生命线,生命线,DRAWNULL),COLORGREEN,LINETHICK2;   
  3. AAA:=CONST(HHV(H,90));   
  4. R1:=MA(CLOSE,1);   
  5. R2:=MA(CLOSE,3);   
  6. R3:=(MA(R2,1)*1);   
  7. R4:=(MA(R2,3)*1);   
  8. DRAWTEXT(CROSS(R3,R4),(LOW-0.1),'B'),COLORRED;   
  9. X1:=(C+L+H)/3;   
  10. DD:=TOTALCAPITAL;   
  11. SS1:=FINANCE(7);   
  12. GG:=FINANCE(33);   
  13. TH:=DYNAINFO(39);   
  14. A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);   
  15. LC:=REF(CLOSE,1);   
  16. RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);   
  17. FF:=EMA(CLOSE,3);   
  18. MA15:=EMA(CLOSE,21);   
  19. DRAWTEXT(CROSS(88,RSI),(HIGH * 1.002),'S'),COLORGREEN;   
  20. 双线持币:HHV(MA(HIGH,(3)),2),LINETHICK1,COLOR00FF00;   
  21. 单线持股:LLV(MA(HIGH,(3)),1),LINETHICK1,COLOR0000FF;   
  22. 轻仓:IF(单线持股>=双线持币 AND 双线持币<生命线,单线持股,DRAWNULL),COLORYELLOW,LINETHICK1;   
  23. 减弱:IF(单线持股<双线持币,单线持股,DRAWNULL),COLORYELLOW,LINETHICK1;   
  24. 走熊:IF(单线持股<双线持币 AND 单线持股<生命线,单线持股,DRAWNULL),COLORGREEN,LINETHICK1;     
  25. 获利%:WINNER(CLOSE)*100,NODRAW,COLORRED;   
  26. VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);   
  27. VAR2:=CROSS(VAR1,0.9);   
  28. VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);   
  29. VAR4:=CROSS(VAR3,0.9);   
  30. STICKLINE(VAR2,HIGH,HIGH*1.0001,1,0),COLORGREEN;   
  31. STICKLINE(VAR4,LOW,LOW*0.9999,1,0),COLORRED;   
  32. VAR5:=IF(VAR2,HIGH,IF(VAR4,LOW,0));   
  33. PLOYLINE(VAR5,VAR5),COLORMAGENTA;   
  34. VAR6:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),1);   
  35. VAR7:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),1);   
  36. VAR8:=BACKSET(REF(HIGH,2)=HHV(HIGH,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)   
  37. AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),1);   
  38. VAR9:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW>REF(LOW,1) AND HIGH>REF(HIGH,1),1);   
  39. VARA:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND LOW<REF(LOW,1) AND HIGH<REF(HIGH,1),1);   
  40. VARB:=BACKSET(REF(LOW,2)=LLV(LOW,5) AND HIGH<REF(HIGH,1) AND LOW>REF(LOW,1)   
  41. AND REF(LOW,1)>REF(LOW,2) AND REF(HIGH,1)<REF(HIGH,2),1);   
  42. 坚定: STICKLINE(CROSS(VAR6,0.9),HIGH,HIGH*1.0001,0,0),COLORRED;   
  43. STICKLINE(CROSS(VAR9,0.9),LOW,LOW*0.9999,0,0),COLORRED;   
  44. 犹豫: STICKLINE(CROSS(VAR7,0.9),HIGH,HIGH*1.0001,0,0),COLORYELLOW;   
  45. STICKLINE(CROSS(VARA,0.9),LOW,LOW*0.9999,0,0),COLORYELLOW;   
  46. 等待: STICKLINE(CROSS(VAR8,0.9),HIGH,HIGH*1.0001,0,0),COLORGREEN;   
  47. STICKLINE(CROSS(VARB,0.9),LOW,LOW*0.9999,0,0),COLORGREEN;   
  48. 压力: REF(HIGH,BARSLAST(VAR2)), POINTDOT,COLORRED;   
  49. STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),3,0),COLORRED;   
  50. 支撑: REF(LOW,BARSLAST(VAR4)), POINTDOT,COLORMAGENTA;   
  51. STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),3,0),COLORMAGENTA;   
  52. 现价:CLOSE,POINTDOT,COLORWHITE;    
  53. VAR11:=(CLOSE*2+HIGH+LOW)/4;   
  54. SK:= EMA(VAR11,13)-EMA(VAR11,73);   
  55. SD:= EMA(SK,2);   
  56. {DRAWTEXT((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) ,L*0.99,'短线'),COLORFF66FF;}   
  57. STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),H,L,0,0),COLORRED;   
  58. STICKLINE((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)),O,C,2,0),LINETHICK3,COLORRED;   
  59. 转向:SAR(4,2,20),LINETHICK0;   
  60. H均线:=(5*H+4*REF(H,1)+3*REF(H,2)+2*REF(H,3)+1*REF(H,4))/(5+4+3+2+1);   
  61. L均线:=(5*L+4*REF(L,1)+3*REF(L,2)+2*REF(L,3)+1*REF(L,4))/(5+4+3+2+1);   
  62. WHK涨跌分离线:=IF(C>REF(H均线,1),L均线,IF(C<REF(L均线,1),H均线,L均线));   
  63. 看多就买:C>WHK涨跌分离线,NODRAW,COLOR0000FF;   
  64. 看空全抛:C<=WHK涨跌分离线,NODRAW,COLOR00FF00;   
  65. 看空周期:=BARSLAST(看多就买);   
  66. 看多周期:=BARSLAST(看空全抛);   
  67. 开始试买:看多周期=1,COLOR00FFFF,NODRAW;   
  68. 全部抛掉:看空周期=1,COLORBLUE,NODRAW;   
  69. A2:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));   
  70. B2:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);   
  71. 分水岭:IF(MA(CLOSE,17)<B2,B2,MA(CLOSE,17)),COLORMAGENTA,NODRAW;   
  72. 操作线:分水岭-(EMA(C,3)-分水岭),COLORGREEN,NODRAW;   
  73. STICKLINE(C>WHK涨跌分离线,H,L,0,0),COLORRED;   
  74. STICKLINE(C>WHK涨跌分离线,O,C,0.5,0),COLORRED;   
  75. STICKLINE(C>WHK涨跌分离线 AND C<O,O,C,0.5,1),COLORRED;   
  76. STICKLINE(C<=WHK涨跌分离线,H,L,0,0),COLOR00FF00;   
  77. STICKLINE(C<=WHK涨跌分离线,O,C,0.5,0),COLOR00FF00;   
  78. STICKLINE(C<=WHK涨跌分离线 AND C>O,O,C,0.5,1),COLOR00FF00;   
  79. STICKLINE(开始试买,O,(C+O)/2,2,0),COLOR00FFFF;   
  80. STICKLINE(全部抛掉,O,(C+O)/2,2,0),COLORBLUE;   
  81. VAR21:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-   
  82. 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);   
  83. VAR22:=8;    
  84. SS:=CROSS(VAR21,VAR22);    
  85. DRAWTEXT(SS,L*0.999,'买'),COLORRED;  

散人线主图结合


上一篇:散人线MACD    下一篇:新快速短线

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