stkindi请教 [金字塔]
- 咨询内容:
各位好, 我在一个窗体里面设了一个timer, 然后timer激发的时候我想去读一个公式的返回值, 但是总返回0, 不知道是什么问题,请各位前辈帮我看一下, stkindi用的是说明里的例子
这是我的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 Sub22:08:15,10号计时器触发了
0
inside timer ma1 = 0为什么返回不了ma1的值呢?我的图上需要打开这个公式vba才能返回吗? 谢谢
- 金字塔客服:
这个STKINDI当中的市场名称不对吧
- 用户回复:
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) '调用中金所IF08合约的1分钟的MA移动平均线指标,参数依次是5,10,20,60ma1 = Formula.GetBufData("ma1",Formula.DataSize-1)
application.MsgOut Formula.DataSize
application.MsgOut "inside timer ma1 = " & ma1
end if
End Sub楼主是否还应在另外一个函数中去调用Application.SetTimer()
- 网友回复:
以下是引用Leon在2012-5-21 9:20:13的发言:
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) '调用中金所IF08合约的1分钟的MA移动平均线指标,参数依次是5,10,20,60ma1 = Formula.GetBufData("ma1",Formula.DataSize-1)
application.MsgOut Formula.DataSize
application.MsgOut "inside timer ma1 = " & ma1
end if
End Sub楼主是否还应在另外一个函数中去调用Application.SetTimer()
没错, 我已经在另外的地方调用setTimer, 原贴后半部分就是输出
- 网友回复:
谢谢楼上的回复,我把你的code直接复制过去, 下面是输出结果, 还是0
22:39:56,0号计时器触发了
inside timer ma1 = 0
22:40:01,0号计时器触发了
inside timer ma1 = 0
22:40:06,0号计时器触发了
inside timer ma1 = 0
22:40:11,0号计时器触发了
inside timer ma1 = 0
22:40:16,0号计时器触发了
inside timer ma1 = 0
22:40:21,0号计时器触发了
inside timer ma1 = 0
22:40:26,0号计时器触发了
inside timer ma1 = 0
22:40:31,0号计时器触发了
inside timer ma1 = 0
22:40:36,0号计时器触发了
inside timer ma1 = 0
22:40:41,0号计时器触发了
inside timer ma1 = 0
22:40:46,0号计时器触发了
inside timer ma1 = 0
22:40:51,0号计时器触发了
inside timer ma1 = 0
22:40:56,0号计时器触发了
inside timer ma1 = 0
22:41:01,0号计时器触发了
inside timer ma1 = 0
22:41:06,0号计时器触发了
inside timer ma1 = 0
22:41:11,0号计时器触发了
inside timer ma1 = 0
22:41:16,0号计时器触发了
inside timer ma1 = 0
22:41:21,0号计时器触发了
inside timer ma1 = 0
22:41:26,0号计时器触发了
inside timer ma1 = 0
22:41:31,0号计时器触发了
inside timer ma1 = 0
22:41:36,0号计时器触发了
inside timer ma1 = 0
22:41:41,0号计时器触发了
inside timer ma1 = 0
22:41:46,0号计时器触发了
inside timer ma1 = 0
22:41:51,0号计时器触发了
inside timer ma1 = 0
22:41:56,0号计时器触发了
inside timer ma1 = 0
22:42:01,0号计时器触发了
inside timer ma1 = 0
22:42:07,0号计时器触发了
inside timer ma1 = 0
22:42:12,0号计时器触发了
inside timer ma1 = 0
22:42:17,0号计时器触发了
inside timer ma1 = 0
22:42:22,0号计时器触发了
inside timer ma1 = 0
22:42:27,0号计时器触发了
inside timer ma1 = 0
22:42:32,0号计时器触发了
inside timer ma1 = 0
22:42:37,0号计时器触发了
inside timer ma1 = 0
22:42:42,0号计时器触发了
inside timer ma1 = 0
22:42:47,0号计时器触发了
inside timer ma1 = 0
22:42:52,0号计时器触发了
inside timer ma1 = 0
22:42:57,0号计时器触发了
inside timer ma1 = 0
22:43:02,0号计时器触发了
inside timer ma1 = 0
22:43:07,0号计时器触发了
inside timer ma1 = 0
22:43:12,0号计时器触发了
inside timer ma1 = 0
22:43:17,0号计时器触发了
inside timer ma1 = 0
22:43:22,0号计时器触发了
inside timer ma1 = 0
22:43:27,0号计时器触发了
inside timer ma1 = 0
22:43:32,0号计时器触发了
inside timer ma1 = 0
22:43:37,0号计时器触发了
inside timer ma1 = 0
21:49:09,0号计时器触发了
inside timer ma1 = 0
21:49:17,0号计时器触发了
inside timer ma1 = 0
QT_MARKETID = DAX
QT_MARKET = MO
ma1 = 0
QT_MARKETID = DAX
QT_MARKET = MO
ma1 = 0
21:49:22,0号计时器触发了
inside timer ma1 = 0
21:49:27,0号计时器触发了
inside timer ma1 = 0
21:49:32,0号计时器触发了
inside timer ma1 = 0
22:02:08,0号计时器触发了
inside timer ma1 = 0
22:02:13,0号计时器触发了
inside timer ma1 = 0
22:02:18,0号计时器触发了
inside timer ma1 = 0
22:02:27,0号计时器触发了
inside timer ma1 = 0
QT_MARKETID = DAX
QT_MARKET = MO
ma1 = 0
QT_MARKETID = DAX
QT_MARKET = MO
ma1 = 0
22:02:32,0号计时器触发了
inside timer ma1 = 0
22:02:37,0号计时器触发了
inside timer ma1 = 0
22:02:42,0号计时器触发了
inside timer ma1 = 0
22:02:47,0号计时器触发了
inside timer ma1 = 0
22:02:52,0号计时器触发了
inside timer ma1 = 0
22:02:57,0号计时器触发了
inside timer ma1 = 0
22:03:02,0号计时器触发了
inside timer ma1 = 0
22:03:07,0号计时器触发了
inside timer ma1 = 0
22:03:12,0号计时器触发了
inside timer ma1 = 0
22:03:17,0号计时器触发了
inside timer ma1 = 0
22:04:22,0号计时器触发了
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号计时器触发了
0
inside timer ma1 = 0
22:04:36,0号计时器触发了
0
inside timer ma1 = 0
22:04:41,0号计时器触发了
0
inside timer ma1 = 0
22:04:46,0号计时器触发了
0
inside timer ma1 = 0
22:04:51,0号计时器触发了
0
inside timer ma1 = 0
22:04:56,0号计时器触发了
0
inside timer ma1 = 0
22:05:01,0号计时器触发了
0
inside timer ma1 = 0
22:05:06,0号计时器触发了
0
inside timer ma1 = 0
22:05:11,0号计时器触发了
0
inside timer ma1 = 0
22:05:16,0号计时器触发了
0
inside timer ma1 = 0
22:05:21,0号计时器触发了
0
inside timer ma1 = 0
22:05:26,0号计时器触发了
0
inside timer ma1 = 0
22:05:31,0号计时器触发了
0
inside timer ma1 = 0
22:05:36,0号计时器触发了
0
inside timer ma1 = 0
22:05:41,0号计时器触发了
0
inside timer ma1 = 0
22:05:46,0号计时器触发了
0
inside timer ma1 = 0
22:05:51,0号计时器触发了
0
inside timer ma1 = 0
22:05:56,0号计时器触发了
0
inside timer ma1 = 0
22:06:01,0号计时器触发了
0
inside timer ma1 = 0
22:06:06,0号计时器触发了
0
inside timer ma1 = 0
22:06:11,0号计时器触发了
0
inside timer ma1 = 0
22:06:16,0号计时器触发了
0
inside timer ma1 = 0
22:06:21,0号计时器触发了
0
inside timer ma1 = 0
22:06:26,0号计时器触发了
0
inside timer ma1 = 0
22:06:31,0号计时器触发了
0
inside timer ma1 = 0
22:06:36,0号计时器触发了
0
inside timer ma1 = 0
22:06:41,0号计时器触发了
0
inside timer ma1 = 0
22:06:46,0号计时器触发了
0
inside timer ma1 = 0
22:06:51,0号计时器触发了
0
inside timer ma1 = 0
22:06:56,0号计时器触发了
0
inside timer ma1 = 0
22:07:01,0号计时器触发了
0
inside timer ma1 = 0
22:07:06,0号计时器触发了
0
inside timer ma1 = 0
22:07:11,0号计时器触发了
0
inside timer ma1 = 0
22:07:16,0号计时器触发了
0
inside timer ma1 = 0
22:07:21,0号计时器触发了
0
inside timer ma1 = 0
22:07:26,0号计时器触发了
0
inside timer ma1 = 0
22:07:31,0号计时器触发了
0
inside timer ma1 = 0
22:07:36,0号计时器触发了
0
inside timer ma1 = 0
22:07:41,0号计时器触发了
0
inside timer ma1 = 0
22:08:01,0号计时器触发了
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号计时器触发了
0
inside timer ma1 = 0
22:08:15,0号计时器触发了
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
如果以上指标公式不适用于您常用的行情软件
或者您想改编成选股公式,以便快速选出某种形态个股的话,
- 上一篇:官方能否定制个性化的插件
- 下一篇:没有了!
相关文章
-
没有相关内容