在1分鐘周期的附圖里顯示日K線 [文華財(cái)經(jīng)]
-
咨詢內(nèi)容:
?老師好,寫個(gè)附圖日K線指標(biāo),能在日線以下周期里使用。謝謝。
?
?來源:程序化99
-
文華技術(shù)人員:
參考:
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.kzuj.com.cn
- 文華客服: ?你真厲害,高手高高手! 還想麻煩你寫個(gè): 寫個(gè)昨日日K線指標(biāo),能在日線以下周期里使用。謝謝。2樓那個(gè)是當(dāng)日的。現(xiàn)在要寫的是不顯示當(dāng)天的日K線,最后一根是昨日的日K線。
-
網(wǎng)友回復(fù):
參考:
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;?
? ??
- 網(wǎng)友回復(fù): 位置不對(duì),放在最后。
?
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無法通過。謝謝您!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容