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

[求助]自动画线 抬头红 低头绿 [文华财经]

  • 咨询内容:

      取前一周  5天的均价线    不是星期五的结算价

     

     

    B:=CROSS(BACKSET(ISLASTBAR,DAYBARPOS+1),0.5);
    A1:=BACKSET(B&&SETTLE<REF(SETTLE,DAYBARPOS),DAYBARPOS+1);
    A2:=BACKSET(B&&SETTLE>REF(SETTLE,DAYBARPOS),DAYBARPOS+1);
    DRAWLINE1(A2,SETTLE,B,SETTLE,1),COLORRED;
    DRAWLINE1(A1,SETTLE,B,SETTLE,1),COLORGREEN;
     

    NN:=SUMBARS(WEEKDAY<REF(WEEKDAY,1),1);
    F:=CROSS(BACKSET(ISLASTBAR,NN+1),0.5);
    E1:=BACKSET(F&&SETTLE<REF(SETTLE,NN),NN+1);
    E2:=BACKSET(F&&SETTLE>REF(SETTLE,NN),NN+1);
    DRAWLINE1(E2,SETTLE,F,SETTLE,1),COLORRED;
    DRAWLINE1(E1,SETTLE,F,SETTLE,1),COLORGREEN;

     

     来源:程序化99

  • 文华技术人员:

    参考:

     

    B:=CROSS(BACKSET(ISLASTBAR,DAYBARPOS+1),0.5);
    A1:=BACKSET(B&&SETTLE<REF(SETTLE,DAYBARPOS),DAYBARPOS+1);
    A2:=BACKSET(B&&SETTLE>REF(SETTLE,DAYBARPOS),DAYBARPOS+1);
    DRAWLINE1(A2,SETTLE,B,SETTLE,1),COLORRED;
    DRAWLINE1(A1,SETTLE,B,SETTLE,1),COLORGREEN;
     

    NN:=SUMBARS(WEEKDAY<REF(WEEKDAY,1),1);
    F:=CROSS(BACKSET(ISLASTBAR,NN+1),0.5);
    E1:=BACKSET(F&&MA(C,NN)<REF(MA(C,NN),NN),NN+1);
    E2:=BACKSET(F&&MA(C,NN)>REF(MA(C,NN),NN),NN+1);
    DRAWLINE1(E2,MA(C,NN),F,MA(C,NN),1),COLORRED;
    DRAWLINE1(E1,MA(C,NN),F,MA(C,NN),1),COLORGREEN;

 

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

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


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

相关文章

    没有相关内容