日內(nèi)自動交易,昨天平倉。今日開盤又開倉了 [金字塔]
- 咨詢內(nèi)容:
日內(nèi)自動交易,昨天平倉。今日開盤又開倉了。我是1分鐘周期,逐K線,走完K線下單。我設(shè)置的14點59分平倉。第二天開盤由于條件延續(xù)滿足昨天的條件又開倉了。我希望不開倉,等到下一個交易機會出現(xiàn)再開倉。
- 金字塔客服:
在開倉條件里面加上 time<=145900
- 用戶回復(fù):
下面是我的語句。我計劃14點59分全平。14點45分后不再開新倉。但是遇到了問題。14點59分平完倉了,第二天9點整開盤又開倉了。是昨日開倉信號的延續(xù)。我希望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;
- 網(wǎng)友回復(fù): if holding=0 then begin buyshort(C>GG AND TIME<144500,1,thisclose); end;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容