當 ORDER_OrderStatusEx事件觸發,且 Fille>0 時調用 HoldingInfoByCode2 想查看品種總體持倉情況怎么返回值為哦 [金字塔]
- 咨詢內容:
當 ORDER_OrderStatusEx事件觸發,且 Fille>0 時調用,表示有成交,調用HoldingInfoByCode2 想查看品種總體持倉情況怎么持倉的返回值都為0哦
HoldingInfoByCode2(Code, Market, BuyHoding, BuyCost, BuyTodayHoding, SellHoding, SellCost, SellTodayHoding, PNL, UseMargin,"")
- 金字塔客服:
且調用
HoldingInfoByCode2 這個函數的返回值為0,為什么
- 用戶回復:
返回值為0的主要原因有;
1 當前登錄賬戶異常,或者未登錄有效賬戶
2 Code,Market這2個參數有誤導致無法找到合約
你地情況可能跟第2種有關,建議你用Application.msgout函數調試輸出一下看看
- 網友回復:
code 和 market都是正常的,因此復用的是 ORDER_OrderStatusEx(OrderID,Status,Filled,Remaining,Price,Code,Market,OrderType,Aspect,Kaiping)中的code 和market參數,登陸也是正常的
- 網友回復:
code 和 market都是正常的,因為復用的是 ORDER_OrderStatusEx(OrderID,Status,Filled,Remaining,Price,Code,Market,OrderType,Aspect,Kaiping)中的code 和market參數,登陸也是正常的
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容