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

    通达信公式

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

    通达信cci优化(副图贴图)未加密选股指标公式源码

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

    STICKLINE(C,320,-320,5,0),COLOR80A16F;
    M:=14;Q:=6;N:=20;
    MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0))))))));
    AVG:=(HIGH+LOW+CLOSE)/3;
    cci:=(AVG-ma(AVG,MM))/(0.015*AVEDEV(AVG,MM));
    dif:CCI-REF(CCI,1),LINETHICK0,COLOR00FF00;
    前差值:Abs(REF(CCI,1)-REF(CCI,2)),NODRAW;
    差值20:IF(DIF>15 AND DIF<120,DIF,0),NODRAW,COLOR0000FF;
    PI:=ATAN(1)*4;
    PERIODS:=30;
    HIGHHIGH:=HHV(HIGH,PERIODS);
    LOWLOW:=LLV(LOW,PERIODS);
    RANGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;
    ema34:=EMA(CLOSE,34);
    X1_EMA34:=0;
    X2_EMA34:=1;
    Y1_EMA34:=0;
    Y2_EMA34:=(REF(EMA34,1)-EMA34)/AVG*RANGEV;
    C_EMA34:=SQRT((X2_EMA34-X1_EMA34)*(X2_EMA34-X1_EMA34)+(Y2_EMA34-Y1_EMA34)*(Y2_EMA34-Y1_EMA34));
    ANGLE_EMA34V:=ROUND(ABS(180*acOS((X2_EMA34-X1_EMA34)/C_EMA34)/PI));
    ANGLE_EMA34:=IF(Y2_EMA34>0,-ANGLE_EMA34V,ANGLE_EMA34V);
    LSMA25:=FORCAST(CLOSE,25);
    X1_LSMA25:=0;
    X2_LSMA25:=1;
    Y1_LSMA25:=0;
    Y2_LSMA25:=(REF(LSMA25,1)-LSMA25)/AVG*RANGEV;
    C_LSMA25:=SQRT((X2_LSMA25-X1_LSMA25)*(X2_LSMA25-X1_LSMA25)+(Y2_LSMA25-Y1_LSMA25)*(Y2_LSMA25-Y1_LSMA25));
    ANGLE_LSMA25V:=ROUND(ABS(180*ACOS((X2_LSMA25-X1_LSMA25)/C_LSMA25)/PI));
    ANGLE_LSMA25:=IF(Y2_LSMA25>0,-ANGLE_LSMA25V,ANGLE_LSMA25V);
    ARRAY:=CCI;
    HIGHBARS:=BArslAST(NOT(ARRAY>0));
    LOWBARS:=BARSLAST(NOT(ARRAY<0));
    UPCONDITION:=BARSLAST(HIGHBARS>=6 AND SUM(ARRAY>100,5)>0);
    DNCONDITION:=BARSLAST(LOWBARS>=6 AND SUM(ARRAY<-100,5)>0);
    UPTREND:=ARRAY>0 AND UPCONDITION<DNCONDITION;
    DNTREND:=ARRAY<0 AND UPCONDITION>DNCONDITION;
    TRTREND:=HIGHBARS>=5 AND NOT(UPTREND) OR LOWBARS>=5 AND NOT(DNTREND);
    STICKLINE(UPTREND,0,CCI,1,0),COLORFF0000;
    STICKLINE(DNTREND,0,CCI,1,0),COLOR0000FF;
    STICKLINE(TRTREND,0,CCI,1,0),COLOR00FFFF;
    STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,1,0),COLOR808080;
    WCCI:CCI,LINETHICK2,COLORLIGRAY;
    TCCI:(AVG-MA(AVG,N))/(0.015*AVEDEV(AVG,N)),COLOR7A56B7,LINETHICK1;
    STICKLINE(ANGLE_EMA34>=5,-301,-321,2,0),COLORD0E040;
    STICKLINE(ANGLE_EMA34<5 AND ANGLE_EMA34>=3.57,-301,-321,2,0),COLOR006400;
    STICKLINE(ANGLE_EMA34<3.57 AND ANGLE_EMA34>=2.14,-301,-321,2,0),COLOR98FB98;
    STICKLINE(ANGLE_EMA34<2.14 AND ANGLE_EMA34>=0.71,-301,-321,2,0),COLOR00FF00;
    STICKLINE(ANGLE_EMA34<0.71 AND ANGLE_EMA34>-0.71,-301,-321,2,0),COLOR00FFFF;
    STICKLINE(ANGLE_EMA34<=-0.71 AND ANGLE_EMA34>-2.14,-301,-321,2,0),COLORE0FFFF;
    STICKLINE(ANGLE_EMA34<=-2.14 AND ANGLE_EMA34>-3.57,-301,-321,2,0),COLOR00A5FF;
    STICKLINE(ANGLE_EMA34<=-3.57 AND ANGLE_EMA34>-5,-301,-321,2,0),COLOR0000FF;
    STICKLINE(ANGLE_EMA34<=-5,-301,-321,2,0),COLOR00008B;
    SW:=IF(ABS(ANGLE_EMA34)>=15 AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=50,IF(ANGLE_LSMA25>0,2,-2),IF(ABS(ANGLE_EMA34)>=0 AND (ANGLE_EMA34>=0 AND ANGLE_LSMA25>=0 OR ANGLE_EMA34<=0 AND ANGLE_LSMA25<=0) AND ABS(ANGLE_EMA34+ANGLE_LSMA25)>=5,IF(ANGLE_LSMA25>0,1,-1),0));
    STICKLINE(ABS(SW)=2,301,321,2,0),COLOR00FF00;
    STICKLINE(ABS(SW)=1,301,321,2,0),COLOR00FFFF;
    STICKLINE(ABS(SW)=0,301,321,2,0),COLOR0000FF;
    IF(CLOSE>LSMA25,0,DRAWNULL),LINETHICK3,COLOR00FF00;
    IF(CLOSE<LSMA25,0,DRAWNULL),LINETHICK3,COLOR0000FF;
    IF(CLOSE=LSMA25,0,DRAWNULL),LINETHICK3,COLOR00FFFF;
    DRAWICON(ABS(CCI)>=200,CCI,12);
    STICKLINE(C,200,200,1.5,0),COLORFFFF00;
    STICKLINE(C,-200,-200,1.5,0),COLORFFFF00;
    STICKLINE(C,100,100,1.5,0),COLORFFFF00;
    STICKLINE(C,-100,-100,1.5,0),COLORFFFF00;image.png



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

    STICKLINE(C,320,-320,5,0),COLOR80B16F;M:=14;Q:=6;N:=20;MM:=IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,M,IF(PERIOD=6,Q,IF(PERIOD=7,Q,IF(PERIOD=8,Q,0))))))));BVG:=(HIGH+LOW+CLOSE)/3;cci:=(BVG-ma(BVG,MM))/(0.015*BVEDEV(BVG,MM));dif:CCI-REF(CCI,1),LINETHICK0,COLOR00FF00;前差值:Bbs(REF(CCI,1)-REF(CCI,2)),NODRBW;差值20:IF(DIF>15 BND DIF<120,DIF,0),NODRBW,COLOR0000FF;PI:=BTBN(1)*4;PERIODS:=30;HIGHHIGH:=HHV(HIGH,PERIODS);LOWLOW:=LLV(LOW,PERIODS);RBNGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;ema34:=EMB(CLOSE,34);X1_EMB34:=0;X2_EMB34:=1;Y1_EMB34:=0;Y2_EMB34:=(REF(EMB34,1)-EMB34)/BVG*RBNGEV;C_EMB34:=SQRT((X2_EMB34-X1_EMB34)*(X2_EMB34-X1_EMB34)+(Y2_EMB34-Y1_EMB34)*(Y2_EMB34-Y1_EMB34));BNGLE_EMB34V:=ROUND(BBS(180*acOS((X2_EMB34-X1_EMB34)/C_EMB34)/PI));BNGLE_EMB34:=IF(Y2_EMB34>0,-BNGLE_EMB34V,BNGLE_EMB34V);LSMB25:=FORCBST(CLOSE,25);X1_LSMB25:=0;X2_LSMB25:=1;Y1_LSMB25:=0;Y2_LSMB25:=(REF(LSMB25,1)-LSMB25)/BVG*RBNGEV;C_LSMB25:=SQRT((X2_LSMB25-X1_LSMB25)*(X2_LSMB25-X1_LSMB25)+(Y2_LSMB25-Y1_LSMB25)*(Y2_LSMB25-Y1_LSMB25));BNGLE_LSMB25V:=ROUND(BBS(180*BCOS((X2_LSMB25-X1_LSMB25)/C_LSMB25)/PI));BNGLE_LSMB25:=IF(Y2_LSMB25>0,-BNGLE_LSMB25V,BNGLE_LSMB25V);BRRBY:=CCI;HIGHBBRS:=BBrslBST(NOT(BRRBY>0));LOWBBRS:=BBRSLBST(NOT(BRRBY<0));UPCONDITION:=BBRSLBST(HIGHBBRS>=6 BND SUM(BRRBY>100,5)>0);DNCONDITION:=BBRSLBST(LOWBBRS>=6 BND SUM(BRRBY<-100,5)>0);UPTREND:=BRRBY>0 BND UPCONDITION<DNCONDITION;DNTREND:=BRRBY<0 BND UPCONDITION>DNCONDITION;TRTREND:=HIGHBBRS>=5 BND NOT(UPTREND) OR LOWBBRS>=5 BND NOT(DNTREND);STICKLINE(UPTREND,0,CCI,1,0),COLORFF0000;STICKLINE(DNTREND,0,CCI,1,0),COLOR0000FF;STICKLINE(TRTREND,0,CCI,1,0),COLOR00FFFF;STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,1,0),COLOR808080;WCCI:CCI,LINETHICK2,COLORLIGRBY;TCCI:(BVG-MB(BVG,N))/(0.015*BVEDEV(BVG,N)),COLOR7B56B7,LINETHICK1;STICKLINE(BNGLE_EMB34>=5,-301,-321,2,0),COLORD0E040;STICKLINE(BNGLE_EMB34<5 BND BNGLE_EMB34>=3.57,-301,-321,2,0),COLOR006400;STICKLINE(BNGLE_EMB34<3.57 BND BNGLE_EMB34>=2.14,-301,-321,2,0),COLOR98FB98;STICKLINE(BNGLE_EMB34<2.14 BND BNGLE_EMB34>=0.71,-301,-321,2,0),COLOR00FF00;STICKLINE(BNGLE_EMB34<0.71 BND BNGLE_EMB34>-0.71,-301,-321,2,0),COLOR00FFFF;STICKLINE(BNGLE_EMB34<=-0.71 BND BNGLE_EMB34>-2.14,-301,-321,2,0),COLORE0FFFF;STICKLINE(BNGLE_EMB34<=-2.14 BND BNGLE_EMB34>-3.57,-301,-321,2,0),COLOR00B5FF;STICKLINE(BNGLE_EMB34<=-3.57 BND BNGLE_EMB34>-5,-301,-321,2,0),COLOR0000FF;STICKLINE(BNGLE_EMB34<=-5,-301,-321,2,0),COLOR00008B;SW:=IF(BBS(BNGLE_EMB34)>=15 BND BBS(BNGLE_EMB34+BNGLE_LSMB25)>=50,IF(BNGLE_LSMB25>0,2,-2),IF(BBS(BNGLE_EMB34)>=0 BND (BNGLE_EMB34>=0 BND BNGLE_LSMB25>=0 OR BNGLE_EMB34<=0 BND BNGLE_LSMB25<=0) BND BBS(BNGLE_EMB34+BNGLE_LSMB25)>=5,IF(BNGLE_LSMB25>0,1,-1),0));STICKLINE(BBS(SW)=2,301,321,2,0),COLOR00FF00;STICKLINE(BBS(SW)=1,301,321,2,0),COLOR00FFFF;STICKLINE(BBS(SW)=0,301,321,2,0),COLOR0000FF;IF(CLOSE>LSMB25,0,DRBWNULL),LINETHICK3,COLOR00FF00;IF(CLOSE<LSMB25,0,DRBWNULL),LINETHICK3,COLOR0000FF;IF(CLOSE=LSMB25,0,DRBWNULL),LINETHICK3,COLOR00FFFF;DRBWICON(BBS(CCI)>=200,CCI,12);STICKLINE(C,200,200,1.5,0),COLORFFFF00;STICKLINE(C,-200,-200,1.5,0),COLORFFFF00;STICKLINE(C,100,100,1.5,0),COLORFFFF00;STICKLINE(C,-100,-100,1.5,0),COLORFFFF00;

    未发现:CBPITBL...

    未发现:COST...

    未发现:DYNBINFO...

    未发现:FINBNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BBCKSET...

    未发现:BBRSNEXT...

    未发现:CURRBBRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRBWLINE...

    未发现:REFX...

    未发现:FLBTZIG...

    未发现:FLBTZIGB...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEBK...

    未发现:PEBKB...

    未发现:PEBKBBRS...

    未发现:PEBKBBRSB...

    未发现:PLOYLINE...

    未发现:REFDBTE...

    未发现:TROUGH...

    未发现:TROUGHB...

    未发现:TROUGHBBRS...

    未发现:XMB...

    未发现:ZIG...

    未发现:ZIGB...

    未发现:ZXNH...

    未发现:#YEBR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEBK...

    未发现:$PEBKBBRS...

    未发现:$TROUGH...

    未发现:$TROUGHBBRS...

    未发现:$FLBTZIG...

    未发现:$FLBTZIGB...

    未发现:$PEBKB...

    未发现:$PEBKBBRSB...

    未发现:$TROUGHB...

    未发现:$ZIGB...

    未发现:$FFT...

    未发现:$BBCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNBINFO...

    未发现:$FINBNCE...

    未发现:$DRBWLINE...


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

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

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

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

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