開盤前圖型不見了是什么原因? [金字塔]
- 咨詢內容:
本想用交易時間來校正下日K線的成交量,可開盤前的校正后的成交量圖型不見了(之前之后又在的),以股指期貨連續為例公式如下,請問老師是什么原因?
公式如何修改?
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;另外還發現歷史的被校正的成交量Ifvol在交易時間也會變的!要使歷史的ifvol與常規的成交易量vol一樣不變,請問老師上述公式該怎樣修改?(是日K線上的公式)。
- 金字塔客服:
客服老師看到上面問題了嗎了
- 用戶回復:
你用動態行情函數那么就只會有當日的數據不會有歷史數據,在開盤之前是不會有數據
- 網友回復:
我已觀察好長時間了,僅是開盤前幾分鐘圖沒有了,歷史圖型也有的只是發現交易時段會變!收盤后與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上親自觀察下就知了的。關鍵是dynainfo(207)在開盤是怎么樣的,為此以前也發貼向老師咨詢過。
- 網友回復:
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按照既定的代碼算
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容