您現在的位置:程序化交易>> 期貨公式>> 金字塔等>> 金字塔知識>>正文內容

區分reportnotify里面的reportdata [金字塔]

  • 咨詢內容:

    代碼:

    Sub UserForm1_CommandButton1_Click()
        call marketdata.RegReportNotify("cu00","sy")
        call marketdata.RegReportNotify("ag00","sy")
    End Sub
    sub marketdata_reportnotify(reportdata)
        dim newprice_cu,newprice_ag
        if reportdata.label="cu00" then
           newprice_cu=reportdata.newprice
           application.MsgOut "newprice_cu:"& newprice_cu
        else
           newprice_ag=reportdata.newprice
           application.MsgOut "newprice_ag:"& newprice_ag
        end if
    end sub


    Sub UserForm1_CommandButton2_Click()
        application.MsgOut time
        call marketdata.UnRegReportNotify("cu00","sy")
        call marketdata.UnRegReportNotify("ag00","sy")
    End Sub

     

    執行效果:

    newprice_ag:4316
    newprice_ag:4316
    newprice_ag:49560
    newprice_ag:4316
    newprice_ag:4315
    newprice_ag:49560
    newprice_ag:4315

     

    也就是說,label這個屬性并沒有起到區分兩個品種的作用。那該怎么樣才能區分呢?

     

  • 金字塔客服:

    難道你不會

    application.MsgOut reportdata.label

    這樣輸出一下標簽內容,看看金字塔是怎么樣的格式?

     

  • 用戶回復:

    是"AG00""CU00",不是"ag00""cu00"

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产草草影院ccyycom| 日本高清色www网站色| 全黄h全肉远古| 被催眠暴jian的冷艳美mtxt下载| 国产精品久久久久影视不卡| 99视频在线精品免费| 影音先锋女人aa鲁色资源| 久久久久亚洲AV成人无码电影| 最近中文字幕完整视频高清10 | 扒下老师的黑色丝袜桶她| 久艾草国产成人综合在线视频| 欧美午夜理伦三级理论三级| 亚洲欧美日韩综合久久| 特黄特黄一级高清免费大片| 免费观看a级毛片| 精彩视频一区二区| 国产一区二区精品| 青青草原国产视频| 国产成人精品无码片区在线观看| 三级视频在线播放| 国产精品自在线拍国产电影| 91精品视频播放| 在我跨下的英语老师景老师| a级国产乱理伦片在线观| 性一交一乱一乱一视频| 中文字幕影片免费在线观看| 日本一本高清视频| 久久亚洲sm情趣捆绑调教| 日韩一级片网址| 毛片免费视频播放| 国产乱子伦在线观看不卡| 国产v片成人影院在线观看| 国产精品久久久| 最新69堂国产成人精品视频| 国产精品青青青高清在线观看 | www.一级毛片| 尤物国产精品福利三区| 一级特黄a视频| 成人中文字幕一区二区三区| 中国日韩欧美中文日韩欧美色| 成年女人色毛片|