開盤前圖型不見了是什么原因? [金字塔]
- 咨詢內(nèi)容:
本想用交易時間來校正下日K線的成交量,可開盤前的校正后的成交量圖型不見了(之前之后又在的),以股指期貨連續(xù)為例公式如下,請問老師是什么原因?
公式如何修改?
WJTIME:=timetot0(opentime(0))-timetot0(closetime(1)),linethick0;
QTRADETIME:=timetot0(closetime(0))-timetot0(opentime(1))-WJTIME,linethick0;
if dynainfo(207)>opentime(1)and dynainfo(207)<=closetime(0)then TRADETIME:=timetot0(dynainfo(207))-timetot0(opentime(1)),linethick0;
if dynainfo(207)>opentime(1)and dynainfo(207)<=closetime(1)then IFTRADETIME:=TRADETIME;
if dynainfo(207)>=opentime(0)and dynainfo(207)<=closetime(0) then IFTRADETIME:=TRADETIME-WJTIME;
顯示IFTRADETIME:IFTRADETIME,linethick0;
交易時間:dynainfo(207),linethick0;
IFVOL:QTRADETIME/IFTRADETIME*VOL,PRECISION1;
STICKLINE(Close-ref(close,1)>=0,0,IFVOL,10,1),COLORRED;
STICKLINE(Close-ref(close,1)<0,0,IFVOL,10,0),ColorCyan;另外還發(fā)現(xiàn)歷史的被校正的成交量Ifvol在交易時間也會變的!要使歷史的ifvol與常規(guī)的成交易量vol一樣不變,請問老師上述公式該怎樣修改?(是日K線上的公式)。
- 金字塔客服:
客服老師看到上面問題了嗎了
- 用戶回復(fù):
你用動態(tài)行情函數(shù)那么就只會有當(dāng)日的數(shù)據(jù)不會有歷史數(shù)據(jù),在開盤之前是不會有數(shù)據(jù)
- 網(wǎng)友回復(fù):
我已觀察好長時間了,僅是開盤前幾分鐘圖沒有了,歷史圖型也有的只是發(fā)現(xiàn)交易時段會變!收盤后與vol一模一樣。
如果把if dynainfo(207)>opentime(1)and dynainfo(207)<=closetime(0)then TRADETIME:=timetot0(dynainfo(207))-timetot0(opentime(1)),linethick0; 改成if dynainfo(207)>opentime(1)then TRADETIME:=timetot0(dynainfo(207))-timetot0(opentime(1)),linethick0; 那么圖型在收盤前倒過來了!老師加載在if00上親自觀察下就知了的。關(guān)鍵是dynainfo(207)在開盤是怎么樣的,為此以前也發(fā)貼向老師咨詢過。
- 網(wǎng)友回復(fù):
WJTIME:=timetot0(opentime(0))-timetot0(closetime(1)),linethick0;
QTRADETIME:=timetot0(closetime(0))-timetot0(opentime(1))-WJTIME,linethick0;
if dynainfo(207)>opentime(1)and dynainfo(207)<=closetime(0)then TRADETIME:=timetot0(dynainfo(207))-timetot0(opentime(1)),linethick0;
if dynainfo(207)>opentime(1)and dynainfo(207)<=closetime(1)then IFTRADETIME:=TRADETIME;
if dynainfo(207)>=opentime(0)and dynainfo(207)<=closetime(0) then IFTRADETIME:=TRADETIME-WJTIME;
顯示IFTRADETIME:IFTRADETIME,linethick0;
交易時間:dynainfo(207),linethick0;
IFVOL:QTRADETIME/IFTRADETIME*VOL,PRECISION1;
STICKLINE(islastbar and Close-ref(close,1)>=0,0,IFVOL,10,1),COLORRED;
STICKLINE(islastbar and Close-ref(close,1)<0,0,IFVOL,10,0),ColorCyan;STICKLINE(not(islastbar) and Close-ref(close,1)>=0,0,vOL,10,1),COLORRED;
STICKLINE(not(islastbar) and Close-ref(close,1)<0,0,VOL,10,0),ColorCyan;這個就是開盤前歷史k線是歷史VOL,開盤后的vol按照既定的代碼算
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容