最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 大智慧乾坤布林主图指标公式

    正文概述    2024-04-13 00:50:40  

    M:=10;P:=3;N:=-1;
    趋势:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
    上轨:趋势+P*STD(趋势,M),coloryellow,linethick2;
    下轨:趋势-P*STD(趋势,M),colorwhite,linethick2;
    N1:=6+N;
    N2:=55+6*N;
    N3:=86+55*N;
    E5:=(EMA(CLOSE,4)+EMA(CLOSE,5))/2;
    A5:=(MA(CLOSE,4)+MA(CLOSE,5))/2;
    E9:=EMA(CLOSE,N1);A9:=MA(CLOSE,N1);
    E36:=EMA(CLOSE,N2);A36:=MA(CLOSE,N2);
    E153:=EMA(CLOSE,N3);A153:=MA(CLOSE,N3);
    ZQ:=DATATYPE;
    MX:=IF(ZQ=13,A5,IF(ZQ=10,A9,IF(ZQ=9,A36,A153)));
    EX:=IF(ZQ=13,E5,IF(ZQ=10,E9,IF(ZQ=9,E36,E153)));
    FILLRGN(MX,EX,MX>EX,RGB(16,166,68),MX {避免遮挡k线}
    STICKLINE(C>O OR (C=O AND C>REF(C,1)),H,L,0,0),COLOR5454FF;
    STICKLINE(C>O OR (C=O AND C>REF(C,1)),C,O,7.5,0),COLOR000000;
    STICKLINE(C>O OR (C=O AND C>REF(C,1)),C,O,7.5,1),COLOR5454FF;
    STICKLINE(C STICKLINE(C {趋向监控}
    QN:=14;QM:=5;
    TR1:=SMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),QN,1);
    HHD:=HIGH-REF(HIGH,1);
    LLD:=REF(LOW,1)-LOW;
    DMP:=SMA(IF(HHD>0 AND HHD>LLD,HHD,0),QN,1);
    DMM:=SMA(IF(LLD>0 AND LLD>HHD,LLD,0),QN,1);
    pdi:=DMP*100/TR1;
    mdi:=DMM*100/TR1;
    ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,QN,1);
    DX:=(ADX*14-REF(ADX,1)*13)*IF(PDI>MDI,1,-1);
    EMADX:=EMA(DX,QM);
    {强势监控}
    个股bbi1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
    大盘BBI2:=(MA(INDEXC,3)+MA(INDEXC,6)+MA(INDEXC,12)+MA(INDEXC,24))/4;
    个股:=(C-个股BBI1)/个股BBI1*100;
    大盘:=(INDEXC-大盘BBI2)/大盘BBI2*100;
    {黄金K线}
    NX:=(3*CLOSE+LOW+OPEN+HIGH)/6; {重心线}
    牛线:(20*NX+19*REF(NX,1)+18*REF(NX,2)+17*REF(NX,3)+16*REF(NX,4)+15*REF(NX,5)+14*REF(NX,6)+13*REF(NX,7)+12*REF(NX,8)+11*REF(NX,9)
    +10*REF(NX,10)+9*REF(NX,11)+8*REF(NX,12)+7*REF(NX,13)+6*REF(NX,14)+5*REF(NX,15)+4*REF(NX,16)+3*REF(NX,17)+2*REF(NX,18)+REF(NX,20))/210,COLORRED,LINETHICK1;
    牛熊线:MA(牛线,4),COLORYELLOW,LINETHICK2;
    熊线:MA(牛线,8),COLORFFCC18,LINETHICK1;
    partline(牛熊线,牛熊线<=牛线,rgb(255,0,0),牛熊线>牛线,rgb(0,255,0)),linethick2;
    {均线}
    K线整理:=MA(cyc(2),2);
    湿吻:=crOSS(K线整理,牛熊线) AND K线整理>牛熊线 AND (DX-EMADX)>0 AND (个股-大盘)>1 AND (DX-EMADX)>4 ;
    DRAWTEXT(湿吻,牛线*1,'↖湿吻'),COLORYELLOW;
    DRAWTEXT(湿吻,REF(L,1)*1,STR(REF(BArslAST(湿吻),1))),COLORred;
    唇吻:=REF(K线整理,2)>REF(牛线,2) AND REF(K线整理,1)>REF(牛线,1) AND K线整理>牛线 AND C>O
    AND (REF(K线整理,2)>REF(K线整理,1) AND K线整理>REF(K线整理,1))
    AND (REF(L,1)REF(牛熊线,1)) AND vol>REF(VOL,1)
    AND (ATAN((K线整理/REF(K线整理,1)-1)*100)*180/3.1416)>20 AND (ATAN((牛熊线/REF(牛熊线,1)-1)*100)*180/3.1416)>=0;
    DRAWTEXT(唇吻,REF(L,1)*1,'↖唇吻'),COLORYELLOW;
    {均线定义}
    MA5:=MA(CLOSE,5);
    MA10:=MA(CLOSE,10);
    MA20:=MA(CLOSE,20);
    MA30:=MA(CLOSE,30);
    MA40:=MA(CLOSE,40);
    MA60:=MA(CLOSE,60);
    MA120:=MA(CLOSE,120);
    MA240:=MA(CLOSE,240);
    {老鸭头提示}
    LYDAY1 := BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,60)));{5日均线上穿60日均线}
    LYDAY2 := BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,60)));{10日均线上穿60日均线,至此形成鸭颈部}
    LYDAY3 := BARSLAST(HIGH=HHV(HIGH,LYDAY2));{形成头部,要下跌}
    LYDAY4 := BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));{下跌后,5日均线和10日均线死叉}
    LYDAY5 := BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)));{回落不久,5日均线和10日均线形成金叉,形成部}
    YA1:= LYDAY1>LYDAY2 AND LYDAY2>LYDAY3 AND LYDAY3>LYDAY4 AND LYDAY4>LYDAY5 AND LYDAY5<5;
    YA2:= COUNT(CROSS(MA(CLOSE,10),MA(CLOSE,5)),LYDAY2)=1;
    YAA:=IF(YA1 AND YA2 AND MA(CLOSE,5)>=MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,60),10,0);
    BBY:=FILTER( YA1 AND YA2 AND MA(CLOSE,5)>=MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,60),5);
    老鸭头:=YAA AND BBY;
    {金蜘蛛提示}
    金蜘蛛:=BARSLAST(CROSS(MA20,MA40))=BARSLAST(CROSS(MA20,MA60)) AND BARSLAST(CROSS(MA20,MA60))=BARSLAST(CROSS(MA40,MA60))
    AND REF(MA20,1)MA40 AND MA40>MA60;
    YJZZ:=(BARSLAST(CROSS(MA5,MA10))=BARSLAST(CROSS(MA5,MA20)) AND BARSLAST(CROSS(MA5,MA20))=BARSLAST(CROSS(MA10,MA20)) OR (BARSLAST(CROSS(MA5,MA10))-BARSLAST(CROSS(MA5,MA20))=1 OR BARSLAST(CROSS(MA5,MA20))-BARSLAST(CROSS(MA10,MA20))=1))
    AND REF(MA5,2)MA10 AND MA10>MA20 ;
    YJZZ1:=BARSLAST(CROSS(MA5,MA10))=BARSLAST(CROSS(MA5,MA20)) AND BARSLAST(CROSS(MA5,MA20))=BARSLAST(CROSS(MA10,MA20)) AND MA5>MA10 AND MA10>MA20 AND BARSLAST(CROSS(MA5,MA10))=1;
    月蜘蛛:=YJZZ OR YJZZ1;
    {一穿三线}
    一穿三:=MA(CLOSE,5)>O AND MA(CLOSE,10)>O AND MA(CLOSE,30)>O AND MA(CLOSE,5)OPEN ;
    {出水芙蓉}
    出水1:=OPEN 出水2:=C>MAX(MA(CLOSE,18),MAX(MA(CLOSE,34),MA(CLOSE,55)));
    出水3:=V/MA(V,30)>1.2;
    出水4:=C/REF(C,1)>1.049;
    芙蓉出水:=出水1 AND 出水2 AND 出水3 AND 出水4;
    {东方红}
    HSL:=V/CAPITAL*100;
    ZTJ:=(COUNT((HSL>2 AND C>REF(C,1)),13)>=3) AND (C/REF(C,1)>1.049 AND HSL>3) AND (REF(SUMBARS(V,CAPITAL),13)>34) AND (HIGH/C<1.021) ;
    东方红:=ZTJ AND (REF(BARSLAST(ZTJ),1)>20 OR BARSSINCE( ZTJ)=0);
    {DRAWTEXT(圆弧突破,圆弧突破,'圆弧突破'),COLORC854FF;}
    DRAWTEXT(金蜘蛛,MA20+0.08,'金蛛'),COLORYELLOW;
    DRAWTEXT(月蜘蛛,MA40-0.08,'月蛛'),COLORYELLOW;
    DRAWTEXT(老鸭头,MA10-0.08,'老鸭头'),COLORGREEN;
    DRAWTEXT(一穿三,C*0.98,'穿三线'),COLORFF00FF;
    DRAWTEXT(芙蓉出水,H*0.98,'芙蓉出水'),COLORGREEN;
    DRAWTEXT(东方红 ,H*1.01,'东方红'),COLORRED;
    {量能定义}
    VOL5:=MA(VOL,5);
    VOL10:=MA(VOL,10);
    VOL20:=MA(VOL,20);
    VOL40:=MA(VOL,40);

    量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)O;
    LTJ1:=(BARSLAST(CROSS(VOL5,VOL10))>BARSLAST(CROSS(VOL5,VOL20)) OR BARSLAST(CROSS(VOL5,VOL10))=BARSLAST(CROSS(VOL5,VOL20))) AND BARSLAST(CROSS(VOL5,VOL20))=0 AND VOL10 LTJ2:=(C>O AND REF(C,1)REF(O,2) AND C>REF(C,2));
    LTJ:=LTJ1 AND LTJ2;
    放量突破:=DYNAINFO(4)>0
    AND HHV(HIGH,10)/LLV(LOW,10)<1.25
    AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)
    AND CLOSE>OPEN
    AND CLOSE>=HHV(HIGH,10);
    {量价配合}
    LJ3:=VOL>=HHV(VOL,20) AND VOL/REF(VOL,1)>=2;
    LJ4:=C/O>1.02 AND C>REF(C,1);{收盘价格大于昨天涨幅大于百分之二 }
    量价飞:=LJ3 AND LJ4;
    {将军黄金柱}
    三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
    三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) 三日价涨A:=C>=REF(C,1);
    三日价涨B:=C 三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
    TIM:=IF(DATE<1140214,1,0);
    缩倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;
    百日低量:=(VOL=LLV(VOL,100))*TIM;
    倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;
    四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;
    四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量缩)*TIM;
    前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
    倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    黄金柱:=倍量黄金柱 OR 高量黄金柱 AND (DX-EMADX)>4;
    { _大智慧股票指标公式}
    倍量将军柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    高量将军柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    将军柱:=倍量将军柱 OR 高量将军柱 AND (DX-EMADX)>4;
    DRAWTEXT(LTJ,H+0.2,'量托+多方炮'),COLORYELLOW;
    DRAWTEXT(量托,C*1,'量托'),COLORWHITE;
    DRAWTEXT(放量突破,H+0.3, '放量突破'),COLORRED;
    DRAWTEXT(量价飞 ,O*1.02,'↖量价飞'),COLORYELLOW;
    BacKSET100:=BACKSET(黄金柱 OR 将军柱 ,4);
    FILTER100:=FILTER(BACKSET100,3);
    BACKSET101:=BACKSET(黄金柱,4);
    FILTER101:=FILTER(BACKSET101,3);
    BACKSET104:=BACKSET(将军柱,4);
    FILTER104:=FILTER(BACKSET104,3);
    DRAWTEXT(FILTER101,LOW*0.976,'↖黄金柱'),COLORYELLOW;
    DRAWTEXT(FILTER104,LOW*0.976,'↖将军柱'),COLORRED;
    {金牛}
    金牛VV:=MA(VOL,5)>MA(VOL,10) AND MA(VOL,10)>MA(VOL,20);
    金牛AA:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,30) AND MA(C,30)>MA(C,60) AND MA(C,60)>MA(C,120);
    金牛EE:=(HHV(C,60)-LLV(C,60))/LLV(C,60);
    金牛BB:=REF(金牛EE,1)<=0.30;
    金牛CC:=C>O AND C>=REF(HHV(C,60),1);
    金牛DD:=(C-REF(C,1))/REF(C,1)>=0.03;
    金牛出击:=金牛VV AND 金牛AA AND 金牛BB AND 金牛CC AND 金牛DD;
    DRAWTEXT(金牛出击,LOW,'金牛'),COLOR00FFFF;
    {追 击}
    VAR0:=IF((DATE<=1381006),1,0);
    多:=(EMA(CLOSE,3))*(VAR0);
    空:=(EMA(CLOSE,5))*(VAR0);
    买线:=(EMA(CLOSE,2))*(VAR0);
    卖线:=(EMA((SLOPE(CLOSE,21))*(20)+CLOSE,42))*(VAR0);
    穿越红线才能牛:=(HHV(MA(HIGH,13),13))*(VAR0);
    跌破受阻上支撑:=(LLV(MA(HIGH,13),1))*(VAR0);
    主力线:=(EMA(CLOSE,2))*(VAR0);
    散户线:=(EMA(CLOSE,4))*(VAR0);
    DRAWTEXT(CROSS(多,空) AND (买线>=卖线) AND (跌破受阻上支撑=穿越红线才能牛),O,'↖追击'),COLOR00FFFF;
    {攻击点}
    金分水岭:=SMA(SMA((CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE,13,1),2.5,1.5);
    金牛线:=3*SMA((CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE,13,1)-2*SMA(SMA((CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE,13,1),2.5,1.5);
    金熊线:=4*SMA(SMA((CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE,13,1),2.5,1.5)-3*SMA((CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE,13,1);
    金TT:=CROSS(金分水岭 ,金熊线);
    金TY:=CROSS(金牛线 ,金分水岭);
    黄金买点:=IF((金TT AND 金TY),5,0);
    { _大智慧股票指标公式}
    暴GG:=COUNT((C-REF(C,1))/REF(CLOSE,1)>=-0.03,5);
    暴SS:=COUNT((C-REF(C,1))/REF(CLOSE,1)<=0.03,5);
    暴QQ:=IF((暴GG AND 暴SS),1,0);
    暴涨买点:=IF((暴QQ AND 黄金买点),10,0);
    攻击点:=黄金买点 AND 暴涨买点;
    DRAWICON(攻击点,O*0.99,7);
    {超级黑马}
    HM02:=IF((CLOSE>LLV(CLOSE,SUMBARS(VOL,CAPITAL))),1,(0-1))*IF((SUM(IF((CLOSE>REF(CLOSE,1)),VOL,IF((CLOSELLV(SUM(IF((CLOSE>REF(CLOSE,1)),VOL,IF((CLOSE HM03:=(COUNT((IF((HM02=(0-1)),1,0)=1),8)>2);
    HM04:=((CLOSE-DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,AMOUNT/SUM(AMOUNT,13)/10000))/DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,AMOUNT/SUM(AMOUNT,13)/10000)*100<(0-18));
    HM05:=((CLOSE-MIN(REF(CLOSE, 5)*0.865,REF(CLOSE,21)*0.772))/CLOSE<0.009);
    HM06:=((HM03 AND HM04) AND HM05);
    HM07:=(((((OPEN=1.105)) AND (VOL/CAPITAL*100>=1.9)) AND (VOL/CAPITAL*100<=20));
    HM08:=(HM07 AND (COUNT(HM07, 5)=1));
    HM09:=((((((((((((MA(CLOSE,3)>REF(MA(CLOSE,3),1)) AND (MA(CLOSE,5)>REF(MA(CLOSE,5),1))) AND (MA(CLOSE,10)>REF(MA(CLOSE,10),1))) AND (VOL/240>REF(VOL,30)*1.2/240*1.5)) AND (CLOSE> LOW*1.059)) AND (CLOSE > REF(MA(CLOSE, 3),
    1))) AND REF(CLOSE,1)) AND (MA(CLOSE,5)>REF(MA(CLOSE,5),1))) AND (MA(CLOSE,10)>REF(MA(CLOSE,10),1))) AND (MA(CLOSE,20)>REF(MA(CLOSE,20),1))) AND (MA(VOL,5)>REF(MA(VOL,5),1))) AND ((MA(CLOSE,5)-MA(CLOSE,10))<= 0.579));
    HM0A:=FILTER(HM09,5);
    HM0B:=((HM06 OR HM07) AND HM0A);
    DRAWTEXT(HM0B,OPEN*0.98,'黑马'),COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 大智慧乾坤布林主图指标公式 加入收藏