最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • FZ实时布林(飞狐分时指标)

    正文概述    2024-04-08 00:22:50  

    FZ实时布林(飞狐分时指标)

    DRAWGBK(1,COLORRGB(0,100,50),COLORRGB(0,50,120),1);
    DYNAINFO(3);

    tt:=BARSCOUNT(C);
    CC:=CLOSE;
    zz:=SUM(AMOUNT,tt)/SUM(VOL*100,tt);
    zz1:=BETWEEN(C/zz,1.05,0.95);
    均线:IF(zz1=0,MA(C,TT),zz),COLOR00FFFF,LINETHICK0;
    PARTLINE(均线 =Cc,均线),color00ff00,Linethick2;
    PARTLINE(均线 Cc,均线),colorred,Linethick2;
    上均:均线 + AVEDEV(C,tt)*2,COLOR00FF00;
    下均:均线 - AVEDEV(C,tt)*2,COLORFF6600;

    close,linethick2,COLORBLACK;

    时长:=if(HOUR =13 AND HOUR 15 ,1,0);
    涨幅:=(close/DYNAINFO(3)) =1.03;
    跌幅:=(close/DYNAINFO(3)) =0.97;
    涨跌幅:=涨幅 OR 跌幅;
    yy:=SMA(vol,30,1);
    放量:=(yy-LLV(Llv(yy,1),30))/(HHV(Hhv(yy,1),30)-LLV(Llv(yy,1),30))
    横盘:=((HHV(CLOSE,TT)-LLV(CLOSE,TT))/CLOSE) =0.05;
    横涨:=涨跌幅=0 and 横盘 and 时长 and 放量 and CROSS(CC,上均)and DYNAINFO(22) DYNAINFO(23) ;
    横跌:=涨跌幅=0 and 横盘 and 时长 and 放量 and CROSS(下均,CC) ;
    PP:= FILTER(横涨,100) ;
    UU:= FILTER(横跌,50) ;
    DRAWTEXT(PP,上均,'★上突'),colorff00ff;
    DRAWTEXT(UU,下均,'★下破'),COLOR00FFFF;
    ;
    DRAWTEXT(PP,上均,'★突破'),COLORFF00FF;

    c,COLORBLACK,LINETHICK2;
    dk:=(上均-下均)*100/均线;
    DRAWTEXT(dk 4 AND CROSS(上均,Cc),上均,'★'),colorred,ALIGN1;
    DRAWTEXT(dk 4 AND CROSS(cc,下均),下均,'▲'),color00ff00,ALIGN1;
    DRAWTEXTEX(c 0,1,30,100,'布林上轨:'+NUMTOSTR(上均,2)+'元'),color00ff00;
    DRAWTEXTEX(c 0,1,30,150,'今日均线:'+NUMTOSTR(均线,2)+'元'),coloryellow;
    DRAWTEXTEX(c 0,1,30,200,'布林下轨:'+NUMTOSTR(下均,2)+'元'),colorffff00;
    DRAWTEXTEX(c 0,1,30,250,'布林带宽:'+NUMTOSTR(dk,2)+'%'),colorffff00;
    DRAWTEXT(FILTER(CROSS(C,REF(HHV(H,480),1)),10),C,'突破'),COLORYELLOW;
    T:=BARSCOUNT(C);
    TP:= FILTER( C =HHV(H,T) AND V MA(V,0)*2 AND DYNAINFO(17) 1 AND TIME0 39600 ,240) ;
    DRAWTEXT(TP,C,'★突破'),COLORred;
    A:=REF(HHV(HIGH,240),1);
    AA:=A[DATACOUNT];
    B:=REF(LLV(LOW,240),1);
    BB:=B[DATACOUNT];
    ZJ1:=(((HIGH + LOW) + (2 * CLOSE)) / 4);
    ZJ2:=(((ZJ1 - EMA(ZJ1,21)) / STD(ZJ1,21)) * 100);
    ZJ3:=EMA(ZJ2,5);
    ZJ4:=EMA(ZJ3,2);
    ZJ5:=EMA(ZJ4,2);
    ZJ6:=(((3 * ZJ4) - (2 * ZJ5)) / 2);
    IF((ZJ6 90),(AA * 0.998),AA),LINETHICK2,colorAAEE33;
    IF((ZJ6 (0 - 95)),(BB * 1.002),BB),LINETHICK2,colorDD66AA;

    KP30:=TIME0 36000;
    KPGD:=H=HHV(H,0) AND KP30;
    GDSJ:=BARSLAST(KPGD);
    HH:REF(H,GDSJ),COLORFF00FF,POINTDOT,LINETHICK2;
    过顶:=IF(CROSS(C,HH),1,0),COLOR00FF00,POINTDOT,LINETHICK0;
    冲高:=IF(FILTER(CROSS(C,HH*1.01),15),1,0),COLOR00FFFF,POINTDOT,LINETHICK0;
    DRAWTEXT(过顶,HH,' '),COLOR00FF00,ALIGN1;
    DRAWTEXT(冲高,HH,'★'),COLOR00FFFF,ALIGN1;


    q2h:=if(ff 1,0.9797*rc,rc-2*f*1.016);//分时副图2最高位置
    q2l:=if(ff 1,0.9697*rc,rc-3*f*1.011);//分时副图2最低位置
    //以下清除原始的指标线,并画横坐标线
    FILLRGN(1,q2h,q2l),COLOR723500;
    cz:=(q2h-q2l)/6;

    趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
    见底信号:=10;
    a1:=趋势线;
    a2:=见底信号;
    a3:=90;
    mh:=hhv(max(a1,a2),0);
    mL:=LLv(min(a2,a1),0);
    mb:=(q2h-q2l)/(mH[q]-mL[q]);//缩放比例,选macd或diff来计算缩放比例
    my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;//平移值
    趋势线:a1*mb+my,COLORgreen;//副图2显示原来的diff指标线
    见底信号:a2*mb+my,COLORYELLOW;//副图2显示原来的dea指标线
    顶部: a3*mb+my,COLORYELLOW;

    b1:= macd.diff
    b2:= macd.dea
    b3:= macd.macd
    mh:=hhv(max(b1,b3),0);
    mL:=LLv(min(b3,b1),0);

    mb:=(q2h-q2l)/(mH[q]-mL[q]);//缩放比例,选macd或diff来计算缩放比例
    my:=(q2h+q2l-mb*(mH[q]+mL[q]))/2;//平移值
    diff:b1*mb+my,COLORWHITE;//副图2显示原来的diff指标线
    dea:b2*mb+my,COLORYELLOW;//副图2显示原来的dea指标线
    macd:=b3*mb+my;//副图2显示原来的macd指标线
    STICKLINE(macd my,my,macd,1,1),COLORRED;
    STICKLINE(macd my,my,macd,1,1),COLORCYAN;


    HLM6:=MA(LLV(L,96),17);
    HLM7:=MA((HLM1*0.558+HLM2*0.558+HLM3*0.558+HLM4*0.96+HLM5*0.96+HLM6*0.96)/6,17);
    HLM8:=MA((HLM1*0.55+HLM2*0.55+HLM3*0.65+HLM4*1.25+HLM5*1.23+HLM6*1.2)/6,17);
    HLM9:=MA((HLM1*0.68+HLM2*0.68+HLM3*0.68+HLM4*1.3+HLM5*1.3+HLM6*1.3)/6,17);
    HLM10:=MA((HLM7*3+HLM8*2+HLM9)/6*1.738,17);
    HLM11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
    HLM12:=MA(IF(C*1.35 =HLM10,HLM11*10,HLM11/10),3);
    HLMH:=HHV(HLM12,30);
    关注:=MA(IF(L =LLV(L,13),(HLMH+HLM11*2)/2,0),3)/200;
    DRAWTEXT(CROSS(关注,1.2),c*0.998,' ▲'),ColorFF00ff;


    ma5:=ma(c,5);
    ma10:=ma(c,10);
    ma20:=ma(c,20);
    ma30:=ma(c,30);
    ma60:=ma(c,60);
    ma120:=ma(c,120);
    fa:=barslast(cross(ma10,ma5)) and cross(ma5,ma10);
    fb:=fa and ma5 ma30 and ma10 ma30 and ma10 ref(ma10,1);

    DRAWTEXT(fb,l*0.095,'雄起'),COLORYELLOW;
    fa2:=barslast(cross(ma60,ma20)) and cross(ma20,ma60);
    fb2:=fa2 and ma20 ma120 and ma60 ma120 and ma20 ref(ma20,1);

    DRAWTEXT(fb2,l*0.095,'雄起'),COLORYELLOW;


    VL:=REF(LOW,1);
    VAR12:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
    VAR14:=MA(VAR12,13);
    VAR15:=LLV(LOW,34);
    VAR18:=EMA(IF(LOW =VAR15,VAR14,0),3);
    VAR110:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
    VAR111:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-VAR110*10.9;
    T:=FILTER(IF(VAR111 =VAR110 AND VAR18 REF(VAR18,1),VAR18*8,0),20);
    DRAWTEXT(T,LOW*0.995,' 洗盘结束'),COLORFF00FF;
    DRAWTEXT(T,LOW*0.998,''),COLORFF00FF;
    VAR21:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
    VAR22:=SMA(VAR21,3,1);
    VAR23:=SMA(VAR22,3,1);
    VAR24:=SMA(VAR23,3,1);
    VAR25:=CROSS(VAR23,VAR24) AND VAR23
    DRAWTEXT(FILTER(VAR25,10)=1,LOW*0.995,' 抄底'),COLORRED;
    DRAWTEXT(FILTER(VAR25,10)=1,LOW*0.998,''),COLORRED;
    VAR29:=CROSS(VAR24,VAR23) AND VAR23
    DRAWTEXT(FILTER(VAR29,5)=1,HIGH*1.005,' 逃顶'),COLORBLUE;
    DRAWTEXT(FILTER(VAR29,5)=1,HIGH*1.002,''),COLORBLUE;

    X1:=REF(CLOSE,1);
    MC:=((SMA(MAX((CLOSE - X1),0),7,1) / SMA(ABS((CLOSE - X1)),7,1)) * 100);
    DRAWTEXT(CROSS(80,MC),h*1.002,' 快卖'),colorwhite;
    DRAWTEXT(CROSS(MC,20),l*0.998,' 短买'),colorFF;

    VarF:=(2*CLOSE+HIGH+LOW)/4;
    Var10:=LLV(LOW,34);
    Var11:=HHV(HIGH,34);
    Var12:=EMA((VarF-Var10)/(Var11-Var10)*100,6);
    Var13:=EMA(0.667*REF(Var12,1)+0.333*Var12,4);
    Var14:=LLV(LOW,120);
    Var15:=HHV(HIGH,120);
    Var16:=Var15-Var14;
    DRAWTEXT(IF(COUNT(CLOSE REF(CLOSE,1),8)/8 0.3 AND COUNT(Var12 Var13,3) AND REF(LOW,1)=LLV(LOW,120) AND
    CLOSE OPEN,1,0),LOW,'★注意进场');


    A6:=REF(CLOSE,1);
    A7:=((SMA(MAX(CLOSE-A6,0),6,1))/(SMA(ABS(CLOSE-A6),6,1)))*(100);
    A8:=((2)*(CLOSE)+HIGH+LOW)/(4);
    A9:=LLV(LOW,34);
    A10:=HHV(HIGH,34);
    A11:=EMA(((A8-A9)/(A10-A9))*(100),6);
    A12:=EMA((0.66699999)*(REF(A11,1))+(0.333)*(A11),4);
    DRAWTEXT(IF(((COUNT((CLOSE REF(CLOSE,1)),8))/(8) 0.30000001) AND COUNT((A11 A12),3) AND (REF(LOW,1)=LLV(LOW,120)) AND (CLOSE OPEN),1,0),LOW,'=买'),Color0000FF;
    DRAWTEXT(CROSS(85,A7),HIGH,'-进入风险'),Color0000FF;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » FZ实时布林(飞狐分时指标) 加入收藏