若無持倉,查詢持倉的結(jié)果是0,還是空 [金字塔]
- 咨詢內(nèi)容:
Sub GetHoldByCode(sAccount,sCode,sMarket) dim i dim BuyHolding dim BuyCost dim BuyTodayHolding dim SellHolding dim SellCost dim SellTodayHolding dim PNL dim UseMargin dim Code dim Market On Error resume Next AccountStatus=Order.Account2(2,sAccount) '檢測(cè)賬戶是否登陸,如果沒有登陸就退出 'application.MsgOut sCode & "," & sMarket & "," & sAccount & ",NextCode:" & NextCode & ",賬戶狀態(tài):" & AccountStatus if AccountStatus=255 Or AccountStatus="" then exit sub end if Call Order.HoldingInfoByCode2(sCode,sMarket,BuyHolding,BuyCost,BuyTodayHolding,SellHolding,SellCost,SellTodayHolding,PNL,UseMargin,sAccount) BuyHold=BuyHolding SellHold=SellHolding
End Sub
這段代碼是用來查賬戶持倉的,請(qǐng)問,若賬戶沒有持倉,那BuyHold的值是0,還是為空。若為空值,如何轉(zhuǎn)為0 - 金字塔客服: http://www.weistock.com:8080/vip/forum.php?mod=viewthread&tid=1557&extra=page%3D1
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容