若无持仓,查询持仓的结果是0,还是空 [金字塔]
- 咨询内容:
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) '检测账户是否登陆,如果没有登陆就退出 'application.MsgOut sCode & "," & sMarket & "," & sAccount & ",NextCode:" & NextCode & ",账户状态:" & 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
这段代码是用来查账户持仓的,请问,若账户没有持仓,那BuyHold的值是0,还是为空。若为空值,如何转为0 - 金字塔客服: http://www.weistock.com:8080/vip/forum.php?mod=viewthread&tid=1557&extra=page%3D1
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容