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

以下是通达信CCI精灵优化主图源码(无源码的请下载附件导入)

 

通达信CCI精灵优化主图源码

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

C/C++ Code复制内容到剪贴板
  1. {设参数 N..2...100...(14~20)}   
  2. N:=14;{不想设参数就用这个吧}   
  3. VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);    
  4. VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);    
  5. VAR3:=EMA(VAR2,10);   
  6. VAR4:=LLV(LOW,33);   
  7. VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);   
  8. 主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;   
  9. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLOR000055;   
  10. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0 ),COLOR000077;   
  11. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0 ),COLOR000099;   
  12. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0 ),COLOR0000BB;   
  13. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0 ),COLOR0000DD;   
  14. STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0 ),COLOR0000FF;   
  15. 洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;   
  16. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;   
  17. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;    
  18. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;   
  19. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;   
  20. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;   
  21. STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;   
  22.   
  23. 趋势线:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,  COLORAABBDD;   
  24. BB:=((REF(趋势线,1)<REF(趋势线,2)  AND 趋势线<-20 AND 趋势线>-25) AND  趋势线>=REF(趋势线,1)) OR (REF(CROSS(-20,趋势线),1) AND CROSS(趋势线,-20));   
  25. DRAWTEXT(BB,80,'见底信号'),COLOR41B5FA;   
  26. 见底信号:IF(BB,80,-1),COLORRED;   
  27. TYP:=(HIGH+LOW+CLOSE)/3;   
  28. CCI20:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)) COLORYELLOW;   
  29. K:=SMA(CCI20,3,1);   
  30. D:=SMA(K,3,1);   
  31. 指数TYP:=(INDEXH+INDEXL+INDEXC)/3;   
  32. 指数CCI:=(指数TYP-MA(指数TYP,N))/(0.015*AVEDEV(指数TYP,N));   
  33. DRAWBAND(K,RGB(255,50,100),D,RGB(0,200,0));   
  34. IF(CCI20<REF(CCI20,1),CCI20,DRAWNULL),COLORFFFF00,LINETHICK1;   
  35. IF(CCI20>REF(CCI20,1),CCI20,DRAWNULL),COLOR0000EA,LINETHICK2;    
  36. 超跌:-175,POINTDOT,COLORCYAN,LINETHICK4;   
  37. STICKLINE(CCI20<=-185,-185,-200,2,0),COLOR377CF0;    
  38. 顶部:150,POINTDOT,COLORGREEN,LINETHICK4;   
  39. STICKLINE(CCI20>=150,158,168,2,0),COLORGREEN;    
  40. 强势买入:STICKLINE(C,100,100,-1,0),COLORLIMAGENTA;   
  41. 反弹买入:STICKLINE(C,-100,-100,-1,0),COLOR0099FF;   
  42. 抄底:IF(CROSS(CCI20,反弹买入),-100,0),STICK,COLORYELLOW,LINETHICK2;   
  43. DRAWTEXT( CURRBARSCOUNT=45,198,'★主力进场 见底 CCI背离 先价突破 先机分时确认★'),COLORCYAN;   









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