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;
交易時(shí)間: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在交易時(shí)間也會(huì)變的!要使歷史的ifvol與常規(guī)的成交易量vol一樣不變,請問老師上述公式該怎樣修改?(是日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;
交易時(shí)間: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;
這個(gè)就是開盤前歷史k線是歷史VOL,開盤后的vol按照既定的代碼算