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

以下是通达信波段操作副图源码(无源码的请下载附件导入)

通达信波段操作副图源码

特发某证券公司内部使用的波段指标,使用方法一目了然。{公式在线提供:www.gszx.com.cn}
源码:
 

C/C++ Code复制内容到剪贴板
  1. X:=REF(CLOSE,1)<REF(CLOSE,2) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),REF(MA(VOL,20),1))) AND REF(VOL,1)>REF(MA(VOL,20),1)*1.1;   
  2. Y:=IF(X,MIN(REF(LOW,1),LOW),0);   
  3. Z1:=REF(Y,BARSLAST(X));   
  4. X1:=REF(CLOSE,1)<REF(OPEN,1) AND REF(VOL,1)>MAX(REF(MA(VOL,5),1),MAX(REF(MA(VOL,10),1),REF(MA(VOL,20),1))) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1) OR REF(CLOSE,1)<REF(OPEN,1) AND REF(AMOUNT,1)=REF(HHV(AMOUNT,20),1);   
  5. Y1:=IF(X1,REF(CLOSE,1),0);   
  6. Z2:=REF(Y1,BARSLAST(X1));   
  7. RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;   
  8. KK:=SMA(RSV1,5,1);   
  9. 中多:SMA(KK,10,1),COLOR669933;   
  10. STICKLINE(KK<=中多 ,KK,中多,3,0),COLOR669933;   
  11. VARE:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;   
  12. RSV3:=SMA(SMA(VARE,3,1),3,1);   
  13. RSV4:=3*SMA(VARE,3,1)-2*RSV3;   
  14. 短多:EMA(RSV4,5),COLORRED;   
  15. DRAWICON(CROSS(短多,中多),短多,1);   
  16. DRAWICON(CROSS(中多,短多),中多,2);   
  17. STICKLINE(SMA(VARE,3,1)>RSV3  ,SMA(VARE,3,1),RSV3,3,0), COLORRED;   
  18. STICKLINE(SMA(VARE,3,1)>RSV3 AND CLOSE>Z1 AND CLOSE>Z2 ,SMA(VARE,3,1),RSV3,3,0), COLORCYAN;   
  19. STICKLINE(SMA(VARE,3,1)>RSV3   ,SMA(VARE,3,1),RSV3,3,0), COLORYELLOW;   
  20. VAR1:=100*(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21));   
  21. RSV7:=SMA(VAR1,3,1);   
  22. STICKLINE(FILTER( RSV7<8, 50) ,0,20,4,0), COLORRED;   
  23. STICKLINE(FILTER( RSV7<8,50) ,0,8,15,0), COLORYELLOW;   
  24. STICKLINE(FILTER( RSV7>92, 50),92,100,15,0), COLOR66CC33;   
  25. STICKLINE(FILTER( RSV7>92, 50),80,92,4,0), COLORRED;   
  26. VAR2Q:=(MA(CLOSE,80)-MA(CLOSE,13)/3);   
  27. RSV8:= MA((CLOSE-VAR2Q)/VAR2Q,1);   
  28. XA:=EMA(RSV8,12)*0.7;   
  29. XB:=EMA(RSV8,3);   
  30. IF(LLV(XB-XA,12)>0,0,-5),COLORGREEN,LINETHICK2;   
  31. 103,COLORGREEN,LINETHICK2;   
  32. 0,COLORCYAN,LINETHICK2;   
  33. DIFF :=( EMA(CLOSE,20) - EMA(CLOSE,90))*100;   
  34. DEA  :=EMA(DIFF,45);   
  35. MACD :=2*(DIFF-DEA);   
  36. STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,0,3,40,0),COLOR66CC33;   
  37. STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1) ,3,6,30,0),COLOR00FFFF;   
  38. STICKLINE(DIFF<=0 AND DEA<=DIFF AND REF(DIFF,1)<REF(DEA,1),6,20,0,0),COLORRED;   
  39. STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),97,100,40,0),COLORFF00FF;   
  40. STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),94,97,30,0),COLOR00FFFF;   
  41. STICKLINE(DIFF>=0 AND DEA>=DIFF AND REF(DIFF,1)>REF(DEA,1),80,94,1,0),COLORFF0000;   
  42. 突破线:50,COLORWHITE,LINETHICK2;   



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