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

以下是动力线 --通达信副图(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. N:=30;M:=13;LC := REF(CLOSE,1);   
  2. RSI1:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;   
  3. RSIF:=90-RSI1,COLOR33DD33;   
  4. A4:=((C-LLV(L,33))/(HHV(H,33)-LLV(L,33)))*67;   
  5. VAR22:=LLV(LOW,10);   
  6. VAR33:=HHV(HIGH,25);   
  7. 动力线:EMA((CLOSE-VAR22)/(VAR33-VAR22)*4,4);   
  8. RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;   
  9. PP101:=SMA(RSV,3,1);   
  10. PP102:=SMA(PP101,3,1);   
  11. PP103:=3*PP101-2*PP102;   
  12. STICKLINE(动力线>0 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),20,80,0,1),COLORGRAY;   
  13. STICKLINE(动力线>=0.2 AND 动力线<0.5 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),20,35,2,1),COLORGRAY;{底部保持关注,灰色}   
  14. STICKLINE(动力线>=0.5 AND 动力线<1.75 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),35,50,2,0),COLORYELLOW;{底部酌情买入,黄色}   
  15. STICKLINE(动力线>=1.75 AND 动力线<3.2 AND ISLASTBAR AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),50,65,2,0),COLORRED;{强势持仓段,红色}   
  16. STICKLINE(动力线>=3.2 AND 动力线<3.45 AND ISLASTBAR AND  ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),65,72,2,0),COLORLIRED;{阶段卖出,粉红}   
  17. STICKLINE(动力线>=3.45 AND ISLASTBAR,72,80,2,0) AND PP103<PP101,COLORCYAN;{清仓卖出,青色};   
  18. STICKLINE(PP103<PP101 AND ISLASTBAR,30,70,1,1),COLORGREEN;{甭看了,快找高人指点或者骂街,好像要大跌,绿色};   
  19. {以下显示在上方第二行}   
  20. STICKLINE(动力线>0 AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),95,94,1,0),COLORGRAY;   
  21. STICKLINE(动力线>=0.2 AND 动力线<0.5 AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),95,92,3,0),COLORGRAY;{底部保持关注,灰色}   
  22. STICKLINE(动力线>=0.5 AND 动力线<1.75 AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),95,94,1,0),COLORYELLOW;{底部酌情买入,黄色}   
  23. STICKLINE(动力线>=1.75 AND 动力线<3.2 AND ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),95,94,1,0),COLORRED;{强势持仓段,红色}   
  24. STICKLINE(动力线>=3.2 AND 动力线<3.45 AND  ((PP103>PP101 AND PP103<REF(PP103,1)) OR PP103>PP101),95,92,3,0),COLORLIRED;{阶段卖出,粉红}   
  25. STICKLINE(动力线>=3.45,95,92,3,0) AND PP103<PP101,COLORCYAN;{清仓卖出,青色};   
  26. STICKLINE(PP103<PP101,95,94,1,0),COLORGREEN;{甭看了,快找高人指点或者骂街,好像要大跌,绿色};   
  27. VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;   
  28. VAR2:=SMA(VAR1,9,1)+100;   
  29. VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;   
  30. VAR4:=SMA(VAR3,3,1);   
  31. VAR5:=SMA(VAR4,3,1)+100;   
  32. VAR6:=VAR5-VAR2;   
  33. 趋势:IF(VAR6>45,VAR6-45,0);   
  34. STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2,0),COLORMAGENTA;   
  35. STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2,0),COLORGREEN;   
  36. 强弱分界:=50,COLORFFFFCC;   
  37. 底部:=0,COLOR00FFFF;   
  38. 安全:=20,COLORFFAA66,LINETHICK1;   
  39. 预警:=80,COLORFFAA66,LINETHICK1;   
  40. 顶部:=100,COLORFFFF33;   
  41. V1:=LLV(LOW,10);   
  42. V2:=HHV(H,25);   
  43. 价位线:=EMA((C-V1)/(V2-V1)*4,4);   
  44. {DRAWTEXT(CROSS(价位线,0.3),20+4,'●买'),COLORRED;}   
  45. DRAWTEXT(CROSS(3.5,价位线),110-4,'●卖'),COLORWHITE;   
  46. VAR2Q:=REF(LOW,1);   
  47. VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;   
  48. VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);   
  49. VAR5Q:=LLV(LOW,30);   
  50. VAR6Q:=HHV(VAR4Q,30);   
  51. VAR7Q:=IF(MA(CLOSE,58),1,0);   
  52. VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;   
  53. VAR9Q:=IF(VAR8Q>100,100,VAR8Q);   
  54. AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;   
  55. AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;   
  56. AA5:=SMA(AA4,13,8);   
  57. 走势:=CEILING(SMA(AA5,13,8));   
  58. AA6:=SMA(AA3,21,8);   
  59. 卖临界:STICKLINE(走势-AA6>85,103,100,15,1),COLORRED,LINETHICK2;   
  60. 主力线:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*   
  61. SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK2,COLORBLUE;   
  62. 超短线:=(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK2,COLORBLUE;   
  63. VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);   
  64. VAR21:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);   
  65. VAR31:=EMA(VAR21,10);   
  66. VAR41:=LLV(LOW,33);   
  67. VAR51:=EMA(IF(LOW<=VAR41,VAR31,0),3);   
  68. 主力进场:IF(VAR51>REF(VAR51,1),VAR51,0),COLORRED,NODRAW;   
  69. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,3,0 ),COLOR000055;   
  70. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.6,0 ),COLOR000077;   
  71. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,2.1,0 ),COLOR000099;   
  72. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,1.5,0 ),COLOR0000BB;   
  73. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.9,0 ),COLOR0000DD;   
  74. STICKLINE(VAR51>REF(VAR51,1),0,VAR51,0.3,0 ),COLOR0000FF;   
  75. 洗盘:IF(VAR51<REF(VAR51,1),VAR51,0),COLORGREEN,NODRAW;   
  76. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,3,0),COLOR005500;   
  77. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.6,0),COLOR007700;   
  78. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,2.1,0),COLOR009900;   
  79. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,1.5,0),COLOR00BB00;   
  80. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.9,0),COLOR00DD00;   
  81. STICKLINE(VAR51<REF(VAR51,1),0,VAR51,0.3,0),COLOR00FF00;   
  82. VAR12:=3;   
  83. VAR28:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));   
  84. {股价准备启动:IF(CROSS(VAR28,VAR11),100,0),COLORRED,LINETHICK2;}    
  85. SS1:=(LOW+HIGH+CLOSE*2)/4;   
  86. SS2:= MA(SS1,4);   
  87. SS3:=HHV(SS2,10);   
  88. SS4:=MA(SS3,3);   
  89. SS5:=1.25*SS4-0.25*SS3;   
  90. XKKJ:=IF(SS5>SS3,SS3,SS5);   
  91. FF1:=LLV(SS2,10);   
  92. FF2:=MA(FF1,3);   
  93. FF3:=1.25*FF2-0.25*FF1;   
  94. DKKJ:=IF(FF3<FF1,FF1,FF3);   
  95. MA13:=MA(C,13);   
  96. ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);   
  97. ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);   
  98. 大黑马:IF(ZDHM OR ZHM,50,0),COLORYELLOW,LINETHICK3;   
  99. 动态底部:=EMA(IF(L<= LLV(L,30),SMA(ABS(L-REF(L,1)),30,1)/SMA(MAX(L-REF(L,1),0),99,1),0)*5,3);   
  100. 准备买入:=CROSS(C,TROUGH(CLOSE,N,1)*1.02);    
  101. 低点:IF(动态底部 AND 准备买入,50,0),COLORWHITE,LINETHICK3;   
  102. RSV11:=(CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100;   
  103. K:=SMA(RSV11,3,1);   
  104. D:=SMA(K,3,1);   
  105. J:=3*K-2*D;   
  106. 短线:=EMA(J,6),COLORRED;   
  107. 浮筹:=MA(短线,28)*1,LINETHICK2,COLORGREEN;   
  108. 空方:=MA(100*(HHV(HIGH,35)-CLOSE)/(HHV(HIGH,35)-LLV(LOW,35)),3),COLORYELLOW;   
  109. DRAWTEXT(CROSS(短线,浮筹) AND 短线<36,20+4,' 买'),COLORLIBLUE;   
  110. DRAWICON(CROSS(短线,浮筹) AND 短线<36,20+4,17),COLORBLUE, LINETHICK1;   
  111. DRAWTEXT(CROSS(浮筹,空方),浮筹,' 追'),COLORWHITE;   
  112. DRAWICON(CROSS(浮筹,空方),浮筹,16);  



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