金字塔客服:
?tcd:time>=224500 and time<=230000;//平倉不開倉時間段
if tcd then begin sell(holding>0,holding,market); sellshort(holding<0,holding,market); end
if? not(tcd) and? 開倉條件 then begin //開倉語句 end 這樣試下。1.4點45的平倉用tcd條件2.開倉條件統(tǒng)一加一個 not(tcd) 來限制開倉的時間段。
?
?來源:程序化久久網(wǎng)( www.weiqiv.net.cn )
用戶回復(fù):
老師:美原油不開倉時間是北京時間(5點到6點),其它時間全部是交易的
?
網(wǎng)友回復(fù):ss:=(timetot0(dynainfo(207))>=time0-4000 and islastbar) or not(islastbar);//這個ss是提前下單條件的判斷語句。你可以修改這里的3來自定義提前下單的秒數(shù)。 老師:我看到論壇有這個,是否可以用在原油上?