人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現(xiàn)在的位置:程序化交易>> 期貨公式>> 金字塔等>> 其他期貨軟件知識(shí)>>正文內(nèi)容

stkindi請(qǐng)教 [金字塔]

  • 咨詢內(nèi)容:

    各位好, 我在一個(gè)窗體里面設(shè)了一個(gè)timer, 然后timer激發(fā)的時(shí)候我想去讀一個(gè)公式的返回值, 但是總返回0, 不知道是什么問(wèn)題,請(qǐng)各位前輩幫我看一下, stkindi用的是說(shuō)明里的例子

     

    這是我的code

     

    Sub APPLICATION_Timer(ID)

      If ID=10 then
            Application.msgout Cdate(time) & ",10o???ê±?÷′¥·¢á?"
       

      Set Formula = marketdata.STKINDI(QT_MARKET,QT_MARKETID,"ma(5,10,20,60)",0,0)
      ma1 = Formula.GetBufData("ma1",Formula.DataSize-1)
      
      application.MsgOut  Formula.DataSize
      application.MsgOut  "inside timer ma1 = " & ma1 '??ê?μú2?ùk??é?μ?MA3??±ê??êy?μ
     end if
    End Sub

     

     

     

    22:08:15,10號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0

     

    為什么返回不了ma1的值呢?我的圖上需要打開這個(gè)公式vba才能返回嗎? 謝謝

     

  • 金字塔客服: 這個(gè)STKINDI當(dāng)中的市場(chǎng)名稱不對(duì)吧

     

  • 用戶回復(fù):

    Sub APPLICATION_Timer(ID)

      If ID=10 then
     Application.msgout Cdate(time) & "你好"
     Set Formula = marketdata.STKINDI("if08","zj","ma(5,10,20,60)",0,0) '調(diào)用中金所IF08合約的1分鐘的MA移動(dòng)平均線指標(biāo),參數(shù)依次是5,10,20,60

     ma1 = Formula.GetBufData("ma1",Formula.DataSize-1)
     application.MsgOut  Formula.DataSize
     application.MsgOut  "inside timer ma1 = " & ma1
      end if
    End Sub

     

    樓主是否還應(yīng)在另外一個(gè)函數(shù)中去調(diào)用Application.SetTimer()

     

  • 網(wǎng)友回復(fù): 以下是引用Leon在2012-5-21 9:20:13的發(fā)言:

    Sub APPLICATION_Timer(ID)

      If ID=10 then
     Application.msgout Cdate(time) & "你好"
     Set Formula = marketdata.STKINDI("if08","zj","ma(5,10,20,60)",0,0) '調(diào)用中金所IF08合約的1分鐘的MA移動(dòng)平均線指標(biāo),參數(shù)依次是5,10,20,60

     ma1 = Formula.GetBufData("ma1",Formula.DataSize-1)
     application.MsgOut  Formula.DataSize
     application.MsgOut  "inside timer ma1 = " & ma1
      end if
    End Sub

     

    樓主是否還應(yīng)在另外一個(gè)函數(shù)中去調(diào)用Application.SetTimer()

     

     

     

     

    沒錯(cuò), 我已經(jīng)在另外的地方調(diào)用setTimer, 原貼后半部分就是輸出

     

  • 網(wǎng)友回復(fù):

    謝謝樓上的回復(fù),我把你的code直接復(fù)制過(guò)去, 下面是輸出結(jié)果, 還是0

     

    22:39:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:06,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:11,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:16,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:21,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:26,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:46,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:51,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:40:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:06,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:11,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:16,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:21,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:26,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:46,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:51,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:41:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:07,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:12,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:17,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:22,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:27,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:32,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:37,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:42,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:47,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:52,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:42:57,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:02,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:07,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:12,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:17,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:22,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:27,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:32,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:43:37,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    21:49:09,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    21:49:17,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    21:49:22,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    21:49:27,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    21:49:32,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:08,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:13,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:18,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:27,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    22:02:32,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:37,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:42,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:47,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:52,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:02:57,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:03:02,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:03:07,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:03:12,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:03:17,0號(hào)計(jì)時(shí)器觸發(fā)了
    inside timer ma1 = 0
    22:04:22,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    22:04:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:04:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:04:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:04:46,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:04:51,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:04:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:06,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:11,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:16,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:21,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:26,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:46,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:51,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:05:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:06,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:11,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:16,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:21,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:26,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:46,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:51,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:06:56,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:06,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:11,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:16,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:21,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:26,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:31,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:36,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:07:41,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:08:01,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    QT_MARKETID = DAX
    QT_MARKET = MO
    ma1 = 0
    22:08:10,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    22:08:15,0號(hào)計(jì)時(shí)器觸發(fā)了
    0
    inside timer ma1 = 0
    20:48:34你好
    0
    inside timer ma1 = 0
    20:48:39你好
    0
    inside timer ma1 = 0
    20:48:44你好
    0
    inside timer ma1 = 0
    20:48:49你好
    0
    inside timer ma1 = 0
    20:48:54你好
    0
    inside timer ma1 = 0
    20:48:59你好
    0
    inside timer ma1 = 0
    20:49:04你好
    0
    inside timer ma1 = 0
    20:49:09你好
    0
    inside timer ma1 = 0
    20:49:14你好
    0
    inside timer ma1 = 0
    20:49:19你好
    0
    inside timer ma1 = 0
    20:49:24你好
    0
    inside timer ma1 = 0
    20:49:29你好
    0
    inside timer ma1 = 0
    20:49:34你好
    0
    inside timer ma1 = 0
    20:49:39你好
    0
    inside timer ma1 = 0
    20:49:44你好
    0
    inside timer ma1 = 0
    20:49:49你好
    0
    inside timer ma1 = 0

 

如果以上指標(biāo)公式不適用于您常用的行情軟件

或者您想改編成選股公式,以便快速選出某種形態(tài)個(gè)股的話,

可以聯(lián)系我們相關(guān)技術(shù)人員 QQ: 262069696  點(diǎn)擊在線交流進(jìn)行 有償 改編!

 


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒有相關(guān)內(nèi)容
主站蜘蛛池模板: 免费色视频 | 免费麻豆国产黄网站在线观看 | 91免费网 | 涩涩动漫网站 | 日本资源站 | 青青草国产97免久久费观看 | 国产在线观看xxxx免费 | 狠狠做狠狠做综合日日 | yellow中文字幕久久网 | 亚洲欧美精品网站在线观看 | 男女www视频在线看网站 | 一本久道综合久久精品 | 中文字幕福利片 | 在线a网站| 国产精品欧美一区二区三区不卡 | 国产成人久久一区二区三区 | 看全黄大色黄大片老人做 | 中文字幕在线观看第一页 | av毛片在线看 | 中国女人free性hd国浯 | 欧美精品午夜久久久伊人 | 国产亚洲女在线精品 | 国产男女自拍视频 | 日本一道免费一区二区三区 | 欧美青青 | 在线成人爽a毛片免费软件 在线成人影片 | 国产欧美激情一区二区三区-老狼 | 欧美亚洲日本国产 | 午夜高清在线 | 国产成人夜间影院在线观看 | 三级免费毛片 | 少妇人妻挤奶水中文视频毛片 | 欧美一区精品二区三区 | 精品一区二区三区免费视频 | 丝袜美女在线观看 | 黄网站www | 青草视频在线 | 国产在线观看网址在线视频 | h片免费网站| 成人免费看黄 | 最新的黄色网址 |