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

在1分钟周期的附图里显示日K线 [文华财经]

  • 咨询内容:  老师好,写个附图日K线指标,能在日线以下周期里使用。谢谢。

     

     来源:程序化99

  • 文华技术人员: 参考:
    OO:=VALUEWHEN(DATE<>REF(DATE,1),O);
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,OO,BARSLAST(DATE<>REF(DATE,1)),(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,C,BARSLAST(DATE<>REF(DATE,1)),0),COLORRED,LINETHICK2;
    DRAWLINE((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,OO,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,C,COLORRED),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,OO,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORRED),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,C,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORRED),LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,OO,BARSLAST(DATE<>REF(DATE,1)),(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,C,BARSLAST(DATE<>REF(DATE,1)),0),COLORGREEN,LINETHICK2;
    DRAWLINE((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,OO,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,C,COLORGREEN),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,OO,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORGREEN),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,C,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORGREEN),LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,HHV(H,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,C,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORRED,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,LLV(L,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C>OO,OO,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORRED,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,HHV(H,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,OO,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORGREEN,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,LLV(L,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,C,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORGREEN,LINETHICK2; 
      

     

     来源: WWW.CXH99.COM

  • 文华客服:  你真厉害,高手高高手! 还想麻烦你写个:
  • 写个昨日日K线指标,能在日线以下周期里使用。谢谢。2楼那个是当日的。现在要写的是不显示当天的日K线,最后一根是昨日的日K线。

     

  • 网友回复: 参考:
    OO:=VALUEWHEN(DATE<>REF(DATE,1),O);
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C>OO,OO,BARSLAST(DATE<>REF(DATE,1)),(REFX(DATE<>REF(DATE,1),1))&&C>OO,C,BARSLAST(DATE<>REF(DATE,1)),0),COLORRED,LINETHICK2;
    DRAWLINE((REFX(DATE<>REF(DATE,1),1))&&C>OO,OO,(REFX(DATE<>REF(DATE,1),1))&&C>OO,C,COLORRED),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1))&&C>OO,OO,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORRED),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1))&&C>OO,C,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORRED),LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C<OO,OO,BARSLAST(DATE<>REF(DATE,1)),(REFX(DATE<>REF(DATE,1),1)||ISLASTBAR)&&C<OO,C,BARSLAST(DATE<>REF(DATE,1)),0),COLORGREEN,LINETHICK2;
    DRAWLINE((REFX(DATE<>REF(DATE,1),1))&&C<OO,OO,(REFX(DATE<>REF(DATE,1),1))&&C<OO,C,COLORGREEN),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1))&&C<OO,OO,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORGREEN),LINETHICK2;
    DRAWSL((REFX(DATE<>REF(DATE,1),1))&&C<OO,C,0,-BARSLAST(DATE<>REF(DATE,1)),0,COLORGREEN),LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C>OO,HHV(H,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1))&&C>OO,C,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORRED,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C>OO,LLV(L,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1))&&C>OO,OO,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORRED,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C<OO,HHV(H,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1))&&C<OO,OO,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORGREEN,LINETHICK2;
    DRAWLINE3((REFX(DATE<>REF(DATE,1),1))&&C<OO,LLV(L,BARSLAST(DATE<>REF(DATE,1))+1),BARSLAST(DATE<>REF(DATE,1))/2,(REFX(DATE<>REF(DATE,1),1))&&C<OO,C,BARSLAST(DATE<>REF(DATE,1))/2,0),COLORGREEN,LINETHICK2; 
       

     

  • 网友回复: 位置不对,放在最后。

 

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

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

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

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


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

相关文章

    没有相关内容