日內(nèi)自動(dòng)交易,昨天平倉。今日開盤又開倉了
作者:金字塔 來源:cxh99.com 發(fā)布時(shí)間:2015年08月03日
- 咨詢內(nèi)容:
日內(nèi)自動(dòng)交易,昨天平倉。今日開盤又開倉了。我是1分鐘周期,逐K線,走完K線下單。我設(shè)置的14點(diǎn)59分平倉。第二天開盤由于條件延續(xù)滿足昨天的條件又開倉了。我希望不開倉,等到下一個(gè)交易機(jī)會(huì)出現(xiàn)再開倉。
- 金字塔客服:
在開倉條件里面加上 time<=145900
- 用戶回復(fù):
下面是我的語句。我計(jì)劃14點(diǎn)59分全平。14點(diǎn)45分后不再開新倉。但是遇到了問題。14點(diǎn)59分平完倉了,第二天9點(diǎn)整開盤又開倉了。是昨日開倉信號(hào)的延續(xù)。我希望9點(diǎn)整到下一個(gè)信號(hào)出來之前不要再開倉。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;
- 網(wǎng)友回復(fù):
if holding=0 then begin
buyshort(C>GG AND TIME<144500,1,thisclose);
end;