【12.30帖子恢復】 ailegrasper 收盤前一分鐘平倉
作者:金字塔 來源:cxh99.com 發布時間:2015年05月11日
- 咨詢內容:
你好,我的程序是用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 回復
我看了下,都一樣,不需要特別改