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

    通达信公式

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

    通达信伍德CCI未加密选股指标公式源码

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

    M:=14;N:=6;Q:=20;
    MM:=IF(PERIOD=0,M,IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,
    M,IF(PERIOD=5,Q,IF(PERIOD=6,Q,IF(PERIOD=7,Q,0))))))));
    AVG:=(HIGH+LOW+CLOSE)/3;
    cci:=(AVG-ma(AVG,MM))/(0.015*AVEDEV(AVG,MM));
    dif:CCI-REF(CCI,1),LINETHICK0;
    前差值:Abs(REF(CCI,1)-REF(CCI,2)),LINETHICK0;
    差值20:IF(DIF>15 AND DIF<120,DIF,0),LINETHICK0;
    200,COLORFFFF00;
    -200,COLORFFFF00;
    100,COLORFFFF00;
    -100,COLORFFFF00;
    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,3,0),COLORFF0000;
    STICKLINE(DNTREND,0,CCI,3,0),COLORFF00FF;
    STICKLINE(TRTREND,0,CCI,3,0),COLORFFFFF0;
    STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,3,0),COLOR808080;
    WCCI:CCI,COLORF00FF0,LINETHICK2;
    TCCI:(AVG-MA(AVG,N))/(0.015*AVEDEV(AVG,N));

    STICKLINE(ANGLE_EMA34>=5,-301,-321,8,0),COLORD0E040;
    STICKLINE(ANGLE_EMA34<5 AND ANGLE_EMA34>=3.57,-301,-321,8,0),COLORFF6400;
    STICKLINE(ANGLE_EMA34<3.57 AND ANGLE_EMA34>=2.14,-301,-321,8,0),COLOR98FB98;
    STICKLINE(ANGLE_EMA34<2.14 AND ANGLE_EMA34>=0.71,-301,-321,8,0),COLORFF00FF;
    STICKLINE(ANGLE_EMA34<0.71 AND ANGLE_EMA34>-0.71,-301,-321,8,0),COLORFFF00F;
    STICKLINE(ANGLE_EMA34<=-0.71 AND ANGLE_EMA34>-2.14,-301,-321,8,0),COLORE0FFFF;
    STICKLINE(ANGLE_EMA34<=-2.14 AND ANGLE_EMA34>-3.57,-301,-321,8,0),COLORA5FF00;
    STICKLINE(ANGLE_EMA34<=-3.57 AND ANGLE_EMA34>-5,-301,-321,8,0);
    STICKLINE(ANGLE_EMA34<=-5,-301,-321,8,0),COLOR8B0000;
    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,8,0),COLORFF0088;
    STICKLINE(ABS(SW)=1,301,321,8,0),COLORFFFF88;
    STICKLINE(ABS(SW)=0,301,321,8,0),COLORFF8800;
    IF(CLOSE>LSMA25,0,DRAWNULL),LINETHICK3,COLORFF0099;
    IF(CLOSE<LSMA25,0,DRAWNULL),LINETHICK3,COLORFF6666;
    IF(CLOSE=LSMA25,0,DRAWNULL),LINETHICK3,COLORFFFF66;
    DRAWICON(ABS(CCI)>=200,CCI,12);
    {TM:=IF(PERIOD=0,1,IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,240)))));
    ALERT1:=IF(PERIOD=0,10,IF(PERIOD=1,34,IF(PERIOD=2,100,IF(PERIOD=3,180,IF(PERIOD=4,300,600)))));}image.png



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

    M:=14;N:=6;Q:=20;MM:=IF(PERIOD=0,M,IF(PERIOD=1,M,IF(PERIOD=2,M,IF(PERIOD=3,M,IF(PERIOD=4,M,IF(PERIOD=5,Q,IF(PERIOD=6,Q,IF(PERIOD=7,Q,0))))))));FVG:=(HIGH+LOW+CLOSE)/3;cci:=(FVG-ma(FVG,MM))/(0.015*FVEDEV(FVG,MM));dif:CCI-REF(CCI,1),LINETHICK0;前差值:Fbs(REF(CCI,1)-REF(CCI,2)),LINETHICK0;差值20:IF(DIF>15 FND DIF<120,DIF,0),LINETHICK0;200,COLORFFFF00;-200,COLORFFFF00;100,COLORFFFF00;-100,COLORFFFF00;PI:=FTFN(1)*4;PERIODS:=30;HIGHHIGH:=HHV(HIGH,PERIODS);LOWLOW:=LLV(LOW,PERIODS);RFNGEV:=25/(HIGHHIGH-LOWLOW)*LOWLOW;ema34:=EMF(CLOSE,34);X1_EMF34:=0;X2_EMF34:=1;Y1_EMF34:=0;Y2_EMF34:=(REF(EMF34,1)-EMF34)/FVG*RFNGEV;C_EMF34:=SQRT((X2_EMF34-X1_EMF34)*(X2_EMF34-X1_EMF34)+(Y2_EMF34-Y1_EMF34)*(Y2_EMF34-Y1_EMF34));FNGLE_EMF34V:=ROUND(FBS(180*acOS((X2_EMF34-X1_EMF34)/C_EMF34)/PI));FNGLE_EMF34:=IF(Y2_EMF34>0,-FNGLE_EMF34V,FNGLE_EMF34V);LSMF25:=FORCFST(CLOSE,25);X1_LSMF25:=0;X2_LSMF25:=1;Y1_LSMF25:=0;Y2_LSMF25:=(REF(LSMF25,1)-LSMF25)/FVG*RFNGEV;C_LSMF25:=SQRT((X2_LSMF25-X1_LSMF25)*(X2_LSMF25-X1_LSMF25)+(Y2_LSMF25-Y1_LSMF25)*(Y2_LSMF25-Y1_LSMF25));FNGLE_LSMF25V:=ROUND(FBS(180*FCOS((X2_LSMF25-X1_LSMF25)/C_LSMF25)/PI));FNGLE_LSMF25:=IF(Y2_LSMF25>0,-FNGLE_LSMF25V,FNGLE_LSMF25V);FRRFY:=CCI;HIGHBFRS:=BFrslFST(NOT(FRRFY>0));LOWBFRS:=BFRSLFST(NOT(FRRFY<0));UPCONDITION:=BFRSLFST(HIGHBFRS>=6 FND SUM(FRRFY>100,5)>0);DNCONDITION:=BFRSLFST(LOWBFRS>=6 FND SUM(FRRFY<-100,5)>0);UPTREND:=FRRFY>0 FND UPCONDITION<DNCONDITION;DNTREND:=FRRFY<0 FND UPCONDITION>DNCONDITION;TRTREND:=HIGHBFRS>=5 FND NOT(UPTREND) OR LOWBFRS>=5 FND NOT(DNTREND);STICKLINE(UPTREND,0,CCI,3,0),COLORFF0000;STICKLINE(DNTREND,0,CCI,3,0),COLORFF00FF;STICKLINE(TRTREND,0,CCI,3,0),COLORFFFFF0;STICKLINE(NOT(UPTREND OR DNTREND OR TRTREND),0,CCI,3,0),COLOR808080;WCCI:CCI,COLORF00FF0,LINETHICK2;TCCI:(FVG-MF(FVG,N))/(0.015*FVEDEV(FVG,N)); STICKLINE(FNGLE_EMF34>=5,-301,-321,8,0),COLORD0E040;STICKLINE(FNGLE_EMF34<5 FND FNGLE_EMF34>=3.57,-301,-321,8,0),COLORFF6400;STICKLINE(FNGLE_EMF34<3.57 FND FNGLE_EMF34>=2.14,-301,-321,8,0),COLOR98FB98;STICKLINE(FNGLE_EMF34<2.14 FND FNGLE_EMF34>=0.71,-301,-321,8,0),COLORFF00FF;STICKLINE(FNGLE_EMF34<0.71 FND FNGLE_EMF34>-0.71,-301,-321,8,0),COLORFFF00F;STICKLINE(FNGLE_EMF34<=-0.71 FND FNGLE_EMF34>-2.14,-301,-321,8,0),COLORE0FFFF;STICKLINE(FNGLE_EMF34<=-2.14 FND FNGLE_EMF34>-3.57,-301,-321,8,0),COLORF5FF00;STICKLINE(FNGLE_EMF34<=-3.57 FND FNGLE_EMF34>-5,-301,-321,8,0);STICKLINE(FNGLE_EMF34<=-5,-301,-321,8,0),COLOR8B0000;SW:=IF(FBS(FNGLE_EMF34)>=15 FND FBS(FNGLE_EMF34+FNGLE_LSMF25)>=50,IF(FNGLE_LSMF25>0,2,-2),IF(FBS(FNGLE_EMF34)>=0 FND (FNGLE_EMF34>=0 FND FNGLE_LSMF25>=0 OR FNGLE_EMF34<=0 FND FNGLE_LSMF25<=0) FND FBS(FNGLE_EMF34+FNGLE_LSMF25)>=5,IF(FNGLE_LSMF25>0,1,-1),0));STICKLINE(FBS(SW)=2,301,321,8,0),COLORFF0088;STICKLINE(FBS(SW)=1,301,321,8,0),COLORFFFF88;STICKLINE(FBS(SW)=0,301,321,8,0),COLORFF8800;IF(CLOSE>LSMF25,0,DRFWNULL),LINETHICK3,COLORFF0099;IF(CLOSE<LSMF25,0,DRFWNULL),LINETHICK3,COLORFF6666;IF(CLOSE=LSMF25,0,DRFWNULL),LINETHICK3,COLORFFFF66;DRFWICON(FBS(CCI)>=200,CCI,12);{TM:=IF(PERIOD=0,1,IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,240)))));FLERT1:=IF(PERIOD=0,10,IF(PERIOD=1,34,IF(PERIOD=2,100,IF(PERIOD=3,180,IF(PERIOD=4,300,600)))));}

    未发现:CFPITFL...

    未发现:COST...

    未发现:DYNFINFO...

    未发现:FINFNCE...

    未发现:LWINNER...

    未发现:WINNER...

    未发现:BFCKSET...

    未发现:BFRSNEXT...

    未发现:CURRBFRSCOUNT...

    未发现:DVOL...

    未发现:DOPEN...

    未发现:DCLOSE...

    未发现:DHIGH...

    未发现:DLOW...

    未发现:DRFWLINE...

    未发现:REFX...

    未发现:FLFTZIG...

    未发现:FLFTZIGF...

    未发现:FFT...

    未发现:FILTERX...

    未发现:PEFK...

    未发现:PEFKF...

    未发现:PEFKBFRS...

    未发现:PEFKBFRSF...

    未发现:PLOYLINE...

    未发现:REFDFTE...

    未发现:TROUGH...

    未发现:TROUGHF...

    未发现:TROUGHBFRS...

    未发现:XMF...

    未发现:ZIG...

    未发现:ZIGF...

    未发现:ZXNH...

    未发现:#YEFR...

    未发现:#MONTH...

    未发现:#WEEK...

    未发现:$ZIG...

    未发现:$PEFK...

    未发现:$PEFKBFRS...

    未发现:$TROUGH...

    未发现:$TROUGHBFRS...

    未发现:$FLFTZIG...

    未发现:$FLFTZIGF...

    未发现:$PEFKF...

    未发现:$PEFKBFRSF...

    未发现:$TROUGHF...

    未发现:$ZIGF...

    未发现:$FFT...

    未发现:$BFCKSET...

    未发现:$WINNER...

    未发现:$LWINNER...

    未发现:$COST...

    未发现:$DYNFINFO...

    未发现:$FINFNCE...

    未发现:$DRFWLINE...


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

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

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

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

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