請問平倉反手中 [金字塔]
- 咨詢內容:
請問平倉反手中如果開倉時出現可用資金不足的話如何讓它不停開倉,直到發單成功為止!因為有時候會出現平倉單無法成交,導致資金不足!
- 金字塔客服:
在平倉反手語句后面加上orderqueue
比如:
if 平倉反手條件 then begin
sellshort(1,0,market),orderqueue;
buy(holding=0,1,market),orderqueue;
end
- 用戶回復:
if 平倉反手條件 && holding<0 then begin
sellshort(1,0,market),orderqueue;
end
if 平倉反手條件 && holding=0 then begin
buy(holding=0,1,market),orderqueue;
end
請問這樣子寫可以嘛, 我現在程序就是這樣子的,
- 網友回復:
會出現延時嘛?
- 網友回復: 老板,回一下話吧。。!!不回不敢用
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容