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

请老师修改公式 [文华财经]

  • 咨询内容:   

    B:MA(C,5);

    D:MA(C,10);


    C1:=REF(CLOSE,1);

    C2:=REF(CLOSE,2);

    C3:=REF(CLOSE,3);

    C4:=REF(CLOSE,4);

    CMAX:=HHV(CLOSE,4);

    CMIN:=LLV(CLOSE,4);

    STICKLINE(CLOSE=CMAX && (C1>=C2 || C1>=C3) || C1=CMAX && (C2=CMIN || C3=CMIN)&& CLOSE>=C2 ||C2=CMAX && C3=CMIN && CLOSE>=C1 || C3=CMAX && CLOSE>=C1&& CLOSE>=C2,C1,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMAX && C1=CMIN,C2,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMIN && (C1<C2 || C1<C3) || C1=CMIN && (C2=CMAX || C3=CMAX) && CLOSE<C2 ||C2=CMIN && C3=CMAX && CLOSE<C1 || C3=CMIN && CLOSE<C1 && CLOSE<C2,C1,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE=CMIN,C2,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMIN && CLOSE>=C2 || (C2=CMIN && C1<=C3 ||C3=CMIN && C1<=C2) && C2<C4 && CLOSE>=C1,C1,C2,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE<C2 || (C2=CMAX && C1>C3 ||C3=CMAX && C1>C2) && C2>=C4 && CLOSE<C1,C1,C2,COLORBLACK,1);


    LL:=MIN1(C1,C2,C);

    T:=BARSLAST(EVERY(LL=REF(LL,1),1))+1;

    LLL:=VALUEWHEN(EVERY(LL=REF(LL,1),1),LL);

    A1:BACKSET(ISLASTBAR&&BARSLAST(CROSS(B,D))<BARSLAST(CROSS(D,B)),BARSLAST(CROSS(B,D))+1),NODRAW;

    DRAWSL(A1=1&&T,LLL,0,-T,0,RGB(255,166,255));


    请老师修改:

    在画水平线起点的这根K线的最低点画向上的红色箭头。

     

  • 文华技术人员:

     编写如下,仅供参考

     

    B:MA(C,5);

    D:MA(C,10);

     

    C1:=REF(CLOSE,1);

    C2:=REF(CLOSE,2);

    C3:=REF(CLOSE,3);

    C4:=REF(CLOSE,4);

    CMAX:=HHV(CLOSE,4);

    CMIN:=LLV(CLOSE,4);

    STICKLINE(CLOSE=CMAX && (C1>=C2 || C1>=C3) || C1=CMAX && (C2=CMIN || C3=CMIN)&& CLOSE>=C2 ||C2=CMAX && C3=CMIN && CLOSE>=C1 || C3=CMAX && CLOSE>=C1&& CLOSE>=C2,C1,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMAX && C1=CMIN,C2,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMIN && (C1<C2 || C1<C3) || C1=CMIN && (C2=CMAX || C3=CMAX) && CLOSE<C2 ||C2=CMIN && C3=CMAX && CLOSE<C1 || C3=CMIN && CLOSE<C1 && CLOSE<C2,C1,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE=CMIN,C2,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMIN && CLOSE>=C2 || (C2=CMIN && C1<=C3 ||C3=CMIN && C1<=C2) && C2<C4 && CLOSE>=C1,C1,C2,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE<C2 || (C2=CMAX && C1>C3 ||C3=CMAX && C1>C2) && C2>=C4 && CLOSE<C1,C1,C2,COLORBLACK,1);

     

    LL:=MIN1(C1,C2,C);

    T:=BARSLAST(EVERY(LL=REF(LL,1),1))+1;

    LLL:=VALUEWHEN(EVERY(LL=REF(LL,1),1),LL);

    A1:BACKSET(ISLASTBAR&&BARSLAST(CROSS(B,D))<BARSLAST(CROSS(D,B)),BARSLAST(CROSS(B,D))+1),NODRAW;

    DRAWSL(A1=1&&T,LLL,0,-T,0,RGB(255,166,255));

    TTT:=BACKSET(A1=1&&T,T+1);

    CROSS(TTT,0.5),ICON(0,'ICO4');

     

     

  • 文华客服:   

    还得麻烦一直老师,留下均线金叉后的第一个箭头,后面的不画怎么修改?

     

  • 网友回复:

     编写如下,仅供参考

     

    B:MA(C,5);

    D:MA(C,10);

     

    C1:=REF(CLOSE,1);

    C2:=REF(CLOSE,2);

    C3:=REF(CLOSE,3);

    C4:=REF(CLOSE,4);

    CMAX:=HHV(CLOSE,4);

    CMIN:=LLV(CLOSE,4);

    STICKLINE(CLOSE=CMAX && (C1>=C2 || C1>=C3) || C1=CMAX && (C2=CMIN || C3=CMIN)&& CLOSE>=C2 ||C2=CMAX && C3=CMIN && CLOSE>=C1 || C3=CMAX && CLOSE>=C1&& CLOSE>=C2,C1,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMAX && C1=CMIN,C2,CLOSE,COLORBLACK,1);

    STICKLINE(CLOSE=CMIN && (C1<C2 || C1<C3) || C1=CMIN && (C2=CMAX || C3=CMAX) && CLOSE<C2 ||C2=CMIN && C3=CMAX && CLOSE<C1 || C3=CMIN && CLOSE<C1 && CLOSE<C2,C1,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE=CMIN,C2,CLOSE,COLORBLACK,0);

    STICKLINE(C1=CMIN && CLOSE>=C2 || (C2=CMIN && C1<=C3 ||C3=CMIN && C1<=C2) && C2<C4 && CLOSE>=C1,C1,C2,COLORBLACK,0);

    STICKLINE(C1=CMAX && CLOSE<C2 || (C2=CMAX && C1>C3 ||C3=CMAX && C1>C2) && C2>=C4 && CLOSE<C1,C1,C2,COLORBLACK,1);

     

    LL:=MIN1(C1,C2,C);

    T:=BARSLAST(EVERY(LL=REF(LL,1),1))+1;

    LLL:=VALUEWHEN(EVERY(LL=REF(LL,1),1),LL);

    A1:BACKSET(ISLASTBAR&&BARSLAST(CROSS(B,D))<BARSLAST(CROSS(D,B)),BARSLAST(CROSS(B,D))+1),NODRAW;

    DRAWSL(A1=1&&T,LLL,0,-T,0,RGB(255,166,255));

    TT:=BARSLAST(EVERY(LL=REF(LL,1),1)&&CROSS(B,D))+1;

    TTT:=BACKSET(A1=1&&T,TT+1);

    CROSS(TTT,0.5),ICON(0,'ICO4');

     

     

  • 网友回复:  部分对的,部分画错,有部分没画出箭头

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容