最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 周月CCI抓妖选股公式

    正文概述    2024-04-06 15:47:38  

    S1:=IF(CODELIKE('688'),0,1) OR IF(CODELIKE('82'),0,1)
    OR IF(CODELIKE('830'),0,1) OR IF(CODELIKE('831'),0,1)
    OR IF(CODELIKE('832'),0,1) OR IF(CODELIKE('833'),0,1)
    OR IF(CODELIKE('834'),0,1) OR IF(CODELIKE('835'),0,1)
    OR IF(CODELIKE('836'),0,1) OR IF(CODELIKE('837'),0,1)
    OR IF(CODELIKE('838'),0,1) OR IF(CODELIKE('839'),0,1)
    OR IF(CODELIKE('870'),0,1) OR IF(CODELIKE('871'),0,1)
    OR IF(CODELIKE('872'),0,1) OR IF(CODELIKE('873'),0,1);
    S2:=IF(NAMELIKE('S'),0,1);
    S3:=IF(NAMELIKE('*'),0,1);
    S4:=DYNAINFO(17)>0;
    去掉:=S1 AND (S2 AND S3 AND S4 AND CAPITAL/1000000<30 AND INBLOCK('融资融券')=0);
    TYP:=(HIGH+LOW+CLOSE)/3; {最高价、最低价、收盘价之平均数}
    CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORRED,LINETHICK3;
    {(TYP-TYP的14日移动平均)/0.015* TYP的14日平均绝对误差}
    Zcci:=(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),COLORYELLOW,LINETHICK3;
    {DRAWBAND(CCI,RGB(155,0,0),ZCCI,RGB(0,0,155));}
    {(TYP-TYP的70日移动平均)/0.015* TYP的70日平均绝对误差}
    YCCI:=(TYP-MA(TYP,308))/(0.015*AVEDEV(TYP,308)),COLOR004000,LINETHICK3;
    {DRAWBAND(ZCCI,RGB(155,55,0),YCCI,RGB(0,55,155));}
    {(TYP-TYP的308日移动平均)/0.015* TYP的308日平均绝对误差}
    CCI底线:=IF(YCCI<IF(CCI>ZCCI,ZCCI,CCI),YCCI,IF(CCI>ZCCI,ZCCI,CCI)),COLORMAGENTA;
    {DRAWBAND(ZCCI,RGB(150,0,0),200,RGB(0,0,150));
    DRAWBAND(YCCI,RGB(200,0,0),200,RGB(0,0,200));
    DRAWBAND(CCI,RGB(50,0,0),100,RGB(0,0,50));
    STICKLINE(CCI底线>100,60,100,3,0),COLOR000099;
    STICKLINE(CCI底线>100,60,100,2.2,0),COLOR0000CC;
    STICKLINE(CCI底线>100,60,100,1.5,0),COLORRED;
    STICKLINE(CCI底线>100,60,100,0.5,0),COLORCC66FF;
    STICKLINE(CCI底线>100,60,100,0.5,0),COLORYELLOW;}
    N0:=5;N1:=13;N2:=34;N3:=89;
    WR250:=100*(HHV(HIGH,250)-CLOSE)/(HHV(HIGH,250)-LLV(LOW,250)),COLORFFFF00,LINETHICK3;
    WR60:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),COLORGREEN;
    WR89:=100*(HHV(HIGH,89)-CLOSE)/(HHV(HIGH,89)-LLV(LOW,89)),COLORGREEN;
    WR10:=100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORRED;
    WR20:=100*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20)),COLORYELLOW;
    WR5:=100*(HHV(HIGH,N0)-CLOSE)/(HHV(HIGH,N0)-LLV(LOW,N0)),COLORWHITE;
    {DRAWBAND(WR10,RGB(0,22,222),WR89,RGB(222,22,2));
    DRAWBAND(WR5,RGB(0,11,111),60,RGB(111,11,1));
    DRAWBAND(20,RGB(255,155,0),WR5,RGB(0,155,255));
    DRAWBAND(20,RGB(255,255,0),WR60,RGB(0,255,255));
    DRAWBAND(WR60,RGB(0,60,120),WR250,RGB(120,60,0));
    DRAWBAND(WR5,RGB(0,100,100),WR20,RGB(150,150,0));}
    V1:=IF(C/REF(C,1)>1.094 AND C=H AND C=O,HHV(V,20),V);
    LWR4:=-100*(HHV(V1,250)-V1)/(HHV(V1,250)-LLV(V1,250)),COLORFFFF00;
    LWR3:=-100*(HHV(V1,60)-V1)/(HHV(V1,60)-LLV(V1,60)),COLORGREEN;
    LWR1:=-100*(HHV(V1,10)-V1)/(HHV(V1,10)-LLV(V1,10)),COLORYELLOW;
    LWR2:=-100*(HHV(V1,20)-V1)/(HHV(V1,20)-LLV(V1,20)),COLORMAGENTA;
    LWR0:=-100*(HHV(V1,5)-V1)/(HHV(V1,5)-LLV(V1,5)),COLORRED;
    {DRAWBAND(LWR1,RGB(222,22,2),LWR3,RGB(2,22,222));
    DRAWBAND(LWR3,RGB(222,222,1),-20,RGB(1,222,222));
    DRAWBAND(LWR0,RGB(155,55,5),LWR2,RGB(5,55,155));}
    启动:=LWR0>-20 AND WR5<20 AND CCI>100;
    除此:=((WR60<=REF(WR60,1) OR WR250<=REF(WR250,1)) AND WR5<20);
    进:=WR60<80 AND WR5<WR60 AND LWR0>=REF(LWR0,1) AND ((CROSS(WR20,WR5) AND WR20<REF(WR20,1)) OR (CROSS(WR60,WR5) AND WR60<REF(WR60,1))
    OR CROSS(WR250,WR5) AND WR250<REF(WR250,1)) OR (CROSS(20,WR20) AND WR20<REF(WR20,1));
    {STICKLINE(进,240,220,0,0),COLOR0022FF;
    STICKLINE(进,240,220,3.2,0),COLOR002288;
    STICKLINE(进,240,220,2.6,0),COLOR0033AA;
    STICKLINE(进,240,220,1.9,0),COLOR0044CC;
    STICKLINE(进,240,220,1.2,0),COLOR0055EE;
    STICKLINE(进,240,220,0.6,0),COLOR0077FF;
    STICKLINE(进,240,220,0.3,0),COLOR0088FF;}
    预备跑:=WR60>20 AND (WR60>REF(WR60,1) OR WR250>REF(WR250,1)) AND ((CROSS(WR5,20) AND LWR0>=REF(LWR0,1)) OR CROSS(WR5,WR20) OR CROSS(WR20,20)
    OR CROSS(WR5,WR60) OR CROSS(WR5,WR250)) ;
    {STICKLINE(预备跑,240,220,0,0),COLOR00FF00;
    STICKLINE(预备跑,240,220,3,0),COLOR009900;
    STICKLINE(预备跑,240,220,2,0),COLOR00BB00;
    STICKLINE(预备跑,240,220,1,0),COLOR00DD00;
    STICKLINE(预备跑,240,220,0.3,0),COLOR00FF00;}
    出逃:=( WR5>REF(WR5,1) AND WR60>REF(WR60,1) AND WR250>REF(WR250,1) AND WR5>WR60 AND WR60>WR250 AND REF(WR5,1)<20) OR (WR60>20 AND (WR60>REF(WR60,1) OR WR250>REF(WR250,1)) AND ((LWR0<REF(LWR0,1) AND REF(LWR0,1)>REF(LWR0,2) AND CROSS(WR5,20)) OR (LWR0>=REF(LWR0,1) AND (WR5<20 AND WR5>REF(WR5,1) OR CROSS(WR5,WR20) OR CROSS(WR5,WR60)
    OR CROSS(WR5,WR250)))));
    {STICKLINE(出逃,240,220,0,1),COLORFF8800;
    STICKLINE(出逃,240,220,3.2,0),COLORFF2200;
    STICKLINE(出逃,240,220,2.6,0),COLORFF4400;
    STICKLINE(出逃,240,220,1.9,0),COLORFF6600;
    STICKLINE(出逃,240,220,1.1,0),COLORFF8800;
    STICKLINE(出逃,240,220,0.3,0),COLORFFAA00;}
    {DRAWTEXT(启动 AND COUNT(启动,10)=1,200,'★'),COLORYELLOW;
    DRAWTEXT(启动 AND COUNT(启动,10)=1,210,'★'),COLORRED;
    DRAWTEXT(启动 AND COUNT(启动,10)=1,220,'★'),COLORMAGENTA;
    DRAWICON(启动 AND COUNT(启动,10)=1,230,25);}
    (CROSS(ZCCI,200) OR CROSS(YCCI,200) OR 启动) AND 去掉;

    九毛八公式解读

    S1赋值:如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1OR 如果模糊匹配品种代码,返回0,否则返回1 OR 如果模糊匹配品种代码,返回0,否则返回1
    S2赋值:如果模糊匹配品种名称,返回0,否则返回1
    S3赋值:如果模糊匹配品种名称,返回0,否则返回1
    S4赋值:量比>0
    去掉赋值:S1 AND (S2 AND S3 AND S4 AND 当前流通股本(手)/1000000<30 AND 属于某板块=0)
    TYP赋值:(最高价+最低价+收盘价)/3
    CCI赋值:(TYP-TYP的14日简单移动平均)/(0.015*TYP的14日平均绝对偏差),画红色,线宽为3
    ZCCI赋值:(TYP-TYP的70日简单移动平均)/(0.015*TYP的70日平均绝对偏差),画黄色,线宽为3
    YCCI赋值:(TYP-TYP的308日简单移动平均)/(0.015*TYP的308日平均绝对偏差),COLOR004000,线宽为3
    CCI底线赋值:如果YCCI<如果CCI>ZCCI,返回ZCCI,否则返回CCI,返回YCCI,否则返回如果CCI>ZCCI,返回ZCCI,否则返回CCI,画洋红色
    N0赋值:5
    N1赋值:13
    N2赋值:34
    N3赋值:89
    WR250赋值:100*(250日内最高价的最高值-收盘价)/(250日内最高价的最高值-250日内最低价的最低值),COLORFFFF00,线宽为3
    WR60赋值:100*(60日内最高价的最高值-收盘价)/(60日内最高价的最高值-60日内最低价的最低值),画绿色
    WR89赋值:100*(89日内最高价的最高值-收盘价)/(89日内最高价的最高值-89日内最低价的最低值),画绿色
    WR10赋值:100*(10日内最高价的最高值-收盘价)/(10日内最高价的最高值-10日内最低价的最低值),画红色
    WR20赋值:100*(20日内最高价的最高值-收盘价)/(20日内最高价的最高值-20日内最低价的最低值),画黄色
    WR5赋值:100*(N0日内最高价的最高值-收盘价)/(N0日内最高价的最高值-N0日内最低价的最低值),画白色
    V1赋值:如果收盘价/1日前的收盘价>1.094ANDC=HANDC=开盘价,返回20日内成交量(手)的最高值,否则返回成交量(手)
    LWR4赋值:-100*(250日内V1的最高值-V1)/(250日内V1的最高值-250日内V1的最低值),COLORFFFF00
    LWR3赋值:-100*(60日内V1的最高值-V1)/(60日内V1的最高值-60日内V1的最低值),画绿色
    LWR1赋值:-100*(10日内V1的最高值-V1)/(10日内V1的最高值-10日内V1的最低值),画黄色
    LWR2赋值:-100*(20日内V1的最高值-V1)/(20日内V1的最高值-20日内V1的最低值),画洋红色
    LWR0赋值:-100*(5日内V1的最高值-V1)/(5日内V1的最高值-5日内V1的最低值),画红色
    启动赋值:LWR0>-20 AND WR5<20 AND CCI>100
    除此赋值:((WR60<=1日前的WR60 OR WR250<=1日前的WR250) AND WR5<20)
    进赋值:WR60<80 AND WR5=1日前的LWR0 AND ((WR20上穿WR5 AND WR20<1日前的WR20) OR (WR60上穿WR5 AND WR60<1日前的WR60)OR WR250上穿WR5 AND WR250<1日前的WR250) OR (20上穿WR20 AND WR20<1日前的WR20)
    预备跑赋值:WR60>20 AND (WR60>1日前的WR60 OR WR250>1日前的WR250) AND ((WR5上穿20 AND LWR0>=1日前的LWR0) OR WR5上穿WR20 OR WR20上穿20OR WR5上穿WR60 OR WR5上穿WR250) 
    出逃赋值:( WR5>1日前的WR5 AND WR60>1日前的WR60 AND WR250>1日前的WR250 AND WR5>WR60 AND WR60>WR250 AND 1日前的WR5<20) OR (WR60>20 AND (WR60>1日前的WR60 OR WR250>1日前的WR250) AND ((LWR0<1日前的LWR0 AND 1日前的LWR0>2日前的LWR0 AND WR5上穿20) OR (LWR0>=1日前的LWR0 AND (WR5<20 AND WR5>1日前的WR5 OR WR5上穿WR20 OR WR5上穿WR60OR WR5上穿WR250))))
    (ZCCI上穿200 OR YCCI上穿200 OR 启动) AND 去掉

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 周月CCI抓妖选股公式 加入收藏