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

區分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  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 国产国语一级毛片| 福利姬在线精品观看| 91亚洲精品自在在线观看| 国产人与动zozo| 精品久久综合一区二区| 欧美日韩国产在线人成| 日本三级香港三级人妇99| 夜夜高潮夜夜爽夜夜爱爱一区| 国产欧美另类精品久久久| 午夜无码人妻av大片色欲 | 成人午夜精品久久久久久久小说| 日韩av午夜在线观看| 晚上睡不着来b站一次看过瘾| 最近最好看2019年中文字幕| 欧美人与动另类在线| 欧美综合自拍亚洲综合图片区| 激情国产白嫩美女在线观看| 狠狠色欧美亚洲狠狠色www| 精品一区二区久久久久久久网站| 美女把腿扒开让男人桶爽了| 免费黄色网址网站| 五月天在线婷婷| 国产精品入口麻豆免费观看| 2021国内精品久久久久久影院 | 国产激情久久久久影院小草| 国产成在线观看免费视频| 啦啦啦中文在线观看日本| 亚洲性久久久影院| 久久18禁高潮出水呻吟娇喘| 97精品伊人久久大香线蕉| 色综合综合色综合色综合| 毛片女人毛片一级毛片毛片| 日本a级视频在线播放| 国产青草视频在线观看| 四虎永久在线精品视频免费观看 | 国产91免费在线观看| 亚洲国产成人久久三区| 一本久久伊人热热精品中文| 黄页网站免费在线观看| 欧美日韩在线视频| 妖精色av无码国产在线看|