currentcontracts取值的問題 [MC]
- 咨詢內(nèi)容:
本帖最后由 Astral 于 2014-10-28 06:51 編輯
if (myContracts > currentcontracts) then begin
buy (myContracts - currentcontracts) contracts ......
sellshort(myContracts - currentcontracts) contracts.....
end;
以上的myContracts=7,currentcontracts=6,順便說一下marketposition = -1,限制開單7手
結(jié)果是下了7張多單,沒有下空單
理論上是應(yīng)該下1張多單,1張空單
。試問盤中是否有currentcontracts取值錯(cuò)誤的可能
- MC技術(shù)部:
不要在同一個(gè)條件下,同時(shí)也多單和空單語句。因?yàn)榭赡懿砰_倉之后會(huì)立即平掉,也有可能會(huì)是oco單一個(gè)單子成交,另一個(gè)單子取消掉。
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容