日內自動交易,昨天平倉。今日開盤又開倉了
作者:金字塔 來源:cxh99.com 發布時間:2015年08月03日
- 咨詢內容:
日內自動交易,昨天平倉。今日開盤又開倉了。我是1分鐘周期,逐K線,走完K線下單。我設置的14點59分平倉。第二天開盤由于條件延續滿足昨天的條件又開倉了。我希望不開倉,等到下一個交易機會出現再開倉。
- 金字塔客服:
在開倉條件里面加上 time<=145900
- 用戶回復:
下面是我的語句。我計劃14點59分全平。14點45分后不再開新倉。但是遇到了問題。14點59分平完倉了,第二天9點整開盤又開倉了。是昨日開倉信號的延續。我希望9點整到下一個信號出來之前不要再開倉。if HOLDING<0 then beginsellshort(GG>C OR TIME>=145900,1,thisclose);end;
if holding=0 then beginbuy (C<GG AND TIME<144500,1,thisclose);end;
if HOLDING>0 then beginsell(GG<C OR TIME>=145900,1,thisclose);end;
if holding=0 then beginbuyshort(C>GG AND TIME<145900,1,thisclose);end;
- 網友回復:
if holding=0 then begin
buyshort(C>GG AND TIME<144500,1,thisclose);
end;