人人爽天天爽夜夜爽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)容
主站蜘蛛池模板: 日本久久综合视频 | 1024cc香蕉在线观看免费 | 午夜在线亚洲 | 欧美成人剧情中文字幕 | 色黄网站aaaaaa级毛片 | 99re最新 | 乱人伦视频69 | 91久久国产青草亚洲 | 成年人在线观看免费视频 | 亚色在线视频 | 妞干网在线免费视频 | 欧美三级成人理伦 | 怡春院欧美杂交a | 成人香蕉视频 | 成人网在线观看 | 性欧美激情xxxd | 午夜片在线观看 | 日本黄色免费在线观看 | 可以免费观看的黄色网址 | 黄色片一级毛片 | 男女一级毛片免费播放 | 边做边叫床的大尺度视频免费 | 亚洲欧美日韩中文无线码 | 日皮黄色| 操美女免费| 老司机69精品成免费视频 | 黄大色大片免费久久 | 成人毛片免费观看视频大全 | 羞羞影院在线观看 | 亚洲免费精品视频 | 一级日韩 | 在线视频国产一区 | 欧美精品免费在线 | 波多野结衣免费线在线 | 色综合a怡红院怡红院首页 色综合久久久久久888 | 午夜剧场免费看 | 曰本还a大片免费无播放器 曰本三级香港三级三级人 孕交videos小孕妇xx中文 | 色噜噜狠狠狠综合曰曰曰88av | 成年黄网站色大免费全看 | 天天综合天天看夜夜添狠狠玩 | 国产精品毛片天天看片 |