怎么樣把晚盤和夜盤分開 [文華財經(jīng)]
- 咨詢內(nèi)容:
第二天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); - 文華技術(shù)人員:
可以參考如下編寫: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);
此主題相關(guān)圖片如下:圖像 .png
- 文華客服:
我的意思是
以鄭醇為例 晚9點開盤畫線參考早9點------下午3點的
第二天早9點的畫線參考昨晚9點------11:30的
- 網(wǎng)友回復(fù):
可以參考如下編寫: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);
此主題相關(guān)圖片如下:圖像 .png
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容