【12.30帖子恢復】 ailegrasper 收盤前一分鐘平倉 [金字塔]
- 咨詢內容:
你好,我的程序是用5分鐘圖表固定時間間隔1秒執行,設置了收盤前一分鐘平倉,
if time>=145900 and time<150100 then
begin
sellshort(holding<0,0,thisclose);
sell(holding>0,0,thisclose);
end
但是14點55分就自動平倉了,難道只能用一分鐘執行才行么?有沒有辦法? [此貼子已經被作者于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
這個是僅限5分鐘的收盤前最后1分鐘平倉,必須是要這么寫,用實際時間函數,
- 用戶回復:
多謝,那3分鐘應該怎樣改
- 網友回復:
jinzhe 回復
我看了下,都一樣,不需要特別改
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容