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

格式不对,帮我改一下 [文华财经]

  • 咨询内容:  EM:=20;
    EMM:=40;
    N1:=20;
    DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0,Ɔ#39,0);
    {箱体主图}
    {一、箱体部分--支撑到波浪顶画箱体}
    {1、波浪高低点}
    TY:=H;
    HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
    LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
    A:=REF(H,BARSLAST(HD));
    B:=REF(H,BARSLAST(LD));
    T1:=BARSLAST(HD);
    T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
    波浪顶:IF(T1,A,A),COLORGREEN,POINTDOT,LINETHICK1;
    DRAWNUMBER(波浪顶!=REF(波浪顶,1),H,波浪顶),COLORF00FF0;
    STICKLINE(T1,A,A,9,0){,POINTDOT},COLORF00FF0,LINETHICK1;
    波浪底:=IF(T2,B,B),COLORGREEN{,POINTDOT},LINETHICK1;
    STICKLINE(T2,B,B,9,0){,POINTDOT},COLORCYAN,LINETHICK1;
    {2、支撑部分1}
    QA12:=REF(CLOSE,6)=LLV(CLOSE,2*6+1);
    QB12:=BACKSET(QA12,6+1);
    QC12:=FILTER(QB12,6) AND CLOSE=LLV(CLOSE,6+1);
    QD12:=BARSLAST(QC12);
    QE12:=IF(QC12,CURRBARSCOUNT,0);
    QF12:=IF(QD12,REF(QE12,QD12),QE12);
    QG12:=CONST(QF12);
    支撑1:=DRAWLINE(CURRBARSCOUNT=QG12,CLOSE,ISLASTBAR,REF(CLOSE,QG12-1),1),COLOR00FF00,LINETHICK1; 
    DRAWNUMBER(支撑1!=REF(支撑1,1),C,支撑1),COLOR00FF00;
    DRAWNUMBER(ISLASTBAR,支撑1,支撑1),COLOR00FF00;
    {3、支撑部分2}
    QA14:=REF(CLOSE,3)=LLV(CLOSE,2*3+1);
    QB14:=BACKSET(QA14,3+1);
    QC14:=FILTER(QB14,3) AND CLOSE=LLV(CLOSE,3+1);
    QD14:=BARSLAST(QC14);
    QE14:=IF(QC14,CURRBARSCOUNT,0);
    QF14:=IF(QD14,REF(QE14,QD14),QE14);
    QG14:=CONST(QF14);
    支撑2:=DRAWLINE(CURRBARSCOUNT=QG14,CLOSE,ISLASTBAR,REF(CLOSE,QG14-1),1),COLOR00FF00,LINETHICK1; 
    {DRAWNUMBER(支撑2!=REF(支撑2,1),L,支撑2),COLOR00FF00;};
    STICKLINE(C>支撑1,支撑1,波浪顶,15,1),COLOR005599,LINETHICK2;{箱体画框}
    STICKLINE(C>支撑2,支撑2,波浪顶,5,1),COLOR005599,LINETHICK2;{箱体画框}
    STICKLINE(C>支撑1,支撑1,(波浪顶+支撑1)/2,15,1),COLOR005599,LINETHICK2;{箱体画框}
    {二、箱体部分--支撑到颈线画箱体}
    QA11:=REF(CLOSE,6)=HHV(CLOSE,2*6+1);
    QB11:=BACKSET(QA11,6+1);
    QC11:=FILTER(QB11,6) AND CLOSE=HHV(CLOSE,6+1);
    QD11:=BARSLAST(QC11);
    QE11:=IF(QC11,CURRBARSCOUNT,0);
    QF11:=IF(QD11,REF(QE11,QD11),QE11);
    QG11:=CONST(QF11);
    颈线2:DRAWLINE(CURRBARSCOUNT=QG11,CLOSE,ISLASTBAR,REF(C,QG11-1),1),COLORFFDD00,LINETHICK1; 
    STICKLINE(C>支撑1,支撑1,颈线2,5,1),COLORFFAA33;{箱体画框}
    STICKLINE(C>支撑1,支撑1,(颈线2+支撑1)/2,5,1),COLORFFAA33;{箱体画框}
    DRAWKLINE(H,O,L,C); 
    DRAWNUMBER(颈线2!=REF(颈线2,1),C,颈线2),COLOR00FF00;
    DRAWNUMBER(ISLASTBAR,波浪顶,波浪顶),COLOR005599;
    DRAWNUMBER(ISLASTBAR,(波浪顶+支撑1)/2,(波浪顶+支撑1)/2),COLOR005599;
    DRAWNUMBER(ISLASTBAR,颈线2,颈线2),COLORFFAA33;
    DRAWNUMBER(ISLASTBAR,(颈线2+支撑1)/2,(颈线2+支撑1)/2),COLORFFAA33;
    {三、箱体部分--过线放量买到支撑1画箱体}
    T1B:=CONST(LLVBARS(LOW,10));
    T1HIGH:=CONST(REF(HIGH,T1B));
    CCC:=CONST(CURRBARSCOUNT);
    T2B:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T1B AND H>T1HIGH));
    T2HIGH:=CONST(REF(HIGH,T2B));
    T3B:=CONST(BARSLAST(CURRBARSCOUNT>CCC+T2B AND HIGH>T2HIGH));
    T3HIGH:=CONST(REF(HIGH,T3B));
    抢钱10:DRAWLINE(CURRBARSCOUNT=T3B+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLORYELLOW,LINETHICK1;{,LINETHICK2,COLOR0000FF;}
    DRAWTEXT(ISLASTBAR, T3HIGH, '线'LINETHICK1,COLORYELLOW;
    DRAWNUMBER(抢钱10!=REF(抢钱10,1),H,抢钱10),COLORYELLOW;
    STICKLINE(C>支撑1,(抢钱10+支撑1)/2,(抢钱10+支撑1)/2,5,1),COLORYELLOW;{箱体画框};
     
    DRAWGBK(C>0,RGB(0,0,0),RGB(00,0,0),0,'M'0);DRAWKLINE(H,O,L,C);{ 原文链接:HTTP://WWW.70822.COM/SOFT/SORT013/SORT05/DOWN-159483.HTML };

     

     来源:程序化99

  • 文华技术人员:  参考:
     EM:=20;
    EMM:=40;
    N1:=20;
    DRAWGBK(C>0, RGB(1,1,1),RGB(1,1,1),0); CURRBARSCOUNT:=DATACOUNT-BARPOS+1; {箱体主图}
    {一、箱体部分--支撑到波浪顶画箱体}
    {1、波浪高低点}
    TY:=H;
    HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
    LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
    A:=REF(H,BARSLAST(HD));
    B:=REF(H,BARSLAST(LD));
    T1:=BARSLAST(HD);
    T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
    波浪顶:IF(T1,A,A),COLORGREEN,POINTDOT,LINETHICK1;
    DRAWNUMBER1(波浪顶=REF(波浪顶,1),H,波浪顶,2),COLORF00FF0;
    STICKLINE(T1,A,A,9,0){,POINTDOT},COLORF00FF0,LINETHICK1;
    波浪底:=IF(T2,B,B),COLORGREEN{,POINTDOT},LINETHICK1;
    STICKLINE(T2,B,B,9,0){,POINTDOT},COLORCYAN,LINETHICK1;
    {2、支撑部分1}
    QA12:=REF(CLOSE,6)=LLV(CLOSE,2*6+1);
    QB12:=BACKSET(QA12,6+1);
    QC12:=FILTER(QB12,6) AND CLOSE=LLV(CLOSE,6+1);
    QD12:=BARSLAST(QC12);
    QE12:=IF(QC12,CURRBARSCOUNT,0);
    QF12:=IF(QD12,REF(QE12,QD12),QE12);
    QG12:=REFX1(QF12,10000);
    支撑1:=TRENDLINES(CURRBARSCOUNT=QG12,CLOSE,ISLASTBAR,REF(CLOSE,QG12-1)),COLOR00FF00,LINETHICK1; 
    DRAWNUMBER1(支撑1=REF(支撑1,1),C,支撑1,2),COLOR00FF00;
    DRAWNUMBER1(ISLASTBAR,支撑1,支撑1,2),COLOR00FF00;
    {3、支撑部分2}
    QA14:=REF(CLOSE,3)=LLV(CLOSE,2*3+1);
    QB14:=BACKSET(QA14,3+1);
    QC14:=FILTER(QB14,3) AND CLOSE=LLV(CLOSE,3+1);
    QD14:=BARSLAST(QC14);
    QE14:=IF(QC14,CURRBARSCOUNT,0);
    QF14:=IF(QD14,REF(QE14,QD14),QE14);
    QG14:=REFX1(QF14,10000);
    支撑2:=TRENDLINES(CURRBARSCOUNT=QG14,CLOSE,ISLASTBAR,REF(CLOSE,QG14-1)),COLOR00FF00,LINETHICK1; 
    STICKLINE1(C>支撑1,支撑1,波浪顶,15,1),COLOR005599,LINETHICK2;

    STICKLINE1(C>支撑2,支撑2,波浪顶,5,1),COLOR005599;

    STICKLINE1(C>支撑1,支撑1,(波浪顶+支撑1)/2,15,1),COLOR005599,LINETHICK2;



    QA11:=REF(CLOSE,6)=HHV(CLOSE,2*6+1);
    QB11:=BACKSET(QA11,6+1);
    QC11:=FILTER(QB11,6) AND CLOSE=HHV(CLOSE,6+1);
    QD11:=BARSLAST(QC11);
    QE11:=IF(QC11,CURRBARSCOUNT,0);
    QF11:=IF(QD11,REF(QE11,QD11),QE11);
    QG11:=REFX1(QF11,10000);
    颈线2:TRENDLINES(CURRBARSCOUNT=QG11,CLOSE,ISLASTBAR,REF(C,QG11-1)),COLORFFDD00,LINETHICK1; 
    STICKLINE(C>支撑1,支撑1,颈线2,5,1),COLORFFAA33;

    STICKLINE(C>支撑1,支撑1,(颈线2+支撑1)/2,5,1),COLORFFAA33;

    DRAWKLINE1(H,O,L,C); 
    DRAWNUMBER1(颈线2=REF(颈线2,1),C,颈线2,2),COLOR00FF00;
    DRAWNUMBER1(ISLASTBAR,波浪顶,波浪顶,2),COLOR005599;
    DRAWNUMBER1(ISLASTBAR,(波浪顶+支撑1)/2,(波浪顶+支撑1)/2,2),COLOR005599;
    DRAWNUMBER1(ISLASTBAR,颈线2,颈线2,2),COLORFFAA33;
    DRAWNUMBER1(ISLASTBAR,(颈线2+支撑1)/2,(颈线2+支撑1)/2,2),COLORFFAA33;
    {三、箱体部分--过线放量买到支撑1画箱体}
    T1B:=REFX1(LLVBARS(LOW,10),10000);
    T1HIGH:=REFX1(REF(HIGH,T1B),10000);
    CCC:=REFX1(CURRBARSCOUNT,10000);
    T2B:=REFX1(BARSLAST(CURRBARSCOUNT>CCC+T1B AND H>T1HIGH),10000);
    T2HIGH:=REFX1(REF(HIGH,T2B),10000);
    T3B:=REFX1(BARSLAST(CURRBARSCOUNT>CCC+T2B AND HIGH>T2HIGH),10000);
    T3HIGH:=REFX1(REF(HIGH,T3B),10000);
    抢钱10:TRENDLINES(CURRBARSCOUNT=T3B+1, T3HIGH, ISLASTBAR, T3HIGH),COLORYELLOW,LINETHICK1;
    DRAWTEXT(ISLASTBAR, T3HIGH, '线',COLORYELLOW;
    DRAWNUMBER1(抢钱10=REF(抢钱10,1),H,抢钱10,2),COLORYELLOW;
    STICKLINE(C>支撑1,(抢钱10+支撑1)/2,(抢钱10+支撑1)/2,5,1),COLORYELLOW;

    DRAWGBK(C>0,RGB(0,0,0),RGB(00,0,0),0); DRAWKLINE1(H,O,L,C);

 

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

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

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

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


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

相关文章

    没有相关内容