MARKETDATA_ReportNotify(ReportData)函數(shù)的用法 [金字塔]
- 咨詢內(nèi)容:
各位大俠,請問MARKETDATA_ReportNotify(ReportData)函數(shù)與之相關(guān)事件的用法如何表達(dá),有例子能提供最好,十分感謝,我因?yàn)閷W(xué)習(xí)自動(dòng)化第一次在論壇上發(fā)帖,希望能得到各位的幫助,剛才在“選擇帖子類型”里點(diǎn)錯(cuò)了,另外我想咨詢購買點(diǎn)券的頁面怎么打開時(shí)是提示錯(cuò)誤信息呢?想購買點(diǎn)券后用于饋贈(zèng)給回答本人問題的朋友,不知道該聯(lián)系哪位管理員
- 金字塔客服:
要使用這個(gè)方法之前必須先使用MarketData.RegReportNotify方法來訂閱行情,格式如下:
Call MarketData.RegReportNotify(合約代碼,市場代碼)
如:Call MarketData.RegReportNotify("IF06","ZJ")
此代碼可以放在Application_VBAStart事件中,一起動(dòng)vba就會(huì)執(zhí)行。
然后使用MarketData_ReportNotify事件來獲取訂閱的行情數(shù)據(jù),例子如下:
Sub MarketData_ReportNotify(ReportData)
sCode=ReportData.Label
sMarket=ReportData.MarketName
nSell1=ReportData.SellPrice1
nBuy1=ReportData.BuyPrice1
nNewPrice=ReportData.NewPrice
application.MsgOut cdate(time) & "," & ReportData.NewPrice & "," & ReportData.BuyPrice1 & "," & ReportData.SellPrice1 & "," & ReportData.Label & ",sMarket:" & sMarket
End Sub
如果以上指標(biāo)公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態(tài)個(gè)股的話,
- 上一篇:[求助]
- 下一篇:沒有了!
相關(guān)文章
-
指定的模型還沒有相關(guān)內(nèi)容!