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

文华目前没有DRAWNULL函数,使用0替代空值 [文华财经]

  • 咨询内容:

    WH1:=IF(L=LLV(L,P),L,DRAWNULL);
    WH2:=CONST(BARSLAST(WH1!=DRAWNULL));
    WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
    WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
    WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
    WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
    进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED;
    IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORRED;
    DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),进场,'进场线'),COLORRED;
    超跌进场:IF(CURRBARSCOUNT<=WH2+21,CONST(IF(WH4=0,H,REF(H,WH4))),DRAWNULL),COLORCB21BE;
    DRAWTEXT(CURRBARSCOUNT=INTPART((WH2+21)*0.618),超跌进场,'超跌进场线'),COLORCB21BE;
    H1:=IF(H=HHV(H,P),H,DRAWNULL);
    H2:=CONST(BARSLAST(H1!=DRAWNULL));
    H3:=CONST(IF(H2=0,L,REF(L,H2)));
    H4:=CONST(REF(BARSLAST(L<H3),H2+1)+H2+1);
    H5:=CONST(IF(H4=0,L,REF(L,H4)));
    H6:=CONST(REF(BARSLAST(L<H5),H4+1)+H4+1);
    止损:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H6=0,L,REF(L,H6))),DRAWNULL),COLORYELLOW;
    IF(CURRBARSCOUNT<=H2+1,IF(H=HHV(H,P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLORBLUE;
    DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止损,'止损线'),COLORYELLOW;
    止盈:IF(CURRBARSCOUNT<=H2+21,CONST(IF(H4=0,L,REF(L,H4))),DRAWNULL),COLORCB21BE;
    DRAWTEXT(CURRBARSCOUNT=INTPART((H2+21)*0.618),止盈,'止盈线'),COLORCB21BE;

     

    请老师帮忙修改文华可用。谢谢

     

  • 文华技术人员:

    1.文华目前没有DRAWNULL函数,使用0替代空值,您需要吗?

    2.CONST和CURRBARSCOUNT请问是如何定义,具体用法或算法如何?

     

 

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

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容