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