您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

老师如图解决呀 [文华财经]

  • 咨询内容:  

    缠论线开关:=1;//笔中枢;
    MA8:=1;
    展F:=10;
    HH展BDD:=(H>HV(H,展F))*缠论线开关*MA8;
    NH展BDD:=(BARSLAST(HH展BDD)+1)*缠论线开关*MA8;
    LL展BDD:=(L<LV(L,展F))*缠论线开关*MA8;
    NL展BDD:=(BARSLAST(LL展BDD)+1)*缠论线开关*MA8;

     


    AH展BDD:=(BACKSET(COUNT(LL展BDD,NH展BDD)&&LL展BDD,NH展BDD))*缠论线开关*MA8;
    AL展BDD:=(BACKSET(COUNT(HH展BDD,NL展BDD)&&HH展BDD,NL展BDD))*缠论线开关*MA8;
    LX:AL展BDD;
    HX:AH展BDD;


    笔:=1;
    //1、本级别 (BOLL26)笔:
    DRAWLINE1(笔*CROSS(LX=1,0.5),L,CROSS(HX=1,0.5),H,0),RGB(168,168,168),DOT;//画笔,虚线;
    DRAWLINE1(笔*CROSS(HX=1,0.5),H,CROSS(LX=1,0.5),L,0),RGB(168,168,168),DOT;//画笔,虚线;
    XZ:BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),12)),NODRAW;
    X8:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),8)),0.5),NODRAW;


    X9:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),9)),0.5),NODRAW;
    X12:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),12)),0.5),NODRAW;
    X13:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),13)),0.5),NODRAW;


    DRAWLINE1(笔*CROSS(LX=1,0.5)&&XZ,L,CROSS(HX=1,0.5)&&XZ,H,0),RGB(128,128,255);//画笔,虚线;
    DRAWLINE1(笔*CROSS(HX=1,0.5)&&XZ,H,CROSS(LX=1,0.5)&&XZ,L,0),RGB(128,128,255);//画笔,虚线;
    HH:CROSS(AH展BDD=1,0.5), NOTEXT;
    LL:CROSS(AL展BDD=1,0.5), NOTEXT;
    DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)<BARSLAST(LL),笔*VALUEWHEN(HH,H),笔*BARSLAST(HH),1,LLV(L,BARSLAST(HH)),LLVBARS(L,BARSLAST(HH)),0),RGB(200,200,0);//BOLL26最后一笔(未完成),向下笔;
    DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)>BARSLAST(LL),笔*VALUEWHEN(LL,L),笔*BARSLAST(LL),1,HHV(H,BARSLAST(LL)),HHVBARS(H,BARSLAST(LL)),0),RGB(200,200,0);//BOLL26最后一笔(未完成),向上笔;
    L1:=VALUEWHEN(CROSS(LX=1,0.5),L);
    L2:=VALUEWHEN(CROSS(LX=1,0.5),REF(L1,1));
    L3:=VALUEWHEN(CROSS(LX=1,0.5),REF(L2,1));


    H1:=VALUEWHEN(CROSS(HX=1,0.5),H);
    H2:=VALUEWHEN(CROSS(HX=1,0.5),REF(H1,1));
    H3:=VALUEWHEN(CROSS(HX=1,0.5),REF(H2,1));


    X1:=CROSS(LX=1,0.5)&&H1<L3;


    DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(HX=1,0.5),1)-1,1,L3,SUMBARS(CROSS(HX=1,0.5),1)-1,0);
    DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(HX=1,0.5),1)-1,1,H1,SUMBARS(CROSS(LX=1,0.5),3)-1,0);
    DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(LX=1,0.5),3)-1,1,L3,SUMBARS(CROSS(LX=1,0.5),3)-1,0);
    DRAWLINE3(X1&&XZ,L3,SUMBARS(CROSS(HX=1,0.5),1)-1,1,L3,SUMBARS(CROSS(LX=1,0.5),3)-1,0);

     

     




    文件名:赢顺截图20200916024851.jpg

     

     来源:程序化99

  • 文华技术人员:  添加下面4句:
    DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)<BARSLAST(LL),LLV(L,BARSLAST(HH)),LLVBARS(L,BARSLAST(HH)),1,LLV(L,BARSLAST(HH)),LLVBARS(L,BARSLAST(HH))-10000,0),COLORRED;//BOLL26最后一笔(未完成),向下笔; DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)>BARSLAST(LL),HHV(H,BARSLAST(LL)),HHVBARS(H,BARSLAST(LL)),1,HHV(H,BARSLAST(LL)),HHVBARS(H,BARSLAST(LL))-10000,0),COLORBLUE;//BOLL26最后一笔(未完成),向上笔;
    DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)<BARSLAST(LL),笔*VALUEWHEN(HH,H),笔*BARSLAST(HH),1,VALUEWHEN(HH,H),笔*BARSLAST(HH)-10000,0),COLORBLUE;//BOLL26最后一笔(未完成),向下笔; DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)>BARSLAST(LL),笔*VALUEWHEN(LL,L),笔*BARSLAST(LL),1,VALUEWHEN(LL,L),笔*BARSLAST(LL)-10000,0),COLORRED;//BOLL26最后一笔(未完成),向上笔;

     

     来源: WWW.CXH99.COM

  • 文华客服:

     NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2

    老师以上边指标为依据,限制1楼指标显示。

     

  • 网友回复:   NG:=BACKSET(ISLASTBAR,BARSLAST(CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),090000,0900)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),150000, 1500),0.5)||CROSS(TIME>=IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),210000,2100)&&TIME<IFELSE(PERIOD=0&&EXIST(TIME>2400,DAYBARPOS),220000,2200),0.5))+1);////指标 2 缠论线开关:=NG;//笔中枢; MA8:=1; 展F:=10; HH展BDD:=(H>HV(H,展F))*缠论线开关*MA8; NH展BDD:=(BARSLAST(HH展BDD)+1)*缠论线开关*MA8; LL展BDD:=(L<LV(L,展F))*缠论线开关*MA8; NL展BDD:=(BARSLAST(LL展BDD)+1)*缠论线开关*MA8;
     

    AH展BDD:=(BACKSET(COUNT(LL展BDD,NH展BDD)&&LL展BDD,NH展BDD))*缠论线开关*MA8; AL展BDD:=(BACKSET(COUNT(HH展BDD,NL展BDD)&&HH展BDD,NL展BDD))*缠论线开关*MA8; LX:AL展BDD; HX:AH展BDD;

    笔:=1; //1、本级别 (BOLL26)笔: DRAWLINE1(笔*CROSS(LX=1,0.5),L,CROSS(HX=1,0.5),H,0),RGB(168,168,168),DOT;//画笔,虚线; DRAWLINE1(笔*CROSS(HX=1,0.5),H,CROSS(LX=1,0.5),L,0),RGB(168,168,168),DOT;//画笔,虚线; XZ:BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),12)),NODRAW; X8:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),8)),0.5),NODRAW;

    X9:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),9)),0.5),NODRAW; X12:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),12)),0.5),NODRAW; X13:CROSS(BACKSET(ISLASTBAR,SUMBARS(CROSS(LX=1,0.5)||CROSS(HX=1,0.5),13)),0.5),NODRAW;

    DRAWLINE1(笔*CROSS(LX=1,0.5)&&XZ,L,CROSS(HX=1,0.5)&&XZ,H,0),RGB(128,128,255);//画笔,虚线; DRAWLINE1(笔*CROSS(HX=1,0.5)&&XZ,H,CROSS(LX=1,0.5)&&XZ,L,0),RGB(128,128,255);//画笔,虚线; HH:CROSS(AH展BDD=1,0.5), NOTEXT; LL:CROSS(AL展BDD=1,0.5), NOTEXT; DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)<BARSLAST(LL),笔*VALUEWHEN(HH,H),笔*BARSLAST(HH),1,LLV(L,BARSLAST(HH)),LLVBARS(L,BARSLAST(HH)),0),RGB(200,200,0);//BOLL26最后一笔(未完成),向下笔; DRAWLINE3(笔*ISLASTBAR&&BARSLAST(HH)>BARSLAST(LL),笔*VALUEWHEN(LL,L),笔*BARSLAST(LL),1,HHV(H,BARSLAST(LL)),HHVBARS(H,BARSLAST(LL)),0),RGB(200,200,0);//BOLL26最后一笔(未完成),向上笔; L1:=VALUEWHEN(CROSS(LX=1,0.5),L); L2:=VALUEWHEN(CROSS(LX=1,0.5),REF(L1,1)); L3:=VALUEWHEN(CROSS(LX=1,0.5),REF(L2,1));

    H1:=VALUEWHEN(CROSS(HX=1,0.5),H); H2:=VALUEWHEN(CROSS(HX=1,0.5),REF(H1,1)); H3:=VALUEWHEN(CROSS(HX=1,0.5),REF(H2,1));

    X1:=CROSS(LX=1,0.5)&&H1<L3;

    DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(HX=1,0.5),1)-1,1,L3,SUMBARS(CROSS(HX=1,0.5),1)-1,0); DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(HX=1,0.5),1)-1,1,H1,SUMBARS(CROSS(LX=1,0.5),3)-1,0); DRAWLINE3(X1&&XZ,H1,SUMBARS(CROSS(LX=1,0.5),3)-1,1,L3,SUMBARS(CROSS(LX=1,0.5),3)-1,0); DRAWLINE3(X1&&XZ,L3,SUMBARS(CROSS(HX=1,0.5),1)-1,1,L3,SUMBARS(CROSS(LX=1,0.5),3)-1,0);

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容