最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧回踩十日线选股公式(大智慧公式)

    正文概述    2024-05-04 04:18:18  


    大智慧公式源码概况:


    指标类别:大智慧公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 主图



    一、大智慧回踩十日线公式

     

    A1:=COST(85); 

    A2:=COST(15); 

    A3:=A1-A2; 

    A4:=(A1+A2)/2; 

    A5:=A3/A4*100  

    B1:=HHV(HIGH,250); 

    B2:=LLV(LOW,250); 

    B3:=B1-B2; 

    B4:=(A4-B2); 

    XG:A5ANDB4ANDWINNER(C) =0.90ANDC=HANDC REF(C,1); 

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); 

    DEA:=EMA(DIF,9); 

    XG:BARSLASTCOUNT(DIF 0 

    ANDDEA 0) 

    ANDCROSS(MA(C,60),L) 

    ANDDIF DEA 

    ANDC MA(C,60) 

    ANDMA(C,60) REF(MA(C,60),1) 

    AND(MIN(OPEN,CLOSE)-LOW)/(HIGH-LOW)  

    N:=20; 

    上穿:=EXIST(CROSS(C,MA(C,N)),10); 

    向上:=EVERY(MA(C,N) REF(MA(C,N),1),3); 

    回踩:=ABS(L-MA(C,N))/L =0.01ANDC MA(C,N)AND(MIN(C,O)-L)/ABS(C-O)  

    缩量:=REF(VOL HHV(V,10),1); 

    缩量过滤:=FILTER(缩量,3); 

    JXHC:上穿AND向上AND回踩AND缩量AND缩量过滤; 

    MA480:MA(C,480); 

    TJ360:=C=HHV(C,150);{线} 

    TS360:=BARSLAST(TJ360); 

    HHC360:=REF(C,TS360); 

    RHHC360:=REF(HHC360,1); 

    TJ1360:=H LANDC RHHC360; 

    CS1360:=BARSLASTCOUNT(TJ1360); 

    CSS:=COUNT(CS1360=1,60); 

    MR:=CS1360=1ANDCSS=1; 

    STICKLINE(MR,O,C,3,0),COLORBLUE; 

    DRAWTEXT(MR,L, 黑马线 ),COLORYELLOW; 

    HMXTS:=BARSLAST(MR); 

    黑马线:CONST(REF(C,HMXTS)),COLORFFFF00,LINETHICK2; 

    高D:=REF(HHV(H,72),5); 

    龙门:REFDATE(高D,DATE),COLORWHITE,LINETHICK2; 

    TM:=1200823; 

    :IF(DATE TM,ZTPRICE(REF(C,1),IF(CODELIKE( 688 ),0.2,IF(NAMEINCLUDE( S ),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE( 688 )ORCODELIKE( 300 ),0.2,IF(NAMEINCLUDE( S ),0.05,0.1)))),NODRAW,COLORRED; 

    跌停:IF(DATE TM,DTPRICE(REF(C,1),IF(CODELIKE( 688 ),0.2,IF(NAMEINCLUDE( S ),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE( 688 )ORCODELIKE( 300 ),0.2,IF(NAMEINCLUDE( S ),0.05,0.1)))),NODRAW,COLORGREEN; 

    明涨停:IF(DATE TM,C*IF(CODELIKE( 688 ),1.2,IF(NAMEINCLUDE( S ),1.05,1.1)),C*(IF(CODELIKE( 688 )ORCODELIKE( 300 ),1.2,IF(NAMEINCLUDE( S ),1.05,1.1)))),NODRAW,COLORLIMAGENTA; 

    明跌停:IF(DATE TM,C*IF(CODELIKE( 688 ),0.8,IF(NAMEINCLUDE( S ),0.45,0.9)),C*(IF(CODELIKE( 688 )ORCODELIKE( 300 ),0.8,IF(NAMEINCLUDE( S ),0.45,0.9)))),NODRAW,COLORFFFF00; 

    ZT:=C=涨停ANDPERIOD=5ANDH=C; 

    ZT1:=H=涨停ANDPERIOD=5ANDH  

    DT:=C=跌停ANDPERIOD=5ANDL=C; 

    DT1:=L=跌停ANDPERIOD=5ANDL  

    DRAWTEXT(CURRBARSCOUNT=1,L*0.995,EXTERNSTR(0,4));{涨停原因} 

    半分:(O+C)/2,NODRAW; 

    昨半:REF((O+C)/2,1),NODRAW,COLORYELLOW; 

    STICKLINE(ISLASTBAR,昨半,昨半,8,2),COLORLIRED; 

    LB:=REF(EVERY(ZT,3),2)ANDREF(H=HHV(H,20),1)ANDH REF(H,1); 

    LBQ:=BARSLAST(LB); 

    打折:=REF(H,LBQ+1)*0.7,NODRAW,COLORWHITE; 

    STICKLINE(打折,打折,打折,5,0),COLORFFFF44; 

    Q3:=STRCAT(CON2STR(打折,2), 打折线  

    DRAWTEXT(ISLASTBAR,打折,VARCAT(VARCAT( 打折线 ,VAR2STR(打折,2)), 元 ))COLORFFFF00; 

    基柱:=C REF(C,1)*1.05ANDV =REF(V,1)*1.85; 

    周期:=BARSLAST(基柱); 

    STICKLINE(基柱,O,C,2.8,0),COLORFF00FF; 

    DRAWLINE(基柱,C,REF(基柱,1),REF(C,1),1),COLORWHITE,DOTLINE; 

    DRAWLINE(基柱,O,REF(基柱,1),REF(O,1),1),COLORLIGREEN,DOTLINE; 

    小K:=BETWEEN(C,REF(C,1)*0.98,REF(C,1)*1.02); 

    买点1:=小KANDBETWEEN(周期,3,100)ANDBETWEEN(L,REF(C,周期)*0.99,REF(C,周期)*1.005)ANDV =REF(V,1)*0.85; 

    DRAWICON(买点1,MIN(C,O),7); 

    买点2:=小KANDBETWEEN(周期,3,100)ANDBETWEEN(L,REF(L,周期),REF(L,周期)*1.01)ANDV =REF(V,1)*0.85; 

    DRAWICON(买点2,MIN(C,O),1); 

    买点3:=EXIST(买点1OR买点2,60)ANDCROSS(C,REF(H,周期)); 

    DRAWICON(买点3,MIN(C,O),13); 

    {涨停K线颜色设置} 

    STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099; 

    STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC; 

    STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF; 

    STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF; 

    STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999; 

    STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB; 

    STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD; 

    STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF; 

    STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999; 

    STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB; 

    STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD; 

    STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF; 

    STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900; 

    STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00; 

    STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00; 

    STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00; 

    {曾涨跌停打开K线颜色设置} 

    STICKLINE(ZT1ANDC =O,H,L,0,0),COLORRED; 

    STICKLINE(ZT1ANDC O,H,L,0,0),COLORLIBLUE; 

    STICKLINE(DT1ANDC =O,H,L,0,0),COLORRED; 

    STICKLINE(DT1ANDC O,H,L,0,0),COLORLIBLUE; 

    STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF; 

    STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF; 

    STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF; 

    STICKLINE(ZT1,C,(O+C)/2,0.5,0),COLORCC66FF; 

    STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999; 

    STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB; 

    STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD; 

    STICKLINE(ZT1,O,(O+C)/2,0.5,0),COLORFFFFFF; 

    STICKLINE(DT1,O,(O+C)/2,2.5,0),COLOR888888; 

    STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB; 

    STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD; 

    STICKLINE(DT1,O,(O+C)/2,0.5,0),COLORFFFFFF; 

    STICKLINE(DT1,C,(O+C)/2,2.5,0),COLOR009900; 

    STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00; 

    STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00; 

    STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00; 

    假阴:=REF(C =O,1)ANDAMOUNT/V/100 REF(C,1)ANDC  

    假阳:=REF(C =O,1)ANDH REF(O,1)ANDC (REF(O-C,1))/3+REF(C,1)ANDAMOUNT/V/100 REF(C,1)ANDC  

    STICKLINE(假阴,O,C,0.2,0),COLORRED;{假阴柱}; 

    STICKLINE(假阳,O,C,0.7,0),COLORLIGREEN;{假阳柱}; 

    首板:=ZTANDCOUNT(ZT,2)=1; 

    二板:=REF(首板,1)ANDZT; 

    三板:=REF(二板,1)ANDZT; 

    四板:=REF(三板,1)ANDZT; 

    五板:=REF(四板,1)ANDZT; 

    六板:=REF(五板,1)ANDZT; 

    七板:=REF(六板,1)ANDZT; 

    八板:=REF(七板,1)ANDZT; 

    九板:=REF(八板,1)ANDZT; 

    十板:=REF(九板,1)ANDZT; 

    DRAWTEXT(首板,0.1+(C+O)/2, 1 ),COLORWHITE; 

    DRAWTEXT(二板,0.1+(C+O)/2, 2 ),COLORYELLOW; 

    DRAWTEXT(三板,0.1+(C+O)/2, 3 ),COLOR00CC99; 

    DRAWTEXT(四板,0.1+(C+O)/2, 4 ),COLORGREEN; 

    DRAWTEXT(五板,0.1+(C+O)/2, 5 ),COLORLIGRAY; 

    DRAWTEXT(六板,0.1+(C+O)/2, 6 ),COLORLIRED; 

    DRAWTEXT(七板,0.1+(C+O)/2, 7 ),COLORLIBLUE; 

    DRAWTEXT(八板,0.1+(C+O)/2, 8 ),COLORBLUE; 

    DRAWTEXT(九板,0.1+(C+O)/2, 9 ),COLORWHITE; 

    DRAWTEXT(十板,0.1+(C+O)/2, 10 ),COLORYELLOW; 

    月:REF(O,BARSLAST(MONTH!=REF(MONTH,1))),COLORRED,NODRAW; 

    STICKLINE(C 月,月,月,5,0),COLORRED; 

    STICKLINE(C 月,月,月,5,0),COLORFFFF00; 

    STICKLINE(C=月,月,月,5,0),COLORWHITE; 

    收阴:=(C REF(C,1)ORL REF(L,1)ORAMOUNT/V/100 REF((C+O)/2,1))ANDO =REF(C,1); 

    多阴:=EVERY(收阴,2); 

    小阳:=O-L =0.03ANDH CANDC OANDO REF(C,1)ANDC REF(MAX(C,O),1)ANDV REF(V,1); 

    宝莲灯:=REF(多阴,1)AND小阳; 

    STICKLINE(宝莲灯,O,C,2.5,0),COLORCC22FF; 

    STICKLINE(宝莲灯,(O+C)/2-0.007,(O+C)/2+0.007,1,0),COLORWHITE; 

    A1:=EMA(C,12)-EMA(C,25); 

    A2:=EMA(A1,6); 

    获利回吐:=(A2 =0)*A2,COLORWHITE,LINETHICK0; 

    大黑马:=(A2 0)*A2,COLORD4FF7F,LINETHICK0; 

    坚绝做空:=(A1 0)*A1,COLORB00058,LINETHICK0; 

    买入持股:=(A1 =0)*A1,COLORRED,LINETHICK0; 

    VAR8:=VOL 2*MA(VOL,30); 

    VARB:=CLOSE MA(CLOSE,30)ANDCLOSE MA(CLOSE,30)*1.04; 

    VARC:=MA(CLOSE,30) REF(MA(CLOSE,30),1); 

    VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10))) BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5))); 

    VARF:=TROUGHBARS(3,15,1)  

    VAR10:=EMA(CLOSE,30) REF(EMA(CLOSE,30),2); 

    VAR11:=IF(VARF=1,50,0); 

    多空:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE; 

    STICKLINE(FILTER(VARF=1,5)AND多空 -10,C,O,2.8,0),COLORF00FF0; 

    STICKLINE(FILTER(VARF=1,5),(C+O)*0.5-0.007,(C+O)*0.5+0.007,1,0),COLORBLACK; 

    DRAWTEXT(FILTER(VARF=1,3),L, 黑马 ),COLORRED; 

    VAR121:=ZIG(3,6) REF(ZIG(3,6),1)ANDREF(ZIG(3,6),1) =REF(ZIG(3,6),2)ANDREF(ZIG(3,6),2) =REF(ZIG(3,6),3); 

    VAR141:=ZIG(3,25) REF(ZIG(3,25),1)ANDREF(ZIG(3,25),1) =REF(ZIG(3,25),2)ANDREF(ZIG(3,25),2) =REF(ZIG(3,25),3); 

    VAR161:=ZIG(3,55) REF(ZIG(3,55),1)ANDREF(ZIG(3,55),1) =REF(ZIG(3,55),2)ANDREF(ZIG(3,55),2) =REF(ZIG(3,55),3); 

    VAR181:=ZIG(3,72) REF(ZIG(3,72),1)ANDREF(ZIG(3,72),1) =REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2) =REF(ZIG(3,72),3); 

    卖:=VAR121+VAR141+VAR161+VAR181; 

    DRAWLINE(卖,O,BARSLAST(卖) =1,REF(O,BARSLAST(卖)),1),COLORYELLOW,LINETHICK2; 

    LC:=REF(CLOSE,1); 

    RSI1:=(SMA(MAX(CLOSE-LC,0),9,1))/(SMA(ABS(CLOSE-LC),9,1))*100; 

    RSI2:=(SMA(MAX(CLOSE-LC,0),26,1))/(SMA(ABS(CLOSE-LC),26,1))*100; 

    RSI:RSI1 RSI2;


    image.png

    公式解读:

    [源码注释]大智慧公式动态公式解读


    最近5日一直存在KDJ的J 0





    每日大智慧公式解答:

    股票公式编写要求:

    KDJ中J值下0后超过3天的选股公式。

    股票公式编写结果:

    EVERY(KDJ.J 0,5);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧回踩十日线选股公式(大智慧公式) 加入收藏