您現在的位置:程序化交易>> 期貨公式>> 文華財經>> 文華財經知識>>正文內容

在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.qvudci.tw

  • 文華客服: ?你真厲害,高手高高手! 還想麻煩你寫個:
  • 寫個昨日日K線指標,能在日線以下周期里使用。謝謝。2樓那個是當日的?,F在要寫的是不顯示當天的日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或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
浙江体彩6+1规则