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

以下是通达信改进版立桩量主图源码(无源码的请下载附件导入)

 通达信改进版立桩量主图源码

{公式在线提供:www.gszx.com.cn}

C/C++ Code复制内容到剪贴板
  1. 水平面:MA(CLOSE,89),COLORFFA2FF;   
  2. BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;   
  3. IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK2;   
  4. IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORYELLOW,LINETHICK2;   
  5. MA1:MA(CLOSE,24),COLOR00E300,LINETHICK1;   
  6. V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);   
  7. STICKLINE(V2>=1,O,C,2,0),COLORYELLOW;   
  8. MA13:=MA(CLOSE,13);   
  9. X1:=(C+L+H)/3;   
  10. BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;   
  11. EMA8:=EMA(C,8);   
  12. A1:=MIN(O,C);   
  13. B1:=ABS(O-C);   
  14. T1:=FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);   
  15. STICKLINE(T1,A1,A1+B1/4,2,0),COLOR007575;   
  16. STICKLINE(T1,A1+B1/4,A1+B1/2,2,0),COLORFF0000;   
  17. STICKLINE(T1,A1+B1/2,A1+B1*3/4,2,0),COLOR007575;   
  18. STICKLINE(T1,A1+B1*3/4,A1+B1,2,0),COLORFF0000;   
  19. LC:=REF(CLOSE,1);   
  20. RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);   
  21. FF:=EMA(CLOSE,3);   
  22. MA15:=EMA(CLOSE,21);   
  23. {DRAWTEXT(CROSS(FF,MA15),(LOW * 0.97),'底背离'),COLORA6E500;   
  24. DRAWTEXT(CROSS(88,RSI),(HIGH * 1.04),'顶背离'),COLOR1880FF;}   
  25. STICKLINE(CROSS(FF,MA15),A1,A1+B1/2,2,0),COLOR7F017F;   
  26. STICKLINE(CROSS(88,RSI),A1+B1,A1+B1/2,2,0),COLORGREEN;   
  27. T2:=COUNT(CROSS(BBI,3),3)=1 AND CROSS(C,BBI);   
  28. DRAWTEXT(T2,H*1.05,'反转'),COLORWHITE;   
  29. STICKLINE(T2,O,C,2,0),COLORRED;    
  30. T12:=V2>=1;   
  31. T0:=BARSLAST(T12);   
  32. L1:=REF(L,T0);   
  33. H1:=REF(H,T0);   
  34. STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),H1,H1,4,-1),COLORWHITE;   
  35. STICKLINE(REF(T12,1) OR REF(T12,2) OR REF(T12,3),L1,L1,4,-1),COLORWHITE;   
  36. {T11:=REF(T12,3) AND COUNT(L<L1,4)=0 AND COUNT(L>H1,4)>1;   
  37. DRAWTEXT(T11,H*1.05,'三天'),COLORWHITE;   
  38. STICKLINE(T11,O,C,2,0),COLORFF00FF;}   
  39. {(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) };   
  40. L11:=MIN(REF(L,1),L);   
  41. L10:=MIN(L11,REF(L,2));   
  42. L21:=MAX(REF(L,1),L);   
  43. L20:=MAX(L21,REF(L,2));   
  44. T111:=(REF(V2>=1,3) OR REF(V2>=1,2) OR REF(V2>=1,1)) AND    
  45. ((L10>L1 AND L20>H1) OR (L11>L1 AND L21>H1));   
  46. T11:=T111 AND REF(T111,1)=0;   
  47. STICKLINE(T11,O,C,2,0),COLORFF00FF;   
  48. 高:=REF(HHV(H,N),M);    
  49. 低:=REF(LLV(L,N),M);   
  50. H19:=高-(高-低)*0.191;    
  51. H38:=高-(高-低)*0.382;    
  52. H中:=高-(高-低)*0.5;    
  53. H61:=高-(高-低)*0.618;    
  54. H80:=高-(高-低)*0.809;   
  55. 顶点:REFDATE(高,DATE),POINTDOT,LINETHICK2,COLORWHITE;   
  56. %19.8:REFDATE(H19,DATE),POINTDOT,LINETHICK2,COLORYELLOW;   
  57. %38.2:REFDATE(H38,DATE),POINTDOT,LINETHICK2,COLORGREEN;   
  58. %50:REFDATE(H中,DATE),POINTDOT,LINETHICK2,COLORRED;   
  59. %61.8:REFDATE(H61,DATE),POINTDOT,LINETHICK2,COLORMAGENTA;   
  60. %80.9:REFDATE(H80,DATE),POINTDOT,LINETHICK2,COLORBLUE;   
  61. 低点:REFDATE(低,DATE),POINTDOT,LINETHICK2,COLORWHITE;   
  62. DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;   
  63. DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;    
  64. STICKLINE(T1,A1,A1+B1/2,2,0),COLOR007575;   
  65. STICKLINE(T1,A1+B1/2,A1+B1,2,0),COLORBLUE;   
  66. STICKLINE(T11 AND T12,A1,A1+B1/2,2,0),COLORFF00FF;   
  67. STICKLINE(T11 AND T12,A1+B1/2,A1+B1,2,0),COLORYELLOW;   
  68. STICKLINE(T1 AND T12,A1+B1/3,A1+B1,2,0),COLORYELLOW;   
  69. STICKLINE(T1 AND T12,A1,A1+B1/3,2,0),COLOR007575;   
  70. STICKLINE(T1 AND T12,A1+B1/3,A1+B1*2/3,2,0),COLORBLUE;   
  71. STICKLINE(T2 AND T12,A1+B1/2,A1+B1,2,0),COLORRED;   
  72. STICKLINE(T2 AND T12,A1,A1+B1/2,2,0),COLORYELLOW;   



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