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

怎么样把晚盘和夜盘分开 [文华财经]

  • 咨询内容:

    第二天9:00这段画线以晚盘的 开 收  高 低  为主 

    NN:=BARSLAST(DATE<>REF(DATE,1))+1;
    HH:REF(HHV(H,NN),NN);
    LL:REF(LLV(L,NN),NN);
    CC:VALUEWHEN(NN=1,REF(C,1));
    OO:VALUEWHEN(NN=1,O),NODRAW;
    C1:REF(OO,NN);//昨天开盘价
    N1:=BACKSET(ISLASTBAR,NN);
    DRAWSL(CROSS(N1,0.5),HH,0,1,2,COLORRED);
    DRAWSL(CROSS(N1,0.5),LL,0,1,2,COLORGREEN);
    DRAWSL(CROSS(N1,0.5),CC,0,1,2,COLORBLUE);
    DRAWSL(CROSS(N1,0.5),OO,0,1,2,COLORYELLOW);
    DRAWNUMBER(ISLASTBAR,HH,HH,2,COLORGREEN);
    DRAWNUMBER(ISLASTBAR,LL,LL,2,COLORGREEN);
    DRAWNUMBER(ISLASTBAR,CC,CC,2,COLORGREEN);
    DRAWNUMBER(ISLASTBAR,OO,OO,2,COLORGREEN);
    DRAWNUMBER(ISLASTBAR,C1,C1,2,COLORGREEN);

     

     

  • 文华技术人员:  可以参考如下编写:NN:=BARSLAST(TIME=0900)+1;NN1:=BARSLAST(DATE<>REF(DATE,1))+1;HH:REF(HHV(H,NN1),NN);LL:REF(LLV(L,NN1),NN);CC:VALUEWHEN(NN=1,REF(C,NN1-1));OO:VALUEWHEN(NN=1,REF(O,NN1-1)),NODRAW;C1:REF(OO,NN);//昨天开盘价N1:=BACKSET(ISLASTBAR,NN);DRAWSL(CROSS(N1,0.5),HH,0,1,2,COLORRED);DRAWSL(CROSS(N1,0.5),LL,0,1,2,COLORGREEN);DRAWSL(CROSS(N1,0.5),CC,0,1,2,COLORBLUE);DRAWSL(CROSS(N1,0.5),OO,0,1,2,COLORYELLOW);DRAWNUMBER(ISLASTBAR,HH,HH,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,LL,LL,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,CC,CC,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,OO,OO,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,C1,C1,2,COLORGREEN);

    此主题相关图片如下:图像 .png


     

  • 文华客服:

    我的意思是

    以郑醇为例   晚9点开盘画线参考早9点------下午3点的

    第二天早9点的画线参考昨晚9点------11:30的

     

     

  • 网友回复:  可以参考如下编写:NN:=BARSLAST(TIME=0900)+1;NN1:=BARSLAST(DATE<>REF(DATE,1))+1;HH:REF(HHV(H,NN1),NN);LL:REF(LLV(L,NN1),NN);CC:VALUEWHEN(NN=1,REF(C,NN1-1));OO:VALUEWHEN(NN=1,REF(O,NN1-1)),NODRAW;C1:REF(OO,NN);//昨天开盘价
    N1:=BACKSET(ISLASTBAR,NN);DRAWSL(CROSS(N1,0.5),HH,0,1,2,COLORRED);DRAWSL(CROSS(N1,0.5),LL,0,1,2,COLORGREEN);DRAWSL(CROSS(N1,0.5),CC,0,1,2,COLORBLUE);DRAWSL(CROSS(N1,0.5),OO,0,1,2,COLORYELLOW);DRAWNUMBER(ISLASTBAR,HH,HH,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,LL,LL,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,CC,CC,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,OO,OO,2,COLORGREEN);DRAWNUMBER(ISLASTBAR,C1,C1,2,COLORGREEN);HH1:=REF(HHV(H,NN),NN1);LL1:=REF(LLV(L,NN),NN1);CC1:=VALUEWHEN(NN1=1,REF(C,NN));OO1:=VALUEWHEN(NN1=1,REF(O,NN));CC11:=REF(OO1,NN1);NA1:=BACKSET(ISLASTBAR,NN1);DRAWSL(CROSS(NA1,0.5),HH1,0,1,2,COLORRED);DRAWSL(CROSS(NA1,0.5),LL1,0,1,2,COLORGREEN);DRAWSL(CROSS(NA1,0.5),CC1,0,1,2,COLORBLUE);DRAWSL(CROSS(NA1,0.5),OO1,0,1,2,COLORYELLOW);DRAWNUMBER(CROSS(NA1,0.5),HH1,HH1,2,COLORGREEN);DRAWNUMBER(CROSS(NA1,0.5),LL1,LL1,2,COLORGREEN);DRAWNUMBER(CROSS(NA1,0.5),CC1,CC1,2,COLORGREEN);DRAWNUMBER(CROSS(NA1,0.5),OO1,OO1,2,COLORGREEN);DRAWNUMBER(CROSS(NA1,0.5),CC11,CC11,2,COLORGREEN);




    此主题相关图片如下:图像 .png


 

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

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


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

相关文章

    没有相关内容