• 网站首页
  • 股票池
  • 通达信公式
  • 大智慧公式
  • 同花顺公式
  • 套装公式
  • 指标专题
  • 股票内参
  • 滚动播报

    通达信公式

    当前位置: 主页 > 通达信公式

    通达信BOLL,CCI,KDJ合成未加密选股指标公式源码

    来源:网络|编辑:小编|时间:2022-04-26|栏目:通达信公式

    M5:ma(CLOSE,5),colorwhite;

    M10:MA(CLOSE,10),coloryellow;

    M20:MA(CLOSE,20),colorff00ff;

    M30:MA(CLOSE,30),colorgreen;

    M60:MA(CLOSE,60), Colorred;

    M120:MA(CLOSE,120),colorblue;

    M240:MA(close,240),colorblue;

    BOLL:MA(CLOSE,20);
    UP:BOLL+2*STD(CLOSE,20),COLORBLUE;
    LO:BOLL-2*STD(CLOSE,20),COLORMAGENTA;
    MA5:MA(CLOSE,5);
    MA10:MA(CLOSE,10)POINTDOT,COLORLIGREEN;
    Z:=2*STD(CLOSE,20);
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    D:=(SMA(SMA(RSV,3,1),3,1)*2.5)-100;
    K:=(SMA(RSV,3,1)*2.5)-100;
    J:=3*K-2*D;
    TYP:=(HIGH+LOW+CLOSE)/3;
    cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
    JJ:IF(J>=100,BOLL+Z*J/100,IF(J<=(-100),BOLL+Z*J/100,DRAWNULL)),POINTDOT,COLORLIMAGENTA;
    CC:IF(CCI>=100,BOLL+Z*CCI/100,IF(CCI<=(-100),BOLL+Z*CCI/100,DRAWNULL)),POINTDOT,COLORCYAN;
    DRAWICON(crOSS(BOLL+Z*CCI/100,LO)=1,BOLL-Z*1.3,1);DRAWICON(CROSS(UP,BOLL+Z*CCI/100)=1,BOLL+Z*1.3,2);
    DRAWICON(CROSS(BOLL+Z*J/100,LO)=1,BOLL-Z*1.52,7);DRAWICON(CROSS(UP,BOLL+Z*J/100)=1,BOLL+Z*1.52,8);
    DRAWICON(CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,9);
    DRAWICON(CROSS(D,J)=1 AND D>20,BOLL+Z*1.3,15);
    W:BOLL+2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;
    M:BOLL-2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;
    JN1:=INTPART(J)/41=INTPART(INTPART(J)/41);
    JN2:=INTPART(J)/42=INTPART(INTPART(J)/42);
    DRAWTEXT(CROSS(J,(-100))=1 AND JN1,BOLL-Z*1.52,' KDJ'),COLORWHITE;
    DRAWTEXT(CROSS(CCI,(-100))=1 AND JN2,BOLL-Z*1.3,' CCI'),COLORWHITE;
    DRAWTEXT(CROSS(CCI,(-100))=1 AND CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,' 金叉'),COLOR4AE9E9;

    image.png



    未来函数检测公式代码域:

    M5:ma(CLOSE,5),colorwhite;M10:MA(CLOSE,10),coloryellow;M20:MA(CLOSE,20),colorff00ff;M30:MA(CLOSE,30),colorgreen;M60:MA(CLOSE,60), Colorred;M120:MA(CLOSE,120),colorblue;M240:MA(close,240),colorblue;BOLL:MA(CLOSE,20);UP:BOLL+2*STD(CLOSE,20),COLORBLUE;LO:BOLL-2*STD(CLOSE,20),COLORMAGENTA;MA5:MA(CLOSE,5);MA10:MA(CLOSE,10)POINTDOT,COLORLIGREEN;Z:=2*STD(CLOSE,20);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;D:=(SMA(SMA(RSV,3,1),3,1)*2.5)-100;K:=(SMA(RSV,3,1)*2.5)-100;J:=3*K-2*D;TYP:=(HIGH+LOW+CLOSE)/3;cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));JJ:IF(J>=100,BOLL+Z*J/100,IF(J<=(-100),BOLL+Z*J/100,DRAWNULL)),POINTDOT,COLORLIMAGENTA;CC:IF(CCI>=100,BOLL+Z*CCI/100,IF(CCI<=(-100),BOLL+Z*CCI/100,DRAWNULL)),POINTDOT,COLORCYAN;DRAWICON(crOSS(BOLL+Z*CCI/100,LO)=1,BOLL-Z*1.3,1);DRAWICON(CROSS(UP,BOLL+Z*CCI/100)=1,BOLL+Z*1.3,2);DRAWICON(CROSS(BOLL+Z*J/100,LO)=1,BOLL-Z*1.52,7);DRAWICON(CROSS(UP,BOLL+Z*J/100)=1,BOLL+Z*1.52,8);DRAWICON(CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,9);DRAWICON(CROSS(D,J)=1 AND D>20,BOLL+Z*1.3,15);W:BOLL+2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;M:BOLL-2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;JN1:=INTPART(J)/41=INTPART(INTPART(J)/41);JN2:=INTPART(J)/42=INTPART(INTPART(J)/42);DRAWTEXT(CROSS(J,(-100))=1 AND JN1,BOLL-Z*1.52,' KDJ'),COLORWHITE;DRAWTEXT(CROSS(CCI,(-100))=1 AND JN2,BOLL-Z*1.3,' CCI'),COLORWHITE;DRAWTEXT(CROSS(CCI,(-100))=1 AND CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,' 金叉'),COLOR4AE9E9;

    未发现:CAPITAL...

    未发现:COST...

    未发现:DYNAINFO...

    未发现:FINANCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BACKSET...

    未发现:BARSNEXT...

    未发现:CURRBARSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRAWLINE...

    未发现:REFX...

    未发现:FLATZIG...

    未发现:FLATZIGA...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEAK...

    未发现:PEAKA...

    未发现:PEAKBARS...

    未发现:PEAKBARSA...

    未发现:PLOYLINE...

    未发现:REFDATE...

    未发现:TROUGH...

    未发现:TROUGHA...

    未发现:TROUGHBARS...

    未发现:XMA...

    未发现:ZIG...

    未发现:ZIGA...

    未发现:ZXNH...

    未发现:#YEAR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEAK...

    未发现:$PEAKBARS...

    未发现:$TROUGH...

    未发现:$TROUGHBARS...

    未发现:$FLATZIG...

    未发现:$FLATZIGA...

    未发现:$PEAKA...

    未发现:$PEAKBARSA...

    未发现:$TROUGHA...

    未发现:$ZIGA...

    未发现:$FFT...

    未发现:$BACKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNAINFO...

    未发现:$FINANCE...

    未发现:$DRAWLINE...


    免责声明 | 联系我们 | 服务协议

    重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

    如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

    联系QQ:875328188 | 邮箱:875328188@qq.com

    Copyright © 2002-2021 股票公式网 版权所有桂ICP备2022000688号