以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  高级功能研发区  (http://weistock.com/bbs/list.asp?boardid=5)
----  reportnotify()方法这样用行不?  (http://weistock.com/bbs/dispbbs.asp?boardid=5&id=10376)

--  作者:wgpsc
--  发布时间:2012/3/2 15:23:50
--  reportnotify()方法这样用行不?

Private Sub MyOrder_init()
  \'注册行情
  call marketdata.RegReportNotify("IF03","ZJ")
  call marketdata.RegReportNotify("M09","DQ")
end sub

 

Private Sub MyOrder_UNLOAD()
  \'取消品种注册
  call marketdata.unRegReportNotify("IF03","ZJ")
  call marketdata.unRegReportNotify("M09","DQ")
end sub

 

Sub MARKETDATA_ReportNotify(RD)
  select case rd.label
    case "IF03"
      if rd.volume=ifoldv then  exit sub

........


--  作者:王锋
--  发布时间:2012/3/2 15:55:58
--  
应该是没问题的,建议自行调试一下
--  作者:wgpsc
--  发布时间:2012/3/2 16:28:30
--  

谢谢版主,今天是没时间测试了,所以发问


--  作者:admin
--  发布时间:2012/3/2 22:53:26
--  
可以考虑用外盘数据测试