人人爽天天爽夜夜爽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的值呢?我的圖上需要打開(kāi)這個(gè)公式vba才能返回嗎? 謝謝

     

  • 金字塔客服: 這個(gè)STKINDI當(dāng)中的市場(chǎ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()

     

     

     

     

    沒(méi)錯(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)文章

    沒(méi)有相關(guān)內(nèi)容
主站蜘蛛池模板: 中国一级毛片国产高清 | 国产精品久久久久久久人人看 | 44383亚洲大成网人网站 | 久爱视频www在线播放 | 日本精品高清一区二区不卡 | caoporm国产精品视频免费 | 国产一区二区三区精品视频 | 亚洲欧美中文字幕 | 成年免费大片黄在线观看视频 | 成人免费国产欧美日韩你懂的 | 国产1页| 亚洲男女天堂 | 三级纯黄 | 亚洲国产情侣偷自在线二页 | 黄色毛片视频网站 | 男女深夜福利 | 在线精品国内外视频 | 伊人中文网 | 亚洲成人观看 | 中文字幕在线观看 | 91涩涩视频 | 黄色污污视频在线观看 | 免费的性爱视频 | 日韩欧美亚洲中字幕在线播放 | 黄色在线观看视频免费 | 日本特黄色片 | 综合网伊人 | 一级黄色片在线观看 | 日韩天天摸天天澡天天爽视频 | 亚洲无遮挡 | 狼伊千合综网中文 | 国产精品视频a | 殴美黄色片 | 一级毛片无遮挡免费全部 | 在线成人爽a毛片免费软件 在线成人影片 | 色黄视频网站 | a级在线免费 | 国产成人高清视频免费播放 | 国产精品久久一区一区 | 99视频在线观看免费 | 亚洲视频国产 |