如何將指標里分時中的時間與日k線的一致 [博易POBO]
咨詢內容:
E:=IF(DAY<>REF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
均:E/D,LINETHICK0,PRECIS0;
PARTLINE(DAY=REF(DAY,1),均),COLOR00AC00,LINETHICK3;
TT:均+C*N/100,COLOR009D00;
PP:均-C*N/100,COLOR00AC00;
DRAWNUMBER(ISLASTBAR,TT,TT,2),COLOR00FFFF,ALIGN0;
DRAWNUMBER(ISLASTBAR,PP,PP,2),COLOR0065CA,ALIGN0;
DRAWNUMBER(ISLASTBAR,均,均,2),COLOR00FFFF,ALIGN0;
開:REF(O,BARSLAST(DAY=DAY AND HOUR=9 AND MINUTE=N1)),COLORFF00FF,LINETHICK3;
TT1:開+開*N2/100,COLORFF00FF;
PP1:開-開*N2/100,COLORFF00FF;
如何將指標里分時中的時間與日k線的一致
D:=IF(DAY<>REF(DAY,1),0,REF(D,1))+V;E:=IF(DAY<>REF(DAY,1),0,REF(E,1))+(H+L+C+O)/4*V;
均:E/D,LINETHICK0,PRECIS0;
PARTLINE(DAY=REF(DAY,1),均),COLOR00AC00,LINETHICK3;
TT:均+C*N/100,COLOR009D00;
PP:均-C*N/100,COLOR00AC00;
DRAWNUMBER(ISLASTBAR,TT,TT,2),COLOR00FFFF,ALIGN0;
DRAWNUMBER(ISLASTBAR,PP,PP,2),COLOR0065CA,ALIGN0;
DRAWNUMBER(ISLASTBAR,均,均,2),COLOR00FFFF,ALIGN0;
開:REF(O,BARSLAST(DAY=DAY AND HOUR=9 AND MINUTE=N1)),COLORFF00FF,LINETHICK3;
TT1:開+開*N2/100,COLORFF00FF;
PP1:開-開*N2/100,COLORFF00FF;
博易技術人員:
NS:=IF(TIME>=180000,1,REF(NS,1));指標你重新復制一下,前面我都調整成過了。
D:=IF((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)),V,REF(D,1)+V);
E:=IF((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)),(O+H+L+C)/4*V,REF(E,1)+(O+H+L+C)/4*V);
均:E/D,LINETHICK0,PRECIS0;
PARTLINE((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)),均),COLOR00AC00,LINETHICK3;
TT:均+C*N/100,COLOR009D00;
PP:均-C*N/100,COLOR00AC00;
DRAWNUMBER(ISLASTBAR,TT,TT,2),COLOR00FFFF,ALIGN0;
DRAWNUMBER(ISLASTBAR,PP,PP,2),COLOR0065CA,ALIGN0;
DRAWNUMBER(ISLASTBAR,均,均,2),COLOR00FFFF,ALIGN0;
開:REF(O,BARSLAST((TIME>=180000 AND REF(TIME,1)<180000) OR (NS=0 AND DATE<>REF(DATE,1)) AND MINUTE=N1)),COLORFF00FF,LINETHICK3;
TT1:開+開*N2/100,COLORFF00FF;
PP1:開-開*N2/100,COLORFF00FF
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容