【12.30帖子恢復(fù)】 ailegrasper 收盤前一分鐘平倉 [金字塔]
- 咨詢內(nèi)容:
你好,我的程序是用5分鐘圖表固定時(shí)間間隔1秒執(zhí)行,設(shè)置了收盤前一分鐘平倉,
if time>=145900 and time<150100 then
begin
sellshort(holding<0,0,thisclose);
sell(holding>0,0,thisclose);
end
但是14點(diǎn)55分就自動(dòng)平倉了,難道只能用一分鐘執(zhí)行才行么?有沒有辦法? [此貼子已經(jīng)被作者于2013/12/30 17:35:17編輯過] - 金字塔客服:
if (islastbar and dynainfo(207)>145900 and dynainfo(207)<145959) or (not(islastbar) and time=150000) then begin
......
end
這個(gè)是僅限5分鐘的收盤前最后1分鐘平倉,必須是要這么寫,用實(shí)際時(shí)間函數(shù),
- 用戶回復(fù):
多謝,那3分鐘應(yīng)該怎樣改
- 網(wǎng)友回復(fù):
jinzhe 回復(fù)
我看了下,都一樣,不需要特別改
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容